/usr/include/thunderbird/nsIProperties.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIProperties.idl
*/
#ifndef __gen_nsIProperties_h__
#define __gen_nsIProperties_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIProperties */
#define NS_IPROPERTIES_IID_STR "78650582-4e93-4b60-8e85-26ebd3eb14ca"
#define NS_IPROPERTIES_IID \
{0x78650582, 0x4e93, 0x4b60, \
{ 0x8e, 0x85, 0x26, 0xeb, 0xd3, 0xeb, 0x14, 0xca }}
class NS_NO_VTABLE nsIProperties : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROPERTIES_IID)
/* void get (in string prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result) = 0;
/* void set (in string prop, in nsISupports value); */
NS_IMETHOD Set(const char * prop, nsISupports *value) = 0;
/* boolean has (in string prop); */
NS_IMETHOD Has(const char * prop, bool *_retval) = 0;
/* void undefine (in string prop); */
NS_IMETHOD Undefine(const char * prop) = 0;
/* void getKeys (out uint32_t count, [array, size_is (count), retval] out string keys); */
NS_IMETHOD GetKeys(uint32_t *count, char * **keys) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIProperties, NS_IPROPERTIES_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPROPERTIES \
NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result) override; \
NS_IMETHOD Set(const char * prop, nsISupports *value) override; \
NS_IMETHOD Has(const char * prop, bool *_retval) override; \
NS_IMETHOD Undefine(const char * prop) override; \
NS_IMETHOD GetKeys(uint32_t *count, char * **keys) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPROPERTIES(_to) \
NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result) override { return _to Get(prop, iid, result); } \
NS_IMETHOD Set(const char * prop, nsISupports *value) override { return _to Set(prop, value); } \
NS_IMETHOD Has(const char * prop, bool *_retval) override { return _to Has(prop, _retval); } \
NS_IMETHOD Undefine(const char * prop) override { return _to Undefine(prop); } \
NS_IMETHOD GetKeys(uint32_t *count, char * **keys) override { return _to GetKeys(count, keys); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPROPERTIES(_to) \
NS_IMETHOD Get(const char * prop, const nsIID & iid, void **result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(prop, iid, result); } \
NS_IMETHOD Set(const char * prop, nsISupports *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Set(prop, value); } \
NS_IMETHOD Has(const char * prop, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Has(prop, _retval); } \
NS_IMETHOD Undefine(const char * prop) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Undefine(prop); } \
NS_IMETHOD GetKeys(uint32_t *count, char * **keys) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeys(count, keys); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsProperties : public nsIProperties
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPROPERTIES
nsProperties();
private:
~nsProperties();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsProperties, nsIProperties)
nsProperties::nsProperties()
{
/* member initializers and constructor code */
}
nsProperties::~nsProperties()
{
/* destructor code */
}
/* void get (in string prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
NS_IMETHODIMP nsProperties::Get(const char * prop, const nsIID & iid, void **result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void set (in string prop, in nsISupports value); */
NS_IMETHODIMP nsProperties::Set(const char * prop, nsISupports *value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean has (in string prop); */
NS_IMETHODIMP nsProperties::Has(const char * prop, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void undefine (in string prop); */
NS_IMETHODIMP nsProperties::Undefine(const char * prop)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getKeys (out uint32_t count, [array, size_is (count), retval] out string keys); */
NS_IMETHODIMP nsProperties::GetKeys(uint32_t *count, char * **keys)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIProperties_h__ */
|