mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 10:40:12 +00:00
update interface to prepare to move nsMsgGroupRecord to be behind an interface
This commit is contained in:
parent
4f3ae36beb
commit
a5fd680512
@ -6,7 +6,6 @@
|
|||||||
#define __gen_nsIMsgGroupRecord_h__
|
#define __gen_nsIMsgGroupRecord_h__
|
||||||
|
|
||||||
#include "nsISupports.h" /* interface nsISupports */
|
#include "nsISupports.h" /* interface nsISupports */
|
||||||
#include "nsID.h" /* interface nsID */
|
|
||||||
|
|
||||||
#ifdef XPIDL_JS_STUBS
|
#ifdef XPIDL_JS_STUBS
|
||||||
#include "jsapi.h"
|
#include "jsapi.h"
|
||||||
@ -14,7 +13,9 @@
|
|||||||
#include "nsDebug.h"
|
#include "nsDebug.h"
|
||||||
#include "nsTraceRefcnt.h"
|
#include "nsTraceRefcnt.h"
|
||||||
#include "nsID.h"
|
#include "nsID.h"
|
||||||
|
#include "nsIID.h"
|
||||||
#include "nsError.h"
|
#include "nsError.h"
|
||||||
|
#include "nsISupportsUtils.h"
|
||||||
|
|
||||||
|
|
||||||
/* starting interface nsIMsgGroupRecord */
|
/* starting interface nsIMsgGroupRecord */
|
||||||
@ -32,14 +33,23 @@ class nsIMsgGroupRecord : public nsISupports {
|
|||||||
return iid;
|
return iid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* void Init (in voidStar parent, in string partname, in long long time, in long uniqueid, in long fileoffset, in char delimiter); */
|
||||||
|
NS_IMETHOD Init(void* parent, char *partname, PRInt64 time, PRInt32 uniqueid, PRInt32 fileoffset, char delimiter) = 0;
|
||||||
|
|
||||||
|
/* void InitFromParent (in nsIMsgGroupRecord parent, in string saveline, in long savelinelength, in long fileoffset); */
|
||||||
|
NS_IMETHOD InitFromParent(nsIMsgGroupRecord *parent, char *saveline, PRInt32 savelinelength, PRInt32 fileoffset) = 0;
|
||||||
|
|
||||||
|
/* void InitFromFile (in nsIMsgGroupRecord parent, in string partname, in long long time, in long uniqueid, in long fileoffset); */
|
||||||
|
NS_IMETHOD InitFromFile(nsIMsgGroupRecord *parent, char *partname, PRInt64 time, PRInt32 uniqueid, PRInt32 fileoffset) = 0;
|
||||||
|
|
||||||
/* void InitializeSibling (); */
|
/* void InitializeSibling (); */
|
||||||
NS_IMETHOD InitializeSibling() = 0;
|
NS_IMETHOD InitializeSibling() = 0;
|
||||||
|
|
||||||
/* short GroupNameCompare (in string name1, in string name2, in char delimeter, in boolean caseSensitive); */
|
/* short GroupNameCompare (in string name1, in string name2, in char delimeter, in boolean caseSensitive); */
|
||||||
NS_IMETHOD GroupNameCompare(char *name1, char *name2, char delimeter, PRBool caseSensitive, PRInt16 *_retval) = 0;
|
NS_IMETHOD GroupNameCompare(char *name1, char *name2, char delimeter, PRBool caseSensitive, PRInt16 *_retval) = 0;
|
||||||
|
|
||||||
/* nsIMsgGroupRecord FindDescendant (in string name); */
|
/* nsIMsgGroupRecord FindDescendent (in string name); */
|
||||||
NS_IMETHOD FindDescendant(char *name, nsIMsgGroupRecord **_retval) = 0;
|
NS_IMETHOD FindDescendent(char *name, nsIMsgGroupRecord **_retval) = 0;
|
||||||
|
|
||||||
/* readonly attribute nsIMsgGroupRecord parent; */
|
/* readonly attribute nsIMsgGroupRecord parent; */
|
||||||
NS_IMETHOD GetParent(nsIMsgGroupRecord * *aParent) = 0;
|
NS_IMETHOD GetParent(nsIMsgGroupRecord * *aParent) = 0;
|
||||||
@ -62,8 +72,8 @@ class nsIMsgGroupRecord : public nsISupports {
|
|||||||
/* readonly attribute string partName; */
|
/* readonly attribute string partName; */
|
||||||
NS_IMETHOD GetPartName(char * *aPartName) = 0;
|
NS_IMETHOD GetPartName(char * *aPartName) = 0;
|
||||||
|
|
||||||
/* readonly attribute string fullname; */
|
/* readonly attribute string fullName; */
|
||||||
NS_IMETHOD GetFullname(char * *aFullname) = 0;
|
NS_IMETHOD GetFullName(char * *aFullName) = 0;
|
||||||
|
|
||||||
/* attribute string prettyName; */
|
/* attribute string prettyName; */
|
||||||
NS_IMETHOD GetPrettyName(char * *aPrettyName) = 0;
|
NS_IMETHOD GetPrettyName(char * *aPrettyName) = 0;
|
||||||
@ -72,39 +82,47 @@ class nsIMsgGroupRecord : public nsISupports {
|
|||||||
/* readonly attribute long long addTime; */
|
/* readonly attribute long long addTime; */
|
||||||
NS_IMETHOD GetAddTime(PRInt64 *aAddTime) = 0;
|
NS_IMETHOD GetAddTime(PRInt64 *aAddTime) = 0;
|
||||||
|
|
||||||
/* boolean IsCategory (); */
|
/* readonly attribute boolean isCategory; */
|
||||||
NS_IMETHOD IsCategory(PRBool *_retval) = 0;
|
NS_IMETHOD GetIsCategory(PRBool *aIsCategory) = 0;
|
||||||
|
|
||||||
/* attribute boolean IsCategoryContainer; */
|
/* attribute boolean isCategoryContainer; */
|
||||||
NS_IMETHOD GetIsCategoryContainer(PRBool *aIsCategoryContainer) = 0;
|
NS_IMETHOD GetIsCategoryContainer(PRBool *aIsCategoryContainer) = 0;
|
||||||
NS_IMETHOD SetIsCategoryContainer(PRBool aIsCategoryContainer) = 0;
|
NS_IMETHOD SetIsCategoryContainer(PRBool aIsCategoryContainer) = 0;
|
||||||
|
|
||||||
/* readonly attribute nsIMsgGroupRecord categoryContainer; */
|
/* readonly attribute nsIMsgGroupRecord categoryContainer; */
|
||||||
NS_IMETHOD GetCategoryContainer(nsIMsgGroupRecord * *aCategoryContainer) = 0;
|
NS_IMETHOD GetCategoryContainer(nsIMsgGroupRecord * *aCategoryContainer) = 0;
|
||||||
|
|
||||||
/* attribute boolean virtual; */
|
/* attribute boolean isVirtual; */
|
||||||
NS_IMETHOD GetVirtual(PRBool *aVirtual) = 0;
|
NS_IMETHOD GetIsVirtual(PRBool *aIsVirtual) = 0;
|
||||||
NS_IMETHOD SetVirtual(PRBool aVirtual) = 0;
|
NS_IMETHOD SetIsVirtual(PRBool aIsVirtual) = 0;
|
||||||
|
|
||||||
/* attribute boolean group; */
|
/* attribute boolean isGroup; */
|
||||||
NS_IMETHOD GetGroup(PRBool *aGroup) = 0;
|
NS_IMETHOD GetIsGroup(PRBool *aIsGroup) = 0;
|
||||||
NS_IMETHOD SetGroup(PRBool aGroup) = 0;
|
NS_IMETHOD SetIsGroup(PRBool aIsGroup) = 0;
|
||||||
|
|
||||||
/* attribute boolean expanded; */
|
/* attribute boolean isExpanded; */
|
||||||
NS_IMETHOD GetExpanded(PRBool *aExpanded) = 0;
|
NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded) = 0;
|
||||||
NS_IMETHOD SetExpanded(PRBool aExpanded) = 0;
|
NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) = 0;
|
||||||
|
|
||||||
/* attribute boolean htmlOk; */
|
/* attribute boolean isDescendentsLoaded; */
|
||||||
NS_IMETHOD GetHtmlOk(PRBool *aHtmlOk) = 0;
|
NS_IMETHOD GetIsDescendentsLoaded(PRBool *aIsDescendentsLoaded) = 0;
|
||||||
NS_IMETHOD SetHtmlOk(PRBool aHtmlOk) = 0;
|
NS_IMETHOD SetIsDescendentsLoaded(PRBool aIsDescendentsLoaded) = 0;
|
||||||
|
|
||||||
|
/* attribute boolean HTMLOkGroup; */
|
||||||
|
NS_IMETHOD GetHTMLOkGroup(PRBool *aHTMLOkGroup) = 0;
|
||||||
|
NS_IMETHOD SetHTMLOkGroup(PRBool aHTMLOkGroup) = 0;
|
||||||
|
|
||||||
|
/* attribute boolean HTMLOkTree; */
|
||||||
|
NS_IMETHOD GetHTMLOkTree(PRBool *aHTMLOkTree) = 0;
|
||||||
|
NS_IMETHOD SetHTMLOkTree(PRBool aHTMLOkTree) = 0;
|
||||||
|
|
||||||
/* attribute boolean needsExtraInfo; */
|
/* attribute boolean needsExtraInfo; */
|
||||||
NS_IMETHOD GetNeedsExtraInfo(PRBool *aNeedsExtraInfo) = 0;
|
NS_IMETHOD GetNeedsExtraInfo(PRBool *aNeedsExtraInfo) = 0;
|
||||||
NS_IMETHOD SetNeedsExtraInfo(PRBool aNeedsExtraInfo) = 0;
|
NS_IMETHOD SetNeedsExtraInfo(PRBool aNeedsExtraInfo) = 0;
|
||||||
|
|
||||||
/* attribute boolean onServer; */
|
/* attribute boolean doesNotExistOnServer; */
|
||||||
NS_IMETHOD GetOnServer(PRBool *aOnServer) = 0;
|
NS_IMETHOD GetDoesNotExistOnServer(PRBool *aDoesNotExistOnServer) = 0;
|
||||||
NS_IMETHOD SetOnServer(PRBool aOnServer) = 0;
|
NS_IMETHOD SetDoesNotExistOnServer(PRBool aDoesNotExistOnServer) = 0;
|
||||||
|
|
||||||
/* readonly attribute long uniqueID; */
|
/* readonly attribute long uniqueID; */
|
||||||
NS_IMETHOD GetUniqueID(PRInt32 *aUniqueID) = 0;
|
NS_IMETHOD GetUniqueID(PRInt32 *aUniqueID) = 0;
|
||||||
|
@ -18,16 +18,39 @@
|
|||||||
|
|
||||||
#include "nsISupports.idl"
|
#include "nsISupports.idl"
|
||||||
|
|
||||||
|
|
||||||
[uuid(4ed03c60-b256-11d2-b7f0-00805f05ffa5)]
|
[uuid(4ed03c60-b256-11d2-b7f0-00805f05ffa5)]
|
||||||
interface nsIMsgGroupRecord : nsISupports {
|
interface nsIMsgGroupRecord : nsISupports {
|
||||||
|
|
||||||
|
/* making this a voidStar is really ugly, but it's a quick
|
||||||
|
* solution right now
|
||||||
|
*/
|
||||||
|
void Init(in voidStar parent,
|
||||||
|
in string partname,
|
||||||
|
in long long time,
|
||||||
|
in long uniqueid,
|
||||||
|
in long fileoffset,
|
||||||
|
in char delimiter);
|
||||||
|
|
||||||
|
void InitFromParent(in nsIMsgGroupRecord parent,
|
||||||
|
in string saveline,
|
||||||
|
in long savelinelength,
|
||||||
|
in long fileoffset);
|
||||||
|
|
||||||
|
void InitFromFile(in nsIMsgGroupRecord parent,
|
||||||
|
in string partname,
|
||||||
|
in long long time,
|
||||||
|
in long uniqueid,
|
||||||
|
in long fileoffset);
|
||||||
|
|
||||||
void InitializeSibling();
|
void InitializeSibling();
|
||||||
|
|
||||||
short GroupNameCompare(in string name1,
|
short GroupNameCompare(in string name1,
|
||||||
in string name2,
|
in string name2,
|
||||||
in char delimeter,
|
in char delimeter,
|
||||||
in boolean caseSensitive);
|
in boolean caseSensitive);
|
||||||
|
|
||||||
nsIMsgGroupRecord FindDescendant(in string name);
|
nsIMsgGroupRecord FindDescendent(in string name);
|
||||||
|
|
||||||
readonly attribute nsIMsgGroupRecord parent;
|
readonly attribute nsIMsgGroupRecord parent;
|
||||||
readonly attribute nsIMsgGroupRecord children;
|
readonly attribute nsIMsgGroupRecord children;
|
||||||
@ -37,23 +60,26 @@ interface nsIMsgGroupRecord : nsISupports {
|
|||||||
nsIMsgGroupRecord GetNextAlphabeticNoCategories();
|
nsIMsgGroupRecord GetNextAlphabeticNoCategories();
|
||||||
|
|
||||||
readonly attribute string partName;
|
readonly attribute string partName;
|
||||||
readonly attribute string fullname;
|
readonly attribute string fullName;
|
||||||
|
|
||||||
attribute string prettyName;
|
attribute string prettyName;
|
||||||
readonly attribute long long addTime;
|
readonly attribute long long addTime;
|
||||||
|
|
||||||
boolean IsCategory();
|
readonly attribute boolean isCategory;
|
||||||
|
|
||||||
attribute boolean IsCategoryContainer;
|
attribute boolean isCategoryContainer;
|
||||||
|
|
||||||
readonly attribute nsIMsgGroupRecord categoryContainer;
|
readonly attribute nsIMsgGroupRecord categoryContainer;
|
||||||
|
|
||||||
attribute boolean virtual;
|
attribute boolean isVirtual;
|
||||||
attribute boolean group;
|
attribute boolean isGroup;
|
||||||
attribute boolean expanded;
|
|
||||||
attribute boolean htmlOk;
|
attribute boolean isExpanded;
|
||||||
|
attribute boolean isDescendentsLoaded;
|
||||||
|
attribute boolean HTMLOkGroup;
|
||||||
|
attribute boolean HTMLOkTree;
|
||||||
attribute boolean needsExtraInfo;
|
attribute boolean needsExtraInfo;
|
||||||
attribute boolean onServer;
|
attribute boolean doesNotExistOnServer;
|
||||||
readonly attribute long uniqueID;
|
readonly attribute long uniqueID;
|
||||||
attribute long fileOffset;
|
attribute long fileOffset;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user