update interface to prepare to move nsMsgGroupRecord to be behind an interface

This commit is contained in:
alecf%netscape.com 1999-03-06 01:23:07 +00:00
parent 4f3ae36beb
commit a5fd680512
2 changed files with 76 additions and 32 deletions

View File

@ -6,7 +6,6 @@
#define __gen_nsIMsgGroupRecord_h__
#include "nsISupports.h" /* interface nsISupports */
#include "nsID.h" /* interface nsID */
#ifdef XPIDL_JS_STUBS
#include "jsapi.h"
@ -14,7 +13,9 @@
#include "nsDebug.h"
#include "nsTraceRefcnt.h"
#include "nsID.h"
#include "nsIID.h"
#include "nsError.h"
#include "nsISupportsUtils.h"
/* starting interface nsIMsgGroupRecord */
@ -32,14 +33,23 @@ class nsIMsgGroupRecord : public nsISupports {
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 (); */
NS_IMETHOD InitializeSibling() = 0;
/* 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;
/* nsIMsgGroupRecord FindDescendant (in string name); */
NS_IMETHOD FindDescendant(char *name, nsIMsgGroupRecord **_retval) = 0;
/* nsIMsgGroupRecord FindDescendent (in string name); */
NS_IMETHOD FindDescendent(char *name, nsIMsgGroupRecord **_retval) = 0;
/* readonly attribute nsIMsgGroupRecord parent; */
NS_IMETHOD GetParent(nsIMsgGroupRecord * *aParent) = 0;
@ -62,8 +72,8 @@ class nsIMsgGroupRecord : public nsISupports {
/* readonly attribute string partName; */
NS_IMETHOD GetPartName(char * *aPartName) = 0;
/* readonly attribute string fullname; */
NS_IMETHOD GetFullname(char * *aFullname) = 0;
/* readonly attribute string fullName; */
NS_IMETHOD GetFullName(char * *aFullName) = 0;
/* attribute string prettyName; */
NS_IMETHOD GetPrettyName(char * *aPrettyName) = 0;
@ -72,39 +82,47 @@ class nsIMsgGroupRecord : public nsISupports {
/* readonly attribute long long addTime; */
NS_IMETHOD GetAddTime(PRInt64 *aAddTime) = 0;
/* boolean IsCategory (); */
NS_IMETHOD IsCategory(PRBool *_retval) = 0;
/* readonly attribute boolean isCategory; */
NS_IMETHOD GetIsCategory(PRBool *aIsCategory) = 0;
/* attribute boolean IsCategoryContainer; */
/* attribute boolean isCategoryContainer; */
NS_IMETHOD GetIsCategoryContainer(PRBool *aIsCategoryContainer) = 0;
NS_IMETHOD SetIsCategoryContainer(PRBool aIsCategoryContainer) = 0;
/* readonly attribute nsIMsgGroupRecord categoryContainer; */
NS_IMETHOD GetCategoryContainer(nsIMsgGroupRecord * *aCategoryContainer) = 0;
/* attribute boolean virtual; */
NS_IMETHOD GetVirtual(PRBool *aVirtual) = 0;
NS_IMETHOD SetVirtual(PRBool aVirtual) = 0;
/* attribute boolean isVirtual; */
NS_IMETHOD GetIsVirtual(PRBool *aIsVirtual) = 0;
NS_IMETHOD SetIsVirtual(PRBool aIsVirtual) = 0;
/* attribute boolean group; */
NS_IMETHOD GetGroup(PRBool *aGroup) = 0;
NS_IMETHOD SetGroup(PRBool aGroup) = 0;
/* attribute boolean isGroup; */
NS_IMETHOD GetIsGroup(PRBool *aIsGroup) = 0;
NS_IMETHOD SetIsGroup(PRBool aIsGroup) = 0;
/* attribute boolean expanded; */
NS_IMETHOD GetExpanded(PRBool *aExpanded) = 0;
NS_IMETHOD SetExpanded(PRBool aExpanded) = 0;
/* attribute boolean isExpanded; */
NS_IMETHOD GetIsExpanded(PRBool *aIsExpanded) = 0;
NS_IMETHOD SetIsExpanded(PRBool aIsExpanded) = 0;
/* attribute boolean htmlOk; */
NS_IMETHOD GetHtmlOk(PRBool *aHtmlOk) = 0;
NS_IMETHOD SetHtmlOk(PRBool aHtmlOk) = 0;
/* attribute boolean isDescendentsLoaded; */
NS_IMETHOD GetIsDescendentsLoaded(PRBool *aIsDescendentsLoaded) = 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; */
NS_IMETHOD GetNeedsExtraInfo(PRBool *aNeedsExtraInfo) = 0;
NS_IMETHOD SetNeedsExtraInfo(PRBool aNeedsExtraInfo) = 0;
/* attribute boolean onServer; */
NS_IMETHOD GetOnServer(PRBool *aOnServer) = 0;
NS_IMETHOD SetOnServer(PRBool aOnServer) = 0;
/* attribute boolean doesNotExistOnServer; */
NS_IMETHOD GetDoesNotExistOnServer(PRBool *aDoesNotExistOnServer) = 0;
NS_IMETHOD SetDoesNotExistOnServer(PRBool aDoesNotExistOnServer) = 0;
/* readonly attribute long uniqueID; */
NS_IMETHOD GetUniqueID(PRInt32 *aUniqueID) = 0;

View File

@ -18,16 +18,39 @@
#include "nsISupports.idl"
[uuid(4ed03c60-b256-11d2-b7f0-00805f05ffa5)]
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();
short GroupNameCompare(in string name1,
in string name2,
in char delimeter,
in boolean caseSensitive);
nsIMsgGroupRecord FindDescendant(in string name);
nsIMsgGroupRecord FindDescendent(in string name);
readonly attribute nsIMsgGroupRecord parent;
readonly attribute nsIMsgGroupRecord children;
@ -37,23 +60,26 @@ interface nsIMsgGroupRecord : nsISupports {
nsIMsgGroupRecord GetNextAlphabeticNoCategories();
readonly attribute string partName;
readonly attribute string fullname;
readonly attribute string fullName;
attribute string prettyName;
readonly attribute long long addTime;
boolean IsCategory();
readonly attribute boolean isCategory;
attribute boolean IsCategoryContainer;
attribute boolean isCategoryContainer;
readonly attribute nsIMsgGroupRecord categoryContainer;
attribute boolean virtual;
attribute boolean group;
attribute boolean expanded;
attribute boolean htmlOk;
attribute boolean isVirtual;
attribute boolean isGroup;
attribute boolean isExpanded;
attribute boolean isDescendentsLoaded;
attribute boolean HTMLOkGroup;
attribute boolean HTMLOkTree;
attribute boolean needsExtraInfo;
attribute boolean onServer;
attribute boolean doesNotExistOnServer;
readonly attribute long uniqueID;
attribute long fileOffset;