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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/chat/components/public/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

#include "js/GCAnnotations.h"

/* 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; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetId(int32_t *aId) = 0;

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

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

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

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

  /* void notifyObservers (in nsISupports aObj, in string aEvent, [optional] in wstring aData); */
  JS_HAZ_CAN_RUN_SCRIPT 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); } 


/* 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; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultTag(imITag **aDefaultTag) = 0;

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

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

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

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

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

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

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

  /* readonly attribute imITag otherContactsTag; */
  JS_HAZ_CAN_RUN_SCRIPT 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); } 


#endif /* __gen_imITagsService_h__ */