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

#ifndef __gen_nsIImapFlagAndUidState_h__
#define __gen_nsIImapFlagAndUidState_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:    nsIImapFlagAndUidState */
#define NS_IIMAPFLAGANDUIDSTATE_IID_STR "360848be-f694-40db-80ef-793a2c43ddcb"

#define NS_IIMAPFLAGANDUIDSTATE_IID \
  {0x360848be, 0xf694, 0x40db, \
    { 0x80, 0xef, 0x79, 0x3a, 0x2c, 0x43, 0xdd, 0xcb }}

class NS_NO_VTABLE nsIImapFlagAndUidState : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMAPFLAGANDUIDSTATE_IID)

  /* readonly attribute long numberOfMessages; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumberOfMessages(int32_t *aNumberOfMessages) = 0;

  /* readonly attribute long numberOfRecentMessages; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumberOfRecentMessages(int32_t *aNumberOfRecentMessages) = 0;

  /* readonly attribute long numberOfDeletedMessages; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumberOfDeletedMessages(int32_t *aNumberOfDeletedMessages) = 0;

  /* readonly attribute boolean partialUIDFetch; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPartialUIDFetch(bool *aPartialUIDFetch) = 0;

  /* readonly attribute unsigned short supportedUserFlags; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSupportedUserFlags(uint16_t *aSupportedUserFlags) = 0;

  /* void orSupportedUserFlags (in unsigned short aFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OrSupportedUserFlags(uint16_t aFlags) = 0;

  /* void getUidOfMessage (in long zeroBasedIndex, out unsigned long result); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUidOfMessage(int32_t zeroBasedIndex, uint32_t *result) = 0;

  /* void getMessageFlags (in long zeroBasedIndex, out unsigned short result); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageFlags(int32_t zeroBasedIndex, uint16_t *result) = 0;

  /* void setMessageFlags (in long zeroBasedIndex, in unsigned short flags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMessageFlags(int32_t zeroBasedIndex, uint16_t flags) = 0;

  /* void expungeByIndex (in unsigned long zeroBasedIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ExpungeByIndex(uint32_t zeroBasedIndex) = 0;

  /* void addUidFlagPair (in unsigned long uid, in unsigned short flags, in unsigned long zeroBasedIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddUidFlagPair(uint32_t uid, uint16_t flags, uint32_t zeroBasedIndex) = 0;

  /* void addUidCustomFlagPair (in unsigned long uid, in string customFlag); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddUidCustomFlagPair(uint32_t uid, const char * customFlag) = 0;

  /* string getCustomFlags (in unsigned long uid); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCustomFlags(uint32_t uid, char * *_retval) = 0;

  /* void reset (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Reset(void) = 0;

  /* void clearCustomFlags (in unsigned long uid); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearCustomFlags(uint32_t uid) = 0;

  /* void setCustomAttribute (in unsigned long aUid, in ACString aCustomAttributeName, in ACString aCustomAttributeValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCustomAttribute(uint32_t aUid, const nsACString& aCustomAttributeName, const nsACString& aCustomAttributeValue) = 0;

  /* ACString getCustomAttribute (in unsigned long aUid, in ACString aCustomAttributeName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCustomAttribute(uint32_t aUid, const nsACString& aCustomAttributeName, nsACString& _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIImapFlagAndUidState, NS_IIMAPFLAGANDUIDSTATE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMAPFLAGANDUIDSTATE \
  NS_IMETHOD GetNumberOfMessages(int32_t *aNumberOfMessages) override; \
  NS_IMETHOD GetNumberOfRecentMessages(int32_t *aNumberOfRecentMessages) override; \
  NS_IMETHOD GetNumberOfDeletedMessages(int32_t *aNumberOfDeletedMessages) override; \
  NS_IMETHOD GetPartialUIDFetch(bool *aPartialUIDFetch) override; \
  NS_IMETHOD GetSupportedUserFlags(uint16_t *aSupportedUserFlags) override; \
  NS_IMETHOD OrSupportedUserFlags(uint16_t aFlags) override; \
  NS_IMETHOD GetUidOfMessage(int32_t zeroBasedIndex, uint32_t *result) override; \
  NS_IMETHOD GetMessageFlags(int32_t zeroBasedIndex, uint16_t *result) override; \
  NS_IMETHOD SetMessageFlags(int32_t zeroBasedIndex, uint16_t flags) override; \
  NS_IMETHOD ExpungeByIndex(uint32_t zeroBasedIndex) override; \
  NS_IMETHOD AddUidFlagPair(uint32_t uid, uint16_t flags, uint32_t zeroBasedIndex) override; \
  NS_IMETHOD AddUidCustomFlagPair(uint32_t uid, const char * customFlag) override; \
  NS_IMETHOD GetCustomFlags(uint32_t uid, char * *_retval) override; \
  NS_IMETHOD Reset(void) override; \
  NS_IMETHOD ClearCustomFlags(uint32_t uid) override; \
  NS_IMETHOD SetCustomAttribute(uint32_t aUid, const nsACString& aCustomAttributeName, const nsACString& aCustomAttributeValue) override; \
  NS_IMETHOD GetCustomAttribute(uint32_t aUid, const nsACString& aCustomAttributeName, nsACString& _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_NSIIMAPFLAGANDUIDSTATE \
  nsresult GetNumberOfMessages(int32_t *aNumberOfMessages); \
  nsresult GetNumberOfRecentMessages(int32_t *aNumberOfRecentMessages); \
  nsresult GetNumberOfDeletedMessages(int32_t *aNumberOfDeletedMessages); \
  nsresult GetPartialUIDFetch(bool *aPartialUIDFetch); \
  nsresult GetSupportedUserFlags(uint16_t *aSupportedUserFlags); \
  nsresult OrSupportedUserFlags(uint16_t aFlags); \
  nsresult GetUidOfMessage(int32_t zeroBasedIndex, uint32_t *result); \
  nsresult GetMessageFlags(int32_t zeroBasedIndex, uint16_t *result); \
  nsresult SetMessageFlags(int32_t zeroBasedIndex, uint16_t flags); \
  nsresult ExpungeByIndex(uint32_t zeroBasedIndex); \
  nsresult AddUidFlagPair(uint32_t uid, uint16_t flags, uint32_t zeroBasedIndex); \
  nsresult AddUidCustomFlagPair(uint32_t uid, const char * customFlag); \
  nsresult GetCustomFlags(uint32_t uid, char * *_retval); \
  nsresult Reset(void); \
  nsresult ClearCustomFlags(uint32_t uid); \
  nsresult SetCustomAttribute(uint32_t aUid, const nsACString& aCustomAttributeName, const nsACString& aCustomAttributeValue); \
  nsresult GetCustomAttribute(uint32_t aUid, const nsACString& aCustomAttributeName, nsACString& _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMAPFLAGANDUIDSTATE(_to) \
  NS_IMETHOD GetNumberOfMessages(int32_t *aNumberOfMessages) override { return _to GetNumberOfMessages(aNumberOfMessages); } \
  NS_IMETHOD GetNumberOfRecentMessages(int32_t *aNumberOfRecentMessages) override { return _to GetNumberOfRecentMessages(aNumberOfRecentMessages); } \
  NS_IMETHOD GetNumberOfDeletedMessages(int32_t *aNumberOfDeletedMessages) override { return _to GetNumberOfDeletedMessages(aNumberOfDeletedMessages); } \
  NS_IMETHOD GetPartialUIDFetch(bool *aPartialUIDFetch) override { return _to GetPartialUIDFetch(aPartialUIDFetch); } \
  NS_IMETHOD GetSupportedUserFlags(uint16_t *aSupportedUserFlags) override { return _to GetSupportedUserFlags(aSupportedUserFlags); } \
  NS_IMETHOD OrSupportedUserFlags(uint16_t aFlags) override { return _to OrSupportedUserFlags(aFlags); } \
  NS_IMETHOD GetUidOfMessage(int32_t zeroBasedIndex, uint32_t *result) override { return _to GetUidOfMessage(zeroBasedIndex, result); } \
  NS_IMETHOD GetMessageFlags(int32_t zeroBasedIndex, uint16_t *result) override { return _to GetMessageFlags(zeroBasedIndex, result); } \
  NS_IMETHOD SetMessageFlags(int32_t zeroBasedIndex, uint16_t flags) override { return _to SetMessageFlags(zeroBasedIndex, flags); } \
  NS_IMETHOD ExpungeByIndex(uint32_t zeroBasedIndex) override { return _to ExpungeByIndex(zeroBasedIndex); } \
  NS_IMETHOD AddUidFlagPair(uint32_t uid, uint16_t flags, uint32_t zeroBasedIndex) override { return _to AddUidFlagPair(uid, flags, zeroBasedIndex); } \
  NS_IMETHOD AddUidCustomFlagPair(uint32_t uid, const char * customFlag) override { return _to AddUidCustomFlagPair(uid, customFlag); } \
  NS_IMETHOD GetCustomFlags(uint32_t uid, char * *_retval) override { return _to GetCustomFlags(uid, _retval); } \
  NS_IMETHOD Reset(void) override { return _to Reset(); } \
  NS_IMETHOD ClearCustomFlags(uint32_t uid) override { return _to ClearCustomFlags(uid); } \
  NS_IMETHOD SetCustomAttribute(uint32_t aUid, const nsACString& aCustomAttributeName, const nsACString& aCustomAttributeValue) override { return _to SetCustomAttribute(aUid, aCustomAttributeName, aCustomAttributeValue); } \
  NS_IMETHOD GetCustomAttribute(uint32_t aUid, const nsACString& aCustomAttributeName, nsACString& _retval) override { return _to GetCustomAttribute(aUid, aCustomAttributeName, _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_NSIIMAPFLAGANDUIDSTATE(_to) \
  NS_IMETHOD GetNumberOfMessages(int32_t *aNumberOfMessages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfMessages(aNumberOfMessages); } \
  NS_IMETHOD GetNumberOfRecentMessages(int32_t *aNumberOfRecentMessages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfRecentMessages(aNumberOfRecentMessages); } \
  NS_IMETHOD GetNumberOfDeletedMessages(int32_t *aNumberOfDeletedMessages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfDeletedMessages(aNumberOfDeletedMessages); } \
  NS_IMETHOD GetPartialUIDFetch(bool *aPartialUIDFetch) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPartialUIDFetch(aPartialUIDFetch); } \
  NS_IMETHOD GetSupportedUserFlags(uint16_t *aSupportedUserFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedUserFlags(aSupportedUserFlags); } \
  NS_IMETHOD OrSupportedUserFlags(uint16_t aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OrSupportedUserFlags(aFlags); } \
  NS_IMETHOD GetUidOfMessage(int32_t zeroBasedIndex, uint32_t *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUidOfMessage(zeroBasedIndex, result); } \
  NS_IMETHOD GetMessageFlags(int32_t zeroBasedIndex, uint16_t *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageFlags(zeroBasedIndex, result); } \
  NS_IMETHOD SetMessageFlags(int32_t zeroBasedIndex, uint16_t flags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageFlags(zeroBasedIndex, flags); } \
  NS_IMETHOD ExpungeByIndex(uint32_t zeroBasedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExpungeByIndex(zeroBasedIndex); } \
  NS_IMETHOD AddUidFlagPair(uint32_t uid, uint16_t flags, uint32_t zeroBasedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddUidFlagPair(uid, flags, zeroBasedIndex); } \
  NS_IMETHOD AddUidCustomFlagPair(uint32_t uid, const char * customFlag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddUidCustomFlagPair(uid, customFlag); } \
  NS_IMETHOD GetCustomFlags(uint32_t uid, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCustomFlags(uid, _retval); } \
  NS_IMETHOD Reset(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); } \
  NS_IMETHOD ClearCustomFlags(uint32_t uid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearCustomFlags(uid); } \
  NS_IMETHOD SetCustomAttribute(uint32_t aUid, const nsACString& aCustomAttributeName, const nsACString& aCustomAttributeValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCustomAttribute(aUid, aCustomAttributeName, aCustomAttributeValue); } \
  NS_IMETHOD GetCustomAttribute(uint32_t aUid, const nsACString& aCustomAttributeName, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCustomAttribute(aUid, aCustomAttributeName, _retval); } 


#endif /* __gen_nsIImapFlagAndUidState_h__ */