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

#ifndef __gen_nsIMsgTagService_h__
#define __gen_nsIMsgTagService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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

/* starting interface:    nsIMsgTag */
#define NS_IMSGTAG_IID_STR "84d593a3-5d8a-45e6-96e2-9189acd422e1"

#define NS_IMSGTAG_IID \
  {0x84d593a3, 0x5d8a, 0x45e6, \
    { 0x96, 0xe2, 0x91, 0x89, 0xac, 0xd4, 0x22, 0xe1 }}

class NS_NO_VTABLE nsIMsgTag : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGTAG_IID)

  /* readonly attribute ACString key; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetKey(nsACString& aKey) = 0;

  /* readonly attribute AString tag; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTag(nsAString& aTag) = 0;

  /* readonly attribute ACString color; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetColor(nsACString& aColor) = 0;

  /* readonly attribute ACString ordinal; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOrdinal(nsACString& aOrdinal) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgTag, NS_IMSGTAG_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGTAG \
  NS_IMETHOD GetKey(nsACString& aKey) override; \
  NS_IMETHOD GetTag(nsAString& aTag) override; \
  NS_IMETHOD GetColor(nsACString& aColor) override; \
  NS_IMETHOD GetOrdinal(nsACString& aOrdinal) 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_NSIMSGTAG \
  nsresult GetKey(nsACString& aKey); \
  nsresult GetTag(nsAString& aTag); \
  nsresult GetColor(nsACString& aColor); \
  nsresult GetOrdinal(nsACString& aOrdinal); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGTAG(_to) \
  NS_IMETHOD GetKey(nsACString& aKey) override { return _to GetKey(aKey); } \
  NS_IMETHOD GetTag(nsAString& aTag) override { return _to GetTag(aTag); } \
  NS_IMETHOD GetColor(nsACString& aColor) override { return _to GetColor(aColor); } \
  NS_IMETHOD GetOrdinal(nsACString& aOrdinal) override { return _to GetOrdinal(aOrdinal); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGTAG(_to) \
  NS_IMETHOD GetKey(nsACString& aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKey(aKey); } \
  NS_IMETHOD GetTag(nsAString& aTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTag(aTag); } \
  NS_IMETHOD GetColor(nsACString& aColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColor(aColor); } \
  NS_IMETHOD GetOrdinal(nsACString& aOrdinal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrdinal(aOrdinal); } 


/* starting interface:    nsIMsgTagService */
#define NS_IMSGTAGSERVICE_IID_STR "97360ce3-0fba-4f1c-8214-af7bdc6f8587"

#define NS_IMSGTAGSERVICE_IID \
  {0x97360ce3, 0x0fba, 0x4f1c, \
    { 0x82, 0x14, 0xaf, 0x7b, 0xdc, 0x6f, 0x85, 0x87 }}

