/usr/include/thunderbird-11.0.1/nsIPersistentProperties2.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/xpcom/ds/nsIPersistentProperties2.idl
*/
#ifndef __gen_nsIPersistentProperties2_h__
#define __gen_nsIPersistentProperties2_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIProperties_h__
#include "nsIProperties.h"
#endif
#ifndef __gen_nsISimpleEnumerator_h__
#include "nsISimpleEnumerator.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIInputStream; /* forward declaration */
class nsIOutputStream; /* forward declaration */
/* starting interface: nsIPropertyElement */
#define NS_IPROPERTYELEMENT_IID_STR "283ee646-1aef-11d4-98b3-00c04fa0ce9a"
#define NS_IPROPERTYELEMENT_IID \
{0x283ee646, 0x1aef, 0x11d4, \
{ 0x98, 0xb3, 0x00, 0xc0, 0x4f, 0xa0, 0xce, 0x9a }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIPropertyElement : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROPERTYELEMENT_IID)
/* attribute AUTF8String key; */
NS_SCRIPTABLE NS_IMETHOD GetKey(nsACString & aKey) = 0;
NS_SCRIPTABLE NS_IMETHOD SetKey(const nsACString & aKey) = 0;
/* attribute AString value; */
NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPropertyElement, NS_IPROPERTYELEMENT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPROPERTYELEMENT \
NS_SCRIPTABLE NS_IMETHOD GetKey(nsACString & aKey); \
NS_SCRIPTABLE NS_IMETHOD SetKey(const nsACString & aKey); \
NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPROPERTYELEMENT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetKey(nsACString & aKey) { return _to GetKey(aKey); } \
NS_SCRIPTABLE NS_IMETHOD SetKey(const nsACString & aKey) { return _to SetKey(aKey); } \
NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPROPERTYELEMENT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetKey(nsACString & aKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKey(aKey); } \
NS_SCRIPTABLE NS_IMETHOD SetKey(const nsACString & aKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetKey(aKey); } \
NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsPropertyElement : public nsIPropertyElement
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPROPERTYELEMENT
nsPropertyElement();
private:
~nsPropertyElement();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPropertyElement, nsIPropertyElement)
nsPropertyElement::nsPropertyElement()
{
/* member initializers and constructor code */
}
nsPropertyElement::~nsPropertyElement()
{
/* destructor code */
}
/* attribute AUTF8String key; */
NS_IMETHODIMP nsPropertyElement::GetKey(nsACString & aKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPropertyElement::SetKey(const nsACString & aKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AString value; */
NS_IMETHODIMP nsPropertyElement::GetValue(nsAString & aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPropertyElement::SetValue(const nsAString & aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIPersistentProperties */
#define NS_IPERSISTENTPROPERTIES_IID_STR "1a180f60-93b2-11d2-9b8b-00805f8a16d9"
#define NS_IPERSISTENTPROPERTIES_IID \
{0x1a180f60, 0x93b2, 0x11d2, \
{ 0x9b, 0x8b, 0x00, 0x80, 0x5f, 0x8a, 0x16, 0xd9 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIPersistentProperties : public nsIProperties {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERSISTENTPROPERTIES_IID)
/* void load (in nsIInputStream input); */
NS_SCRIPTABLE NS_IMETHOD Load(nsIInputStream *input) = 0;
/* void save (in nsIOutputStream output, in AUTF8String header); */
NS_SCRIPTABLE NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header) = 0;
/* void subclass (in nsIPersistentProperties superclass); */
NS_SCRIPTABLE NS_IMETHOD Subclass(nsIPersistentProperties *superclass) = 0;
/* nsISimpleEnumerator enumerate (); */
NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
/* AString getStringProperty (in AUTF8String key); */
NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval NS_OUTPARAM) = 0;
/* AString setStringProperty (in AUTF8String key, in AString value); */
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval NS_OUTPARAM) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPersistentProperties, NS_IPERSISTENTPROPERTIES_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPERSISTENTPROPERTIES \
NS_SCRIPTABLE NS_IMETHOD Load(nsIInputStream *input); \
NS_SCRIPTABLE NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header); \
NS_SCRIPTABLE NS_IMETHOD Subclass(nsIPersistentProperties *superclass); \
NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPERSISTENTPROPERTIES(_to) \
NS_SCRIPTABLE NS_IMETHOD Load(nsIInputStream *input) { return _to Load(input); } \
NS_SCRIPTABLE NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header) { return _to Save(output, header); } \
NS_SCRIPTABLE NS_IMETHOD Subclass(nsIPersistentProperties *superclass) { return _to Subclass(superclass); } \
NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to Enumerate(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval NS_OUTPARAM) { return _to GetStringProperty(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval NS_OUTPARAM) { return _to SetStringProperty(key, value, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPERSISTENTPROPERTIES(_to) \
NS_SCRIPTABLE NS_IMETHOD Load(nsIInputStream *input) { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(input); } \
NS_SCRIPTABLE NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header) { return !_to ? NS_ERROR_NULL_POINTER : _to->Save(output, header); } \
NS_SCRIPTABLE NS_IMETHOD Subclass(nsIPersistentProperties *superclass) { return !_to ? NS_ERROR_NULL_POINTER : _to->Subclass(superclass); } \
NS_SCRIPTABLE NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Enumerate(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringProperty(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringProperty(key, value, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsPersistentProperties : public nsIPersistentProperties
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPERSISTENTPROPERTIES
nsPersistentProperties();
private:
~nsPersistentProperties();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPersistentProperties, nsIPersistentProperties)
nsPersistentProperties::nsPersistentProperties()
{
/* member initializers and constructor code */
}
nsPersistentProperties::~nsPersistentProperties()
{
/* destructor code */
}
/* void load (in nsIInputStream input); */
NS_IMETHODIMP nsPersistentProperties::Load(nsIInputStream *input)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void save (in nsIOutputStream output, in AUTF8String header); */
NS_IMETHODIMP nsPersistentProperties::Save(nsIOutputStream *output, const nsACString & header)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void subclass (in nsIPersistentProperties superclass); */
NS_IMETHODIMP nsPersistentProperties::Subclass(nsIPersistentProperties *superclass)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator enumerate (); */
NS_IMETHODIMP nsPersistentProperties::Enumerate(nsISimpleEnumerator * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString getStringProperty (in AUTF8String key); */
NS_IMETHODIMP nsPersistentProperties::GetStringProperty(const nsACString & key, nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString setStringProperty (in AUTF8String key, in AString value); */
NS_IMETHODIMP nsPersistentProperties::SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_IPERSISTENTPROPERTIES_CID \
{ 0x2245e573, 0x9464, 0x11d2, \
{ 0x9b, 0x8b, 0x0, 0x80, 0x5f, 0x8a, 0x16, 0xd9 } }
#define NS_PERSISTENTPROPERTIES_CONTRACTID "@mozilla.org/persistent-properties;1"
#define NS_PERSISTENTPROPERTIES_CLASSNAME "Persistent Properties"
#endif /* __gen_nsIPersistentProperties2_h__ */
|