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

#ifndef __gen_nsIMsgThread_h__
#define __gen_nsIMsgThread_h__


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

#ifndef __gen_nsISimpleEnumerator_h__
#include "nsISimpleEnumerator.h"
#endif

#ifndef __gen_MailNewsTypes2_h__
#include "MailNewsTypes2.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 nsIMsgDBHdr; /* forward declaration */

class nsIDBChangeAnnouncer; /* forward declaration */


/* starting interface:    nsIMsgThread */
#define NS_IMSGTHREAD_IID_STR "84052876-90e9-4e21-ad38-13e2bb751d8f"

#define NS_IMSGTHREAD_IID \
  {0x84052876, 0x90e9, 0x4e21, \
    { 0xad, 0x38, 0x13, 0xe2, 0xbb, 0x75, 0x1d, 0x8f }}

class NS_NO_VTABLE nsIMsgThread : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGTHREAD_IID)

  /* attribute nsMsgKey threadKey; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetThreadKey(nsMsgKey *aThreadKey) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetThreadKey(nsMsgKey aThreadKey) = 0;

  /* attribute unsigned long flags; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFlags(uint32_t *aFlags) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFlags(uint32_t aFlags) = 0;

  /* attribute ACString subject; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSubject(nsACString& aSubject) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSubject(const nsACString& aSubject) = 0;

  /* attribute unsigned long newestMsgDate; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNewestMsgDate(uint32_t *aNewestMsgDate) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetNewestMsgDate(uint32_t aNewestMsgDate) = 0;

  /* readonly attribute unsigned long numChildren; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumChildren(uint32_t *aNumChildren) = 0;

  /* readonly attribute unsigned long numUnreadChildren; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumUnreadChildren(uint32_t *aNumUnreadChildren) = 0;

  /* void addChild (in nsIMsgDBHdr child, in nsIMsgDBHdr inReplyTo, in boolean threadInThread, in nsIDBChangeAnnouncer announcer); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddChild(nsIMsgDBHdr *child, nsIMsgDBHdr *inReplyTo, bool threadInThread, nsIDBChangeAnnouncer *announcer) = 0;

  /* nsMsgKey getChildKeyAt (in unsigned long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChildKeyAt(uint32_t index, nsMsgKey *_retval) = 0;

  /* nsIMsgDBHdr getChild (in nsMsgKey msgKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChild(nsMsgKey msgKey, nsIMsgDBHdr **_retval) = 0;

  /* nsIMsgDBHdr getChildHdrAt (in unsigned long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChildHdrAt(uint32_t index, nsIMsgDBHdr **_retval) = 0;

  /* nsIMsgDBHdr getRootHdr (out long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRootHdr(int32_t *index, nsIMsgDBHdr **_retval) = 0;

  /* void removeChildAt (in unsigned long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveChildAt(uint32_t index) = 0;

  /* void removeChildHdr (in nsIMsgDBHdr child, in nsIDBChangeAnnouncer announcer); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveChildHdr(nsIMsgDBHdr *child, nsIDBChangeAnnouncer *announcer) = 0;

  /* void markChildRead (in boolean bRead); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MarkChildRead(bool bRead) = 0;

  /* nsIMsgDBHdr getFirstUnreadChild (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFirstUnreadChild(nsIMsgDBHdr **_retval) = 0;

  /* nsISimpleEnumerator enumerateMessages (in nsMsgKey parent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnumerateMessages(nsMsgKey parent, nsISimpleEnumerator **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgThread, NS_IMSGTHREAD_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGTHREAD \
  NS_IMETHOD GetThreadKey(nsMsgKey *aThreadKey) override; \
  NS_IMETHOD SetThreadKey(nsMsgKey aThreadKey) override; \
  NS_IMETHOD GetFlags(uint32_t *aFlags) override; \
  NS_IMETHOD SetFlags(uint32_t aFlags) override; \
  NS_IMETHOD GetSubject(nsACString& aSubject) override; \
  NS_IMETHOD SetSubject(const nsACString& aSubject) override; \
  NS_IMETHOD GetNewestMsgDate(uint32_t *aNewestMsgDate) override; \
  NS_IMETHOD SetNewestMsgDate(uint32_t aNewestMsgDate) override; \
  NS_IMETHOD GetNumChildren(uint32_t *aNumChildren) override; \
  NS_IMETHOD GetNumUnreadChildren(uint32_t *aNumUnreadChildren) override; \
  NS_IMETHOD AddChild(nsIMsgDBHdr *child, nsIMsgDBHdr *inReplyTo, bool threadInThread, nsIDBChangeAnnouncer *announcer) override; \
  NS_IMETHOD GetChildKeyAt(uint32_t index, nsMsgKey *_retval) override; \
  NS_IMETHOD GetChild(nsMsgKey msgKey, nsIMsgDBHdr **_retval) override; \
  NS_IMETHOD GetChildHdrAt(uint32_t index, nsIMsgDBHdr **_retval) override; \
  NS_IMETHOD GetRootHdr(int32_t *index, nsIMsgDBHdr **_retval) override; \
  NS_IMETHOD RemoveChildAt(uint32_t index) override; \
  NS_IMETHOD RemoveChildHdr(nsIMsgDBHdr *child, nsIDBChangeAnnouncer *announcer) override; \
  NS_IMETHOD MarkChildRead(bool bRead) override; \
  NS_IMETHOD GetFirstUnreadChild(nsIMsgDBHdr **_retval) override; \
  NS_IMETHOD EnumerateMessages(nsMsgKey parent, nsISimpleEnumerator **_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_NSIMSGTHREAD \
  nsresult GetThreadKey(nsMsgKey *aThreadKey); \
  nsresult SetThreadKey(nsMsgKey aThreadKey); \
  nsresult GetFlags(uint32_t *aFlags); \
  nsresult SetFlags(uint32_t aFlags); \
  nsresult GetSubject(nsACString& aSubject); \
  nsresult SetSubject(const nsACString& aSubject); \
  nsresult GetNewestMsgDate(uint32_t *aNewestMsgDate); \
  nsresult SetNewestMsgDate(uint32_t aNewestMsgDate); \
  nsresult GetNumChildren(uint32_t *aNumChildren); \
  nsresult GetNumUnreadChildren(uint32_t *aNumUnreadChildren); \
  nsresult AddChild(nsIMsgDBHdr *child, nsIMsgDBHdr *inReplyTo, bool threadInThread, nsIDBChangeAnnouncer *announcer); \
  nsresult GetChildKeyAt(uint32_t index, nsMsgKey *_retval); \
  nsresult GetChild(nsMsgKey msgKey, nsIMsgDBHdr **_retval); \
  nsresult GetChildHdrAt(uint32_t index, nsIMsgDBHdr **_retval); \
  nsresult GetRootHdr(int32_t *index, nsIMsgDBHdr **_retval); \
  nsresult RemoveChildAt(uint32_t index); \
  nsresult RemoveChildHdr(nsIMsgDBHdr *child, nsIDBChangeAnnouncer *announcer); \
  nsresult MarkChildRead(bool bRead); \
  nsresult GetFirstUnreadChild(nsIMsgDBHdr **_retval); \
  nsresult EnumerateMessages(nsMsgKey parent, nsISimpleEnumerator **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGTHREAD(_to) \
  NS_IMETHOD GetThreadKey(nsMsgKey *aThreadKey) override { return _to GetThreadKey(aThreadKey); } \
  NS_IMETHOD SetThreadKey(nsMsgKey aThreadKey) override { return _to SetThreadKey(aThreadKey); } \
  NS_IMETHOD GetFlags(uint32_t *aFlags) override { return _to GetFlags(aFlags); } \
  NS_IMETHOD SetFlags(uint32_t aFlags) override { return _to SetFlags(aFlags); } \
  NS_IMETHOD GetSubject(nsACString& aSubject) override { return _to GetSubject(aSubject); } \
  NS_IMETHOD SetSubject(const nsACString& aSubject) override { return _to SetSubject(aSubject); } \
  NS_IMETHOD GetNewestMsgDate(uint32_t *aNewestMsgDate) override { return _to GetNewestMsgDate(aNewestMsgDate); } \
  NS_IMETHOD SetNewestMsgDate(uint32_t aNewestMsgDate) override { return _to SetNewestMsgDate(aNewestMsgDate); } \
  NS_IMETHOD GetNumChildren(uint32_t *aNumChildren) override { return _to GetNumChildren(aNumChildren); } \
  NS_IMETHOD GetNumUnreadChildren(uint32_t *aNumUnreadChildren) override { return _to GetNumUnreadChildren(aNumUnreadChildren); } \
  NS_IMETHOD AddChild(nsIMsgDBHdr *child, nsIMsgDBHdr *inReplyTo, bool threadInThread, nsIDBChangeAnnouncer *announcer) override { return _to AddChild(child, inReplyTo, threadInThread, announcer); } \
  NS_IMETHOD GetChildKeyAt(uint32_t index, nsMsgKey *_retval) override { return _to GetChildKeyAt(index, _retval); } \
  NS_IMETHOD GetChild(nsMsgKey msgKey, nsIMsgDBHdr **_retval) override { return _to GetChild(msgKey, _retval); } \
  NS_IMETHOD GetChildHdrAt(uint32_t index, nsIMsgDBHdr **_retval) override { return _to GetChildHdrAt(index, _retval); } \
  NS_IMETHOD GetRootHdr(int32_t *index, nsIMsgDBHdr **_retval) override { return _to GetRootHdr(index, _retval); } \
  NS_IMETHOD RemoveChildAt(uint32_t index) override { return _to RemoveChildAt(index); } \
  NS_IMETHOD RemoveChildHdr(nsIMsgDBHdr *child, nsIDBChangeAnnouncer *announcer) override { return _to RemoveChildHdr(child, announcer); } \
  NS_IMETHOD MarkChildRead(bool bRead) override { return _to MarkChildRead(bRead); } \
  NS_IMETHOD GetFirstUnreadChild(nsIMsgDBHdr **_retval) override { return _to GetFirstUnreadChild(_retval); } \
  NS_IMETHOD EnumerateMessages(nsMsgKey parent, nsISimpleEnumerator **_retval) override { return _to EnumerateMessages(parent, _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_NSIMSGTHREAD(_to) \
  NS_IMETHOD GetThreadKey(nsMsgKey *aThreadKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadKey(aThreadKey); } \
  NS_IMETHOD SetThreadKey(nsMsgKey aThreadKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadKey(aThreadKey); } \
  NS_IMETHOD GetFlags(uint32_t *aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
  NS_IMETHOD SetFlags(uint32_t aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFlags(aFlags); } \
  NS_IMETHOD GetSubject(nsACString& aSubject) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubject(aSubject); } \
  NS_IMETHOD SetSubject(const nsACString& aSubject) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubject(aSubject); } \
  NS_IMETHOD GetNewestMsgDate(uint32_t *aNewestMsgDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewestMsgDate(aNewestMsgDate); } \
  NS_IMETHOD SetNewestMsgDate(uint32_t aNewestMsgDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNewestMsgDate(aNewestMsgDate); } \
  NS_IMETHOD GetNumChildren(uint32_t *aNumChildren) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumChildren(aNumChildren); } \
  NS_IMETHOD GetNumUnreadChildren(uint32_t *aNumUnreadChildren) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumUnreadChildren(aNumUnreadChildren); } \
  NS_IMETHOD AddChild(nsIMsgDBHdr *child, nsIMsgDBHdr *inReplyTo, bool threadInThread, nsIDBChangeAnnouncer *announcer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChild(child, inReplyTo, threadInThread, announcer); } \
  NS_IMETHOD GetChildKeyAt(uint32_t index, nsMsgKey *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildKeyAt(index, _retval); } \
  NS_IMETHOD GetChild(nsMsgKey msgKey, nsIMsgDBHdr **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChild(msgKey, _retval); } \
  NS_IMETHOD GetChildHdrAt(uint32_t index, nsIMsgDBHdr **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildHdrAt(index, _retval); } \
  NS_IMETHOD GetRootHdr(int32_t *index, nsIMsgDBHdr **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootHdr(index, _retval); } \
  NS_IMETHOD RemoveChildAt(uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChildAt(index); } \
  NS_IMETHOD RemoveChildHdr(nsIMsgDBHdr *child, nsIDBChangeAnnouncer *announcer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChildHdr(child, announcer); } \
  NS_IMETHOD MarkChildRead(bool bRead) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkChildRead(bRead); } \
  NS_IMETHOD GetFirstUnreadChild(nsIMsgDBHdr **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstUnreadChild(_retval); } \
  NS_IMETHOD EnumerateMessages(nsMsgKey parent, nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateMessages(parent, _retval); } 


#endif /* __gen_nsIMsgThread_h__ */