/usr/include/thunderbird/nsICertTree.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 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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsICertTree.idl
*/
#ifndef __gen_nsICertTree_h__
#define __gen_nsICertTree_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsITreeView_h__
#include "nsITreeView.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsINSSCertCache; /* forward declaration */
class nsIX509Cert; /* forward declaration */
/* starting interface: nsICertTreeItem */
#define NS_ICERTTREEITEM_IID_STR "d0180863-606e-49e6-8324-cf45ed4dd891"
#define NS_ICERTTREEITEM_IID \
{0xd0180863, 0x606e, 0x49e6, \
{ 0x83, 0x24, 0xcf, 0x45, 0xed, 0x4d, 0xd8, 0x91 }}
class NS_NO_VTABLE nsICertTreeItem : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTTREEITEM_IID)
/* readonly attribute nsIX509Cert cert; */
NS_IMETHOD GetCert(nsIX509Cert * *aCert) = 0;
/* readonly attribute AString hostPort; */
NS_IMETHOD GetHostPort(nsAString & aHostPort) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICertTreeItem, NS_ICERTTREEITEM_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICERTTREEITEM \
NS_IMETHOD GetCert(nsIX509Cert * *aCert) override; \
NS_IMETHOD GetHostPort(nsAString & aHostPort) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICERTTREEITEM(_to) \
NS_IMETHOD GetCert(nsIX509Cert * *aCert) override { return _to GetCert(aCert); } \
NS_IMETHOD GetHostPort(nsAString & aHostPort) override { return _to GetHostPort(aHostPort); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICERTTREEITEM(_to) \
NS_IMETHOD GetCert(nsIX509Cert * *aCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCert(aCert); } \
NS_IMETHOD GetHostPort(nsAString & aHostPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostPort(aHostPort); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsCertTreeItem : public nsICertTreeItem
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICERTTREEITEM
nsCertTreeItem();
private:
~nsCertTreeItem();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsCertTreeItem, nsICertTreeItem)
nsCertTreeItem::nsCertTreeItem()
{
/* member initializers and constructor code */
}
nsCertTreeItem::~nsCertTreeItem()
{
/* destructor code */
}
/* readonly attribute nsIX509Cert cert; */
NS_IMETHODIMP nsCertTreeItem::GetCert(nsIX509Cert * *aCert)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AString hostPort; */
NS_IMETHODIMP nsCertTreeItem::GetHostPort(nsAString & aHostPort)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsICertTree */
#define NS_ICERTTREE_IID_STR "a8cd1c89-a901-4735-831b-7198b7b8b6b1"
#define NS_ICERTTREE_IID \
{0xa8cd1c89, 0xa901, 0x4735, \
{ 0x83, 0x1b, 0x71, 0x98, 0xb7, 0xb8, 0xb6, 0xb1 }}
class NS_NO_VTABLE nsICertTree : public nsITreeView {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTTREE_IID)
/* void loadCerts (in unsigned long type); */
NS_IMETHOD LoadCerts(uint32_t type) = 0;
/* void loadCertsFromCache (in nsINSSCertCache cache, in unsigned long type); */
NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, uint32_t type) = 0;
/* nsIX509Cert getCert (in unsigned long index); */
NS_IMETHOD GetCert(uint32_t index, nsIX509Cert * *_retval) = 0;
/* nsICertTreeItem getTreeItem (in unsigned long index); */
NS_IMETHOD GetTreeItem(uint32_t index, nsICertTreeItem * *_retval) = 0;
/* boolean isHostPortOverride (in unsigned long index); */
NS_IMETHOD IsHostPortOverride(uint32_t index, bool *_retval) = 0;
/* void deleteEntryObject (in unsigned long index); */
NS_IMETHOD DeleteEntryObject(uint32_t index) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICertTree, NS_ICERTTREE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICERTTREE \
NS_IMETHOD LoadCerts(uint32_t type) override; \
NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, uint32_t type) override; \
NS_IMETHOD GetCert(uint32_t index, nsIX509Cert * *_retval) override; \
NS_IMETHOD GetTreeItem(uint32_t index, nsICertTreeItem * *_retval) override; \
NS_IMETHOD IsHostPortOverride(uint32_t index, bool *_retval) override; \
NS_IMETHOD DeleteEntryObject(uint32_t index) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICERTTREE(_to) \
NS_IMETHOD LoadCerts(uint32_t type) override { return _to LoadCerts(type); } \
NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, uint32_t type) override { return _to LoadCertsFromCache(cache, type); } \
NS_IMETHOD GetCert(uint32_t index, nsIX509Cert * *_retval) override { return _to GetCert(index, _retval); } \
NS_IMETHOD GetTreeItem(uint32_t index, nsICertTreeItem * *_retval) override { return _to GetTreeItem(index, _retval); } \
NS_IMETHOD IsHostPortOverride(uint32_t index, bool *_retval) override { return _to IsHostPortOverride(index, _retval); } \
NS_IMETHOD DeleteEntryObject(uint32_t index) override { return _to DeleteEntryObject(index); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICERTTREE(_to) \
NS_IMETHOD LoadCerts(uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadCerts(type); } \
NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadCertsFromCache(cache, type); } \
NS_IMETHOD GetCert(uint32_t index, nsIX509Cert * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCert(index, _retval); } \
NS_IMETHOD GetTreeItem(uint32_t index, nsICertTreeItem * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTreeItem(index, _retval); } \
NS_IMETHOD IsHostPortOverride(uint32_t index, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsHostPortOverride(index, _retval); } \
NS_IMETHOD DeleteEntryObject(uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteEntryObject(index); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsCertTree : public nsICertTree
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICERTTREE
nsCertTree();
private:
~nsCertTree();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsCertTree, nsICertTree)
nsCertTree::nsCertTree()
{
/* member initializers and constructor code */
}
nsCertTree::~nsCertTree()
{
/* destructor code */
}
/* void loadCerts (in unsigned long type); */
NS_IMETHODIMP nsCertTree::LoadCerts(uint32_t type)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void loadCertsFromCache (in nsINSSCertCache cache, in unsigned long type); */
NS_IMETHODIMP nsCertTree::LoadCertsFromCache(nsINSSCertCache *cache, uint32_t type)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIX509Cert getCert (in unsigned long index); */
NS_IMETHODIMP nsCertTree::GetCert(uint32_t index, nsIX509Cert * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsICertTreeItem getTreeItem (in unsigned long index); */
NS_IMETHODIMP nsCertTree::GetTreeItem(uint32_t index, nsICertTreeItem * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isHostPortOverride (in unsigned long index); */
NS_IMETHODIMP nsCertTree::IsHostPortOverride(uint32_t index, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteEntryObject (in unsigned long index); */
NS_IMETHODIMP nsCertTree::DeleteEntryObject(uint32_t index)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_CERTTREE_CID { 0x4ea60761, 0x31d6, 0x491d, \
{ 0x9e, 0x34, 0x4b, 0x53, 0xa2, 0x6c, 0x41, 0x6c } }
#define NS_CERTTREE_CONTRACTID "@mozilla.org/security/nsCertTree;1"
#endif /* __gen_nsICertTree_h__ */
|