class NS_NO_VTABLE nsIMsgTagService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGTAGSERVICE_IID)

  /* void addTag (in AString tag, in ACString color, in ACString ordinal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddTag(const nsAString& tag, const nsACString& color, const nsACString& ordinal) = 0;

  /* void addTagForKey (in ACString key, in AString tag, in ACString color, in ACString ordinal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddTagForKey(const nsACString& key, const nsAString& tag, const nsACString& color, const nsACString& ordinal) = 0;

  /* ACString getKeyForTag (in AString tag); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetKeyForTag(const nsAString& tag, nsACString& _retval) = 0;

  /* ACString getTopKey (in ACString keyList); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTopKey(const nsACString& keyList, nsACString& _retval) = 0;

  /* AString getTagForKey (in ACString key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTagForKey(const nsACString& key, nsAString& _retval) = 0;

  /* void setTagForKey (in ACString key, in AString tag); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTagForKey(const nsACString& key, const nsAString& tag) = 0;

  /* ACString getColorForKey (in ACString key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetColorForKey(const nsACString& key, nsACString& _retval) = 0;

  /* void setColorForKey (in ACString key, in ACString color); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetColorForKey(const nsACString& key, const nsACString& color) = 0;

  /* ACString getOrdinalForKey (in ACString key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOrdinalForKey(const nsACString& key, nsACString& _retval) = 0;

  /* void setOrdinalForKey (in ACString key, in ACString ordinal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOrdinalForKey(const nsACString& key, const nsACString& ordinal) = 0;

  /* void deleteKey (in ACString key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteKey(const nsACString& key) = 0;

  /* void getAllTags (out unsigned long count, [array, size_is (count), retval] out nsIMsgTag tagArray); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAllTags(uint32_t *count, nsIMsgTag ***tagArray) = 0;

  /* boolean isValidKey (in ACString aKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsValidKey(const nsACString& aKey, bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgTagService, NS_IMSGTAGSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGTAGSERVICE \
  NS_IMETHOD AddTag(const nsAString& tag, const nsACString& color, const nsACString& ordinal) override; \
  NS_IMETHOD AddTagForKey(const nsACString& key, const nsAString& tag, const nsACString& color, const nsACString& ordinal) override; \
  NS_IMETHOD GetKeyForTag(const nsAString& tag, nsACString& _retval) override; \
  NS_IMETHOD GetTopKey(const nsACString& keyList, nsACString& _retval) override; \
  NS_IMETHOD GetTagForKey(const nsACString& key, nsAString& _retval) override; \
  NS_IMETHOD SetTagForKey(const nsACString& key, const nsAString& tag) override; \
  NS_IMETHOD GetColorForKey(const nsACString& key, nsACString& _retval) override; \
  NS_IMETHOD SetColorForKey(const nsACString& key, const nsACString& color) override; \
  NS_IMETHOD GetOrdinalForKey(const nsACString& key, nsACString& _retval) override; \
  NS_IMETHOD SetOrdinalForKey(const nsACString& key, const nsACString& ordinal) override; \
  NS_IMETHOD DeleteKey(const nsACString& key) override; \
  NS_IMETHOD GetAllTags(uint32_t *count, nsIMsgTag ***tagArray) override; \
  NS_IMETHOD IsValidKey(const nsACString& aKey, bool *_retval) 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_NSIMSGTAGSERVICE \
  nsresult AddTag(const nsAString& tag, const nsACString& color, const nsACString& ordinal); \
  nsresult AddTagForKey(const nsACString& key, const nsAString& tag, const nsACString& color, const nsACString& ordinal); \
  nsresult GetKeyForTag(const nsAString& tag, nsACString& _retval); \
  nsresult GetTopKey(const nsACString& keyList, nsACString& _retval); \
  nsresult GetTagForKey(const nsACString& key, nsAString& _retval); \
  nsresult SetTagForKey(const nsACString& key, const nsAString& tag); \
  nsresult GetColorForKey(const nsACString& key, nsACString& _retval); \
  nsresult SetColorForKey(const nsACString& key, const nsACString& color); \
  nsresult GetOrdinalForKey(const nsACString& key, nsACString& _retval); \
  nsresult SetOrdinalForKey(const nsACString& key, const nsACString& ordinal); \
  nsresult DeleteKey(const nsACString& key); \
  nsresult GetAllTags(uint32_t *count, nsIMsgTag ***tagArray); \
  nsresult IsValidKey(const nsACString& aKey, bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGTAGSERVICE(_to) \
  NS_IMETHOD AddTag(const nsAString& tag, const nsACString& color, const nsACString& ordinal) override { return _to AddTag(tag, color, ordinal); } \
  NS_IMETHOD AddTagForKey(const nsACString& key, const nsAString& tag, const nsACString& color, const nsACString& ordinal) override { return _to AddTagForKey(key, tag, color, ordinal); } \
  NS_IMETHOD GetKeyForTag(const nsAString& tag, nsACString& _retval) override { return _to GetKeyForTag(tag, _retval); } \
  NS_IMETHOD GetTopKey(const nsACString& keyList, nsACString& _retval) override { return _to GetTopKey(keyList, _retval); } \
  NS_IMETHOD GetTagForKey(const nsACString& key, nsAString& _retval) override { return _to GetTagForKey(key, _retval); } \
  NS_IMETHOD SetTagForKey(const nsACString& key, const nsAString& tag) override { return _to SetTagForKey(key, tag); } \
  NS_IMETHOD GetColorForKey(const nsACString& key, nsACString& _retval) override { return _to GetColorForKey(key, _retval); } \
  NS_IMETHOD SetColorForKey(const nsACString& key, const nsACString& color) override { return _to SetColorForKey(key, color); } \
  NS_IMETHOD GetOrdinalForKey(const nsACString& key, nsACString& _retval) override { return _to GetOrdinalForKey(key, _retval); } \
  NS_IMETHOD SetOrdinalForKey(const nsACString& key, const nsACString& ordinal) override { return _to SetOrdinalForKey(key, ordinal); } \
  NS_IMETHOD DeleteKey(const nsACString& key) override { return _to DeleteKey(key); } \
  NS_IMETHOD GetAllTags(uint32_t *count, nsIMsgTag ***tagArray) override { return _to GetAllTags(count, tagArray); } \
  NS_IMETHOD IsValidKey(const nsACString& aKey, bool *_retval) override { return _to IsValidKey(aKey, _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_NSIMSGTAGSERVICE(_to) \
  NS_IMETHOD AddTag(const nsAString& tag, const nsACString& color, const nsACString& ordinal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddTag(tag, color, ordinal); } \
  NS_IMETHOD AddTagForKey(const nsACString& key, const nsAString& tag, const nsACString& color, const nsACString& ordinal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddTagForKey(key, tag, color, ordinal); } \
  NS_IMETHOD GetKeyForTag(const nsAString& tag, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyForTag(tag, _retval); } \
  NS_IMETHOD GetTopKey(const nsACString& keyList, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopKey(keyList, _retval); } \
  NS_IMETHOD GetTagForKey(const nsACString& key, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTagForKey(key, _retval); } \
  NS_IMETHOD SetTagForKey(const nsACString& key, const nsAString& tag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTagForKey(key, tag); } \
  NS_IMETHOD GetColorForKey(const nsACString& key, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorForKey(key, _retval); } \
  NS_IMETHOD SetColorForKey(const nsACString& key, const nsACString& color) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColorForKey(key, color); } \
  NS_IMETHOD GetOrdinalForKey(const nsACString& key, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrdinalForKey(key, _retval); } \
  NS_IMETHOD SetOrdinalForKey(const nsACString& key, const nsACString& ordinal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOrdinalForKey(key, ordinal); } \
  NS_IMETHOD DeleteKey(const nsACString& key) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteKey(key); } \
  NS_IMETHOD GetAllTags(uint32_t *count, nsIMsgTag ***tagArray) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllTags(count, tagArray); } \
  NS_IMETHOD IsValidKey(const nsACString& aKey, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsValidKey(aKey, _retval); } 


#endif /* __gen_nsIMsgTagService_h__ */