/usr/include/thunderbird-11.0.1/nsIMsgThread.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/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
/* 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 "873a1a47-d8ba-47cc-b1ef-355654d00000"
#define NS_IMSGTHREAD_IID \
{0x873a1a47, 0xd8ba, 0x47cc, \
{ 0xb1, 0xef, 0x35, 0x56, 0x54, 0xd0, 0x00, 0x00 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgThread : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGTHREAD_IID)
/* attribute nsMsgKey threadKey; */
NS_SCRIPTABLE NS_IMETHOD GetThreadKey(nsMsgKey *aThreadKey) = 0;
NS_SCRIPTABLE NS_IMETHOD SetThreadKey(nsMsgKey aThreadKey) = 0;
/* attribute unsigned long flags; */
NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) = 0;
NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags) = 0;
/* attribute ACString subject; */
NS_SCRIPTABLE NS_IMETHOD GetSubject(nsACString & aSubject) = 0;
NS_SCRIPTABLE NS_IMETHOD SetSubject(const nsACString & aSubject) = 0;
/* attribute unsigned long newestMsgDate; */
NS_SCRIPTABLE NS_IMETHOD GetNewestMsgDate(PRUint32 *aNewestMsgDate) = 0;
NS_SCRIPTABLE NS_IMETHOD SetNewestMsgDate(PRUint32 aNewestMsgDate) = 0;
/* readonly attribute unsigned long numChildren; */
NS_SCRIPTABLE NS_IMETHOD GetNumChildren(PRUint32 *aNumChildren) = 0;
/* readonly attribute unsigned long numUnreadChildren; */
NS_SCRIPTABLE NS_IMETHOD GetNumUnreadChildren(PRUint32 *aNumUnreadChildren) = 0;
/* void addChild (in nsIMsgDBHdr child, in nsIMsgDBHdr inReplyTo, in boolean threadInThread, in nsIDBChangeAnnouncer announcer); */
NS_SCRIPTABLE NS_IMETHOD AddChild(nsIMsgDBHdr *child, nsIMsgDBHdr *inReplyTo, bool threadInThread, nsIDBChangeAnnouncer *announcer) = 0;
/* nsMsgKey getChildKeyAt (in long index); */
NS_SCRIPTABLE NS_IMETHOD GetChildKeyAt(PRInt32 index, nsMsgKey *_retval NS_OUTPARAM) = 0;
/* nsIMsgDBHdr getChild (in nsMsgKey msgKey); */
NS_SCRIPTABLE NS_IMETHOD GetChild(nsMsgKey msgKey, nsIMsgDBHdr * *_retval NS_OUTPARAM) = 0;
/* nsIMsgDBHdr getChildHdrAt (in long index); */
NS_SCRIPTABLE NS_IMETHOD GetChildHdrAt(PRInt32 index, nsIMsgDBHdr * *_retval NS_OUTPARAM) = 0;
/* nsIMsgDBHdr getRootHdr (out long index); */
NS_SCRIPTABLE NS_IMETHOD GetRootHdr(PRInt32 *index NS_OUTPARAM, nsIMsgDBHdr * *_retval NS_OUTPARAM) = 0;
/* void removeChildAt (in long index); */
NS_SCRIPTABLE NS_IMETHOD RemoveChildAt(PRInt32 index) = 0;
/* void removeChildHdr (in nsIMsgDBHdr child, in nsIDBChangeAnnouncer announcer); */
NS_SCRIPTABLE NS_IMETHOD RemoveChildHdr(nsIMsgDBHdr *child, nsIDBChangeAnnouncer *announcer) = 0;
/* void markChildRead (in boolean bRead); */
NS_SCRIPTABLE NS_IMETHOD MarkChildRead(bool bRead) = 0;
/* nsIMsgDBHdr getFirstUnreadChild (); */
NS_SCRIPTABLE NS_IMETHOD GetFirstUnreadChild(nsIMsgDBHdr * *_retval NS_OUTPARAM) = 0;
/* nsISimpleEnumerator enumerateMessages (in nsMsgKey parent); */
NS_SCRIPTABLE NS_IMETHOD EnumerateMessages(nsMsgKey parent, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD GetThreadKey(nsMsgKey *aThreadKey); \
NS_SCRIPTABLE NS_IMETHOD SetThreadKey(nsMsgKey aThreadKey); \
NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags); \
NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags); \
NS_SCRIPTABLE NS_IMETHOD GetSubject(nsACString & aSubject); \
NS_SCRIPTABLE NS_IMETHOD SetSubject(const nsACString & aSubject); \
NS_SCRIPTABLE NS_IMETHOD GetNewestMsgDate(PRUint32 *aNewestMsgDate); \
NS_SCRIPTABLE NS_IMETHOD SetNewestMsgDate(PRUint32 aNewestMsgDate); \
NS_SCRIPTABLE NS_IMETHOD GetNumChildren(PRUint32 *aNumChildren); \
NS_SCRIPTABLE NS_IMETHOD GetNumUnreadChildren(PRUint32 *aNumUnreadChildren); \
NS_SCRIPTABLE NS_IMETHOD AddChild(nsIMsgDBHdr *child, nsIMsgDBHdr *inReplyTo, bool threadInThread, nsIDBChangeAnnouncer *announcer); \
NS_SCRIPTABLE NS_IMETHOD GetChildKeyAt(PRInt32 index, nsMsgKey *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetChild(nsMsgKey msgKey, nsIMsgDBHdr * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetChildHdrAt(PRInt32 index, nsIMsgDBHdr * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetRootHdr(PRInt32 *index NS_OUTPARAM, nsIMsgDBHdr * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD RemoveChildAt(PRInt32 index); \
NS_SCRIPTABLE NS_IMETHOD RemoveChildHdr(nsIMsgDBHdr *child, nsIDBChangeAnnouncer *announcer); \
NS_SCRIPTABLE NS_IMETHOD MarkChildRead(bool bRead); \
NS_SCRIPTABLE NS_IMETHOD GetFirstUnreadChild(nsIMsgDBHdr * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD EnumerateMessages(nsMsgKey parent, nsISimpleEnumerator * *_retval NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGTHREAD(_to) \
NS_SCRIPTABLE NS_IMETHOD GetThreadKey(nsMsgKey *aThreadKey) { return _to GetThreadKey(aThreadKey); } \
NS_SCRIPTABLE NS_IMETHOD SetThreadKey(nsMsgKey aThreadKey) { return _to SetThreadKey(aThreadKey); } \
NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return _to GetFlags(aFlags); } \
NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags) { return _to SetFlags(aFlags); } \
NS_SCRIPTABLE NS_IMETHOD GetSubject(nsACString & aSubject) { return _to GetSubject(aSubject); } \
NS_SCRIPTABLE NS_IMETHOD SetSubject(const nsACString & aSubject) { return _to SetSubject(aSubject); } \
NS_SCRIPTABLE NS_IMETHOD GetNewestMsgDate(PRUint32 *aNewestMsgDate) { return _to GetNewestMsgDate(aNewestMsgDate); } \
NS_SCRIPTABLE NS_IMETHOD SetNewestMsgDate(PRUint32 aNewestMsgDate) { return _to SetNewestMsgDate(aNewestMsgDate); } \
NS_SCRIPTABLE NS_IMETHOD GetNumChildren(PRUint32 *aNumChildren) { return _to GetNumChildren(aNumChildren); } \
NS_SCRIPTABLE NS_IMETHOD GetNumUnreadChildren(PRUint32 *aNumUnreadChildren) { return _to GetNumUnreadChildren(aNumUnreadChildren); } \
NS_SCRIPTABLE NS_IMETHOD AddChild(nsIMsgDBHdr *child, nsIMsgDBHdr *inReplyTo, bool threadInThread, nsIDBChangeAnnouncer *announcer) { return _to AddChild(child, inReplyTo, threadInThread, announcer); } \
NS_SCRIPTABLE NS_IMETHOD GetChildKeyAt(PRInt32 index, nsMsgKey *_retval NS_OUTPARAM) { return _to GetChildKeyAt(index, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetChild(nsMsgKey msgKey, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return _to GetChild(msgKey, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetChildHdrAt(PRInt32 index, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return _to GetChildHdrAt(index, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetRootHdr(PRInt32 *index NS_OUTPARAM, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return _to GetRootHdr(index, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RemoveChildAt(PRInt32 index) { return _to RemoveChildAt(index); } \
NS_SCRIPTABLE NS_IMETHOD RemoveChildHdr(nsIMsgDBHdr *child, nsIDBChangeAnnouncer *announcer) { return _to RemoveChildHdr(child, announcer); } \
NS_SCRIPTABLE NS_IMETHOD MarkChildRead(bool bRead) { return _to MarkChildRead(bRead); } \
NS_SCRIPTABLE NS_IMETHOD GetFirstUnreadChild(nsIMsgDBHdr * *_retval NS_OUTPARAM) { return _to GetFirstUnreadChild(_retval); } \
NS_SCRIPTABLE NS_IMETHOD EnumerateMessages(nsMsgKey parent, nsISimpleEnumerator * *_retval NS_OUTPARAM) { 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_SCRIPTABLE NS_IMETHOD GetThreadKey(nsMsgKey *aThreadKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadKey(aThreadKey); } \
NS_SCRIPTABLE NS_IMETHOD SetThreadKey(nsMsgKey aThreadKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadKey(aThreadKey); } \
NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFlags(aFlags); } \
NS_SCRIPTABLE NS_IMETHOD GetSubject(nsACString & aSubject) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubject(aSubject); } \
NS_SCRIPTABLE NS_IMETHOD SetSubject(const nsACString & aSubject) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubject(aSubject); } \
NS_SCRIPTABLE NS_IMETHOD GetNewestMsgDate(PRUint32 *aNewestMsgDate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewestMsgDate(aNewestMsgDate); } \
NS_SCRIPTABLE NS_IMETHOD SetNewestMsgDate(PRUint32 aNewestMsgDate) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNewestMsgDate(aNewestMsgDate); } \
NS_SCRIPTABLE NS_IMETHOD GetNumChildren(PRUint32 *aNumChildren) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumChildren(aNumChildren); } \
NS_SCRIPTABLE NS_IMETHOD GetNumUnreadChildren(PRUint32 *aNumUnreadChildren) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumUnreadChildren(aNumUnreadChildren); } \
NS_SCRIPTABLE NS_IMETHOD AddChild(nsIMsgDBHdr *child, nsIMsgDBHdr *inReplyTo, bool threadInThread, nsIDBChangeAnnouncer *announcer) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChild(child, inReplyTo, threadInThread, announcer); } \
NS_SCRIPTABLE NS_IMETHOD GetChildKeyAt(PRInt32 index, nsMsgKey *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildKeyAt(index, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetChild(nsMsgKey msgKey, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChild(msgKey, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetChildHdrAt(PRInt32 index, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildHdrAt(index, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetRootHdr(PRInt32 *index NS_OUTPARAM, nsIMsgDBHdr * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootHdr(index, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RemoveChildAt(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChildAt(index); } \
NS_SCRIPTABLE NS_IMETHOD RemoveChildHdr(nsIMsgDBHdr *child, nsIDBChangeAnnouncer *announcer) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChildHdr(child, announcer); } \
NS_SCRIPTABLE NS_IMETHOD MarkChildRead(bool bRead) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkChildRead(bRead); } \
NS_SCRIPTABLE NS_IMETHOD GetFirstUnreadChild(nsIMsgDBHdr * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstUnreadChild(_retval); } \
NS_SCRIPTABLE NS_IMETHOD EnumerateMessages(nsMsgKey parent, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateMessages(parent, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMsgThread : public nsIMsgThread
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGTHREAD
nsMsgThread();
private:
~nsMsgThread();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgThread, nsIMsgThread)
nsMsgThread::nsMsgThread()
{
/* member initializers and constructor code */
}
nsMsgThread::~nsMsgThread()
{
/* destructor code */
}
/* attribute nsMsgKey threadKey; */
NS_IMETHODIMP nsMsgThread::GetThreadKey(nsMsgKey *aThreadKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgThread::SetThreadKey(nsMsgKey aThreadKey)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long flags; */
NS_IMETHODIMP nsMsgThread::GetFlags(PRUint32 *aFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgThread::SetFlags(PRUint32 aFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute ACString subject; */
NS_IMETHODIMP nsMsgThread::GetSubject(nsACString & aSubject)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgThread::SetSubject(const nsACString & aSubject)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long newestMsgDate; */
NS_IMETHODIMP nsMsgThread::GetNewestMsgDate(PRUint32 *aNewestMsgDate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgThread::SetNewestMsgDate(PRUint32 aNewestMsgDate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long numChildren; */
NS_IMETHODIMP nsMsgThread::GetNumChildren(PRUint32 *aNumChildren)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long numUnreadChildren; */
NS_IMETHODIMP nsMsgThread::GetNumUnreadChildren(PRUint32 *aNumUnreadChildren)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addChild (in nsIMsgDBHdr child, in nsIMsgDBHdr inReplyTo, in boolean threadInThread, in nsIDBChangeAnnouncer announcer); */
NS_IMETHODIMP nsMsgThread::AddChild(nsIMsgDBHdr *child, nsIMsgDBHdr *inReplyTo, bool threadInThread, nsIDBChangeAnnouncer *announcer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsMsgKey getChildKeyAt (in long index); */
NS_IMETHODIMP nsMsgThread::GetChildKeyAt(PRInt32 index, nsMsgKey *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDBHdr getChild (in nsMsgKey msgKey); */
NS_IMETHODIMP nsMsgThread::GetChild(nsMsgKey msgKey, nsIMsgDBHdr * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDBHdr getChildHdrAt (in long index); */
NS_IMETHODIMP nsMsgThread::GetChildHdrAt(PRInt32 index, nsIMsgDBHdr * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDBHdr getRootHdr (out long index); */
NS_IMETHODIMP nsMsgThread::GetRootHdr(PRInt32 *index NS_OUTPARAM, nsIMsgDBHdr * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeChildAt (in long index); */
NS_IMETHODIMP nsMsgThread::RemoveChildAt(PRInt32 index)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeChildHdr (in nsIMsgDBHdr child, in nsIDBChangeAnnouncer announcer); */
NS_IMETHODIMP nsMsgThread::RemoveChildHdr(nsIMsgDBHdr *child, nsIDBChangeAnnouncer *announcer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void markChildRead (in boolean bRead); */
NS_IMETHODIMP nsMsgThread::MarkChildRead(bool bRead)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgDBHdr getFirstUnreadChild (); */
NS_IMETHODIMP nsMsgThread::GetFirstUnreadChild(nsIMsgDBHdr * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator enumerateMessages (in nsMsgKey parent); */
NS_IMETHODIMP nsMsgThread::EnumerateMessages(nsMsgKey parent, nsISimpleEnumerator * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMsgThread_h__ */
|