DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
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 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/imITagsService.idl
 */

#ifndef __gen_imITagsService_h__
#define __gen_imITagsService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIObserver_h__
#include "nsIObserver.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class imIContact; /* forward declaration */


/* starting interface:    imITag */
#define IMITAG_IID_STR "c211e5e2-f0a4-4a86-9e4c-3f6b905628a5"

#define IMITAG_IID \
  {0xc211e5e2, 0xf0a4, 0x4a86, \
    { 0x9e, 0x4c, 0x3f, 0x6b, 0x90, 0x56, 0x28, 0xa5 }}

class NS_NO_VTABLE imITag : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMITAG_IID)

  /* readonly attribute long id; */
  NS_IMETHOD GetId(int32_t *aId) = 0;

  /* attribute AUTF8String name; */
  NS_IMETHOD GetName(nsACString & aName) = 0;
  NS_IMETHOD SetName(const nsACString & aName) = 0;

  /* void getContacts ([optional] out unsigned long contactCount, [array, size_is (contactCount), retval] out imIContact contacts); */
  NS_IMETHOD GetContacts(uint32_t *contactCount, imIContact * **contacts) = 0;

  /* void addObserver (in nsIObserver aObserver); */
  NS_IMETHOD AddObserver(nsIObserver *aObserver) = 0;

  /* void removeObserver (in nsIObserver aObserver); */
  NS_IMETHOD RemoveObserver(nsIObserver *aObserver) = 0;

  /* void notifyObservers (in nsISupports aObj, in string aEvent, [optional] in wstring aData); */
  NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imITag, IMITAG_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMITAG \
  NS_IMETHOD GetId(int32_t *aId) override; \
  NS_IMETHOD GetName(nsACString & aName) override; \
  NS_IMETHOD SetName(const nsACString & aName) override; \
  NS_IMETHOD GetContacts(uint32_t *contactCount, imIContact * **contacts) override; \
  NS_IMETHOD AddObserver(nsIObserver *aObserver) override; \
  NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override; \
  NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_IMITAG \
  nsresult GetId(int32_t *aId); \
  nsresult GetName(nsACString & aName); \
  nsresult SetName(const nsACString & aName); \
  nsresult GetContacts(uint32_t *contactCount, imIContact * **contacts); \
  nsresult AddObserver(nsIObserver *aObserver); \
  nsresult RemoveObserver(nsIObserver *aObserver); \
  nsresult NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMITAG(_to) \
  NS_IMETHOD GetId(int32_t *aId) override { return _to GetId(aId); } \
  NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
  NS_IMETHOD SetName(const nsACString & aName) override { return _to SetName(aName); } \
  NS_IMETHOD GetContacts(uint32_t *contactCount, imIContact * **contacts) override { return _to GetContacts(contactCount, contacts); } \
  NS_IMETHOD AddObserver(nsIObserver *aObserver) override { return _to AddObserver(aObserver); } \
  NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override { return _to RemoveObserver(aObserver); } \
  NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) override { return _to NotifyObservers(aObj, aEvent, aData); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMITAG(_to) \
  NS_IMETHOD GetId(int32_t *aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD SetName(const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
  NS_IMETHOD GetContacts(uint32_t *contactCount, imIContact * **contacts) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContacts(contactCount, contacts); } \
  NS_IMETHOD AddObserver(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
  NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } \
  NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyObservers(aObj, aEvent, aData); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class imTag : public imITag
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMITAG

  imTag();

private:
  ~imTag();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(imTag, imITag)

imTag::imTag()
{
  /* member initializers and constructor code */
}

imTag::~imTag()
{
  /* destructor code */
}

/* readonly attribute long id; */
NS_IMETHODIMP imTag::GetId(int32_t *aId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute AUTF8String name; */
NS_IMETHODIMP imTag::GetName(nsACString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imTag::SetName(const nsACString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getContacts ([optional] out unsigned long contactCount, [array, size_is (contactCount), retval] out imIContact contacts); */
NS_IMETHODIMP imTag::GetContacts(uint32_t *contactCount, imIContact * **contacts)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addObserver (in nsIObserver aObserver); */
NS_IMETHODIMP imTag::AddObserver(nsIObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeObserver (in nsIObserver aObserver); */
NS_IMETHODIMP imTag::RemoveObserver(nsIObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void notifyObservers (in nsISupports aObj, in string aEvent, [optional] in wstring aData); */
NS_IMETHODIMP imTag::NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    imITagsService */
#define IMITAGSSERVICE_IID_STR "993aa8c7-8193-4354-8ee1-d2fd9fca692d"

#define IMITAGSSERVICE_IID \
  {0x993aa8c7, 0x8193, 0x4354, \
    { 0x8e, 0xe1, 0xd2, 0xfd, 0x9f, 0xca, 0x69, 0x2d }}

class NS_NO_VTABLE imITagsService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMITAGSSERVICE_IID)

  /* readonly attribute imITag defaultTag; */
  NS_IMETHOD GetDefaultTag(imITag * *aDefaultTag) = 0;

  /* imITag createTag (in AUTF8String aName); */
  NS_IMETHOD CreateTag(const nsACString & aName, imITag * *_retval) = 0;

  /* imITag getTagById (in long aId); */
  NS_IMETHOD GetTagById(int32_t aId, imITag * *_retval) = 0;

  /* imITag getTagByName (in AUTF8String aName); */
  NS_IMETHOD GetTagByName(const nsACString & aName, imITag * *_retval) = 0;

  /* void getTags ([optional] out unsigned long tagCount, [array, size_is (tagCount), retval] out imITag tags); */
  NS_IMETHOD GetTags(uint32_t *tagCount, imITag * **tags) = 0;

  /* boolean isTagHidden (in imITag aTag); */
  NS_IMETHOD IsTagHidden(imITag *aTag, bool *_retval) = 0;

  /* void hideTag (in imITag aTag); */
  NS_IMETHOD HideTag(imITag *aTag) = 0;

  /* void showTag (in imITag aTag); */
  NS_IMETHOD ShowTag(imITag *aTag) = 0;

  /* readonly attribute imITag otherContactsTag; */
  NS_IMETHOD GetOtherContactsTag(imITag * *aOtherContactsTag) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imITagsService, IMITAGSSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMITAGSSERVICE \
  NS_IMETHOD GetDefaultTag(imITag * *aDefaultTag) override; \
  NS_IMETHOD CreateTag(const nsACString & aName, imITag * *_retval) override; \
  NS_IMETHOD GetTagById(int32_t aId, imITag * *_retval) override; \
  NS_IMETHOD GetTagByName(const nsACString & aName, imITag * *_retval) override; \
  NS_IMETHOD GetTags(uint32_t *tagCount, imITag * **tags) override; \
  NS_IMETHOD IsTagHidden(imITag *aTag, bool *_retval) override; \
  NS_IMETHOD HideTag(imITag *aTag) override; \
  NS_IMETHOD ShowTag(imITag *aTag) override; \
  NS_IMETHOD GetOtherContactsTag(imITag * *aOtherContactsTag) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_IMITAGSSERVICE \
  nsresult GetDefaultTag(imITag * *aDefaultTag); \
  nsresult CreateTag(const nsACString & aName, imITag * *_retval); \
  nsresult GetTagById(int32_t aId, imITag * *_retval); \
  nsresult GetTagByName(const nsACString & aName, imITag * *_retval); \
  nsresult GetTags(uint32_t *tagCount, imITag * **tags); \
  nsresult IsTagHidden(imITag *aTag, bool *_retval); \
  nsresult HideTag(imITag *aTag); \
  nsresult ShowTag(imITag *aTag); \
  nsresult GetOtherContactsTag(imITag * *aOtherContactsTag); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMITAGSSERVICE(_to) \
  NS_IMETHOD GetDefaultTag(imITag * *aDefaultTag) override { return _to GetDefaultTag(aDefaultTag); } \
  NS_IMETHOD CreateTag(const nsACString & aName, imITag * *_retval) override { return _to CreateTag(aName, _retval); } \
  NS_IMETHOD GetTagById(int32_t aId, imITag * *_retval) override { return _to GetTagById(aId, _retval); } \
  NS_IMETHOD GetTagByName(const nsACString & aName, imITag * *_retval) override { return _to GetTagByName(aName, _retval); } \
  NS_IMETHOD GetTags(uint32_t *tagCount, imITag * **tags) override { return _to GetTags(tagCount, tags); } \
  NS_IMETHOD IsTagHidden(imITag *aTag, bool *_retval) override { return _to IsTagHidden(aTag, _retval); } \
  NS_IMETHOD HideTag(imITag *aTag) override { return _to HideTag(aTag); } \
  NS_IMETHOD ShowTag(imITag *aTag) override { return _to ShowTag(aTag); } \
  NS_IMETHOD GetOtherContactsTag(imITag * *aOtherContactsTag) override { return _to GetOtherContactsTag(aOtherContactsTag); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMITAGSSERVICE(_to) \
  NS_IMETHOD GetDefaultTag(imITag * *aDefaultTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultTag(aDefaultTag); } \
  NS_IMETHOD CreateTag(const nsACString & aName, imITag * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateTag(aName, _retval); } \
  NS_IMETHOD GetTagById(int32_t aId, imITag * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTagById(aId, _retval); } \
  NS_IMETHOD GetTagByName(const nsACString & aName, imITag * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTagByName(aName, _retval); } \
  NS_IMETHOD GetTags(uint32_t *tagCount, imITag * **tags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTags(tagCount, tags); } \
  NS_IMETHOD IsTagHidden(imITag *aTag, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsTagHidden(aTag, _retval); } \
  NS_IMETHOD HideTag(imITag *aTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HideTag(aTag); } \
  NS_IMETHOD ShowTag(imITag *aTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowTag(aTag); } \
  NS_IMETHOD GetOtherContactsTag(imITag * *aOtherContactsTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOtherContactsTag(aOtherContactsTag); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class imTagsService : public imITagsService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMITAGSSERVICE

  imTagsService();

private:
  ~imTagsService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(imTagsService, imITagsService)

imTagsService::imTagsService()
{
  /* member initializers and constructor code */
}

imTagsService::~imTagsService()
{
  /* destructor code */
}

/* readonly attribute imITag defaultTag; */
NS_IMETHODIMP imTagsService::GetDefaultTag(imITag * *aDefaultTag)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* imITag createTag (in AUTF8String aName); */
NS_IMETHODIMP imTagsService::CreateTag(const nsACString & aName, imITag * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* imITag getTagById (in long aId); */
NS_IMETHODIMP imTagsService::GetTagById(int32_t aId, imITag * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* imITag getTagByName (in AUTF8String aName); */
NS_IMETHODIMP imTagsService::GetTagByName(const nsACString & aName, imITag * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getTags ([optional] out unsigned long tagCount, [array, size_is (tagCount), retval] out imITag tags); */
NS_IMETHODIMP imTagsService::GetTags(uint32_t *tagCount, imITag * **tags)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean isTagHidden (in imITag aTag); */
NS_IMETHODIMP imTagsService::IsTagHidden(imITag *aTag, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void hideTag (in imITag aTag); */
NS_IMETHODIMP imTagsService::HideTag(imITag *aTag)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void showTag (in imITag aTag); */
NS_IMETHODIMP imTagsService::ShowTag(imITag *aTag)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute imITag otherContactsTag; */
NS_IMETHODIMP imTagsService::GetOtherContactsTag(imITag * *aOtherContactsTag)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_imITagsService_h__ */