/usr/include/thunderbird-11.0.1/nsITransferable.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/widget/public/nsITransferable.idl
*/
#ifndef __gen_nsITransferable_h__
#define __gen_nsITransferable_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsISupportsArray_h__
#include "nsISupportsArray.h"
#endif
#ifndef __gen_nsIFormatConverter_h__
#include "nsIFormatConverter.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
// these probably shouldn't live here, but in some central repository shared
// by the entire app.
#define kTextMime "text/plain"
#define kUnicodeMime "text/unicode"
#define kMozTextInternal "text/x-moz-text-internal" // text data which isn't suppoed to be parsed by other apps.
#define kHTMLMime "text/html"
#define kAOLMailMime "AOLMAIL"
#define kPNGImageMime "image/png"
#define kJPEGImageMime "image/jpg"
#define kGIFImageMime "image/gif"
#define kFileMime "application/x-moz-file"
#define kURLMime "text/x-moz-url" // data contains url\ntitle
#define kURLDataMime "text/x-moz-url-data" // data contains url only
#define kURLDescriptionMime "text/x-moz-url-desc" // data contains description
#define kURLPrivateMime "text/x-moz-url-priv" // same as kURLDataMime but for private uses
#define kNativeImageMime "application/x-moz-nativeimage"
#define kNativeHTMLMime "application/x-moz-nativehtml"
// the source URL for a file promise
#define kFilePromiseURLMime "application/x-moz-file-promise-url"
// the destination filename for a file promise
#define kFilePromiseDestFilename "application/x-moz-file-promise-dest-filename"
// a dataless flavor used to interact with the OS during file drags
#define kFilePromiseMime "application/x-moz-file-promise"
// a synthetic flavor, put into the transferable once we know the destination directory of a file drag
#define kFilePromiseDirectoryMime "application/x-moz-file-promise-dir"
class nsITransferable; /* forward declaration */
/* starting interface: nsIFlavorDataProvider */
#define NS_IFLAVORDATAPROVIDER_IID_STR "7e225e5f-711c-11d7-9fae-000393636592"
#define NS_IFLAVORDATAPROVIDER_IID \
{0x7e225e5f, 0x711c, 0x11d7, \
{ 0x9f, 0xae, 0x00, 0x03, 0x93, 0x63, 0x65, 0x92 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIFlavorDataProvider : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFLAVORDATAPROVIDER_IID)
/* void getFlavorData (in nsITransferable aTransferable, in string aFlavor, out nsISupports aData, out unsigned long aDataLen); */
NS_SCRIPTABLE NS_IMETHOD GetFlavorData(nsITransferable *aTransferable, const char * aFlavor, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIFlavorDataProvider, NS_IFLAVORDATAPROVIDER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFLAVORDATAPROVIDER \
NS_SCRIPTABLE NS_IMETHOD GetFlavorData(nsITransferable *aTransferable, const char * aFlavor, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFLAVORDATAPROVIDER(_to) \
NS_SCRIPTABLE NS_IMETHOD GetFlavorData(nsITransferable *aTransferable, const char * aFlavor, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM) { return _to GetFlavorData(aTransferable, aFlavor, aData, aDataLen); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFLAVORDATAPROVIDER(_to) \
NS_SCRIPTABLE NS_IMETHOD GetFlavorData(nsITransferable *aTransferable, const char * aFlavor, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlavorData(aTransferable, aFlavor, aData, aDataLen); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsFlavorDataProvider : public nsIFlavorDataProvider
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIFLAVORDATAPROVIDER
nsFlavorDataProvider();
private:
~nsFlavorDataProvider();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsFlavorDataProvider, nsIFlavorDataProvider)
nsFlavorDataProvider::nsFlavorDataProvider()
{
/* member initializers and constructor code */
}
nsFlavorDataProvider::~nsFlavorDataProvider()
{
/* destructor code */
}
/* void getFlavorData (in nsITransferable aTransferable, in string aFlavor, out nsISupports aData, out unsigned long aDataLen); */
NS_IMETHODIMP nsFlavorDataProvider::GetFlavorData(nsITransferable *aTransferable, const char * aFlavor, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsITransferable */
#define NS_ITRANSFERABLE_IID_STR "8b5314bc-db01-11d2-96ce-0060b0fb9956"
#define NS_ITRANSFERABLE_IID \
{0x8b5314bc, 0xdb01, 0x11d2, \
{ 0x96, 0xce, 0x00, 0x60, 0xb0, 0xfb, 0x99, 0x56 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsITransferable : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRANSFERABLE_IID)
enum {
kFlavorHasDataProvider = 0
};
/* nsISupportsArray flavorsTransferableCanExport (); */
NS_SCRIPTABLE NS_IMETHOD FlavorsTransferableCanExport(nsISupportsArray * *_retval NS_OUTPARAM) = 0;
/* void getTransferData (in string aFlavor, out nsISupports aData, out unsigned long aDataLen); */
NS_SCRIPTABLE NS_IMETHOD GetTransferData(const char * aFlavor, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM) = 0;
/* void getAnyTransferData (out string aFlavor, out nsISupports aData, out unsigned long aDataLen); */
NS_SCRIPTABLE NS_IMETHOD GetAnyTransferData(char * *aFlavor NS_OUTPARAM, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM) = 0;
/* boolean isLargeDataSet (); */
NS_SCRIPTABLE NS_IMETHOD IsLargeDataSet(bool *_retval NS_OUTPARAM) = 0;
/* nsISupportsArray flavorsTransferableCanImport (); */
NS_SCRIPTABLE NS_IMETHOD FlavorsTransferableCanImport(nsISupportsArray * *_retval NS_OUTPARAM) = 0;
/* void setTransferData (in string aFlavor, in nsISupports aData, in unsigned long aDataLen); */
NS_SCRIPTABLE NS_IMETHOD SetTransferData(const char * aFlavor, nsISupports *aData, PRUint32 aDataLen) = 0;
/* void addDataFlavor (in string aDataFlavor); */
NS_SCRIPTABLE NS_IMETHOD AddDataFlavor(const char * aDataFlavor) = 0;
/* void removeDataFlavor (in string aDataFlavor); */
NS_SCRIPTABLE NS_IMETHOD RemoveDataFlavor(const char * aDataFlavor) = 0;
/* attribute nsIFormatConverter converter; */
NS_SCRIPTABLE NS_IMETHOD GetConverter(nsIFormatConverter * *aConverter) = 0;
NS_SCRIPTABLE NS_IMETHOD SetConverter(nsIFormatConverter *aConverter) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITransferable, NS_ITRANSFERABLE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITRANSFERABLE \
NS_SCRIPTABLE NS_IMETHOD FlavorsTransferableCanExport(nsISupportsArray * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetTransferData(const char * aFlavor, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetAnyTransferData(char * *aFlavor NS_OUTPARAM, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD IsLargeDataSet(bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD FlavorsTransferableCanImport(nsISupportsArray * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD SetTransferData(const char * aFlavor, nsISupports *aData, PRUint32 aDataLen); \
NS_SCRIPTABLE NS_IMETHOD AddDataFlavor(const char * aDataFlavor); \
NS_SCRIPTABLE NS_IMETHOD RemoveDataFlavor(const char * aDataFlavor); \
NS_SCRIPTABLE NS_IMETHOD GetConverter(nsIFormatConverter * *aConverter); \
NS_SCRIPTABLE NS_IMETHOD SetConverter(nsIFormatConverter *aConverter);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITRANSFERABLE(_to) \
NS_SCRIPTABLE NS_IMETHOD FlavorsTransferableCanExport(nsISupportsArray * *_retval NS_OUTPARAM) { return _to FlavorsTransferableCanExport(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetTransferData(const char * aFlavor, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM) { return _to GetTransferData(aFlavor, aData, aDataLen); } \
NS_SCRIPTABLE NS_IMETHOD GetAnyTransferData(char * *aFlavor NS_OUTPARAM, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM) { return _to GetAnyTransferData(aFlavor, aData, aDataLen); } \
NS_SCRIPTABLE NS_IMETHOD IsLargeDataSet(bool *_retval NS_OUTPARAM) { return _to IsLargeDataSet(_retval); } \
NS_SCRIPTABLE NS_IMETHOD FlavorsTransferableCanImport(nsISupportsArray * *_retval NS_OUTPARAM) { return _to FlavorsTransferableCanImport(_retval); } \
NS_SCRIPTABLE NS_IMETHOD SetTransferData(const char * aFlavor, nsISupports *aData, PRUint32 aDataLen) { return _to SetTransferData(aFlavor, aData, aDataLen); } \
NS_SCRIPTABLE NS_IMETHOD AddDataFlavor(const char * aDataFlavor) { return _to AddDataFlavor(aDataFlavor); } \
NS_SCRIPTABLE NS_IMETHOD RemoveDataFlavor(const char * aDataFlavor) { return _to RemoveDataFlavor(aDataFlavor); } \
NS_SCRIPTABLE NS_IMETHOD GetConverter(nsIFormatConverter * *aConverter) { return _to GetConverter(aConverter); } \
NS_SCRIPTABLE NS_IMETHOD SetConverter(nsIFormatConverter *aConverter) { return _to SetConverter(aConverter); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITRANSFERABLE(_to) \
NS_SCRIPTABLE NS_IMETHOD FlavorsTransferableCanExport(nsISupportsArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FlavorsTransferableCanExport(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetTransferData(const char * aFlavor, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransferData(aFlavor, aData, aDataLen); } \
NS_SCRIPTABLE NS_IMETHOD GetAnyTransferData(char * *aFlavor NS_OUTPARAM, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnyTransferData(aFlavor, aData, aDataLen); } \
NS_SCRIPTABLE NS_IMETHOD IsLargeDataSet(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsLargeDataSet(_retval); } \
NS_SCRIPTABLE NS_IMETHOD FlavorsTransferableCanImport(nsISupportsArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FlavorsTransferableCanImport(_retval); } \
NS_SCRIPTABLE NS_IMETHOD SetTransferData(const char * aFlavor, nsISupports *aData, PRUint32 aDataLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTransferData(aFlavor, aData, aDataLen); } \
NS_SCRIPTABLE NS_IMETHOD AddDataFlavor(const char * aDataFlavor) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDataFlavor(aDataFlavor); } \
NS_SCRIPTABLE NS_IMETHOD RemoveDataFlavor(const char * aDataFlavor) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDataFlavor(aDataFlavor); } \
NS_SCRIPTABLE NS_IMETHOD GetConverter(nsIFormatConverter * *aConverter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConverter(aConverter); } \
NS_SCRIPTABLE NS_IMETHOD SetConverter(nsIFormatConverter *aConverter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetConverter(aConverter); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsTransferable : public nsITransferable
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITRANSFERABLE
nsTransferable();
private:
~nsTransferable();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsTransferable, nsITransferable)
nsTransferable::nsTransferable()
{
/* member initializers and constructor code */
}
nsTransferable::~nsTransferable()
{
/* destructor code */
}
/* nsISupportsArray flavorsTransferableCanExport (); */
NS_IMETHODIMP nsTransferable::FlavorsTransferableCanExport(nsISupportsArray * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getTransferData (in string aFlavor, out nsISupports aData, out unsigned long aDataLen); */
NS_IMETHODIMP nsTransferable::GetTransferData(const char * aFlavor, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getAnyTransferData (out string aFlavor, out nsISupports aData, out unsigned long aDataLen); */
NS_IMETHODIMP nsTransferable::GetAnyTransferData(char * *aFlavor NS_OUTPARAM, nsISupports * *aData NS_OUTPARAM, PRUint32 *aDataLen NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isLargeDataSet (); */
NS_IMETHODIMP nsTransferable::IsLargeDataSet(bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISupportsArray flavorsTransferableCanImport (); */
NS_IMETHODIMP nsTransferable::FlavorsTransferableCanImport(nsISupportsArray * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setTransferData (in string aFlavor, in nsISupports aData, in unsigned long aDataLen); */
NS_IMETHODIMP nsTransferable::SetTransferData(const char * aFlavor, nsISupports *aData, PRUint32 aDataLen)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addDataFlavor (in string aDataFlavor); */
NS_IMETHODIMP nsTransferable::AddDataFlavor(const char * aDataFlavor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeDataFlavor (in string aDataFlavor); */
NS_IMETHODIMP nsTransferable::RemoveDataFlavor(const char * aDataFlavor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIFormatConverter converter; */
NS_IMETHODIMP nsTransferable::GetConverter(nsIFormatConverter * *aConverter)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTransferable::SetConverter(nsIFormatConverter *aConverter)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsITransferable_h__ */
|