зеркало из https://github.com/mozilla/gecko-dev.git
Added new RDF Resource for MsgFolder and added MailMsgFolder.
This commit is contained in:
Родитель
3c7b27cf7e
Коммит
3f78da4f46
|
@ -36,6 +36,7 @@ EXPORTS = \
|
|||
nsIMsgHost.h \
|
||||
nsIMsgGroupRecord.h \
|
||||
nsIMsgFolder.h \
|
||||
nsIMsgRDFFolder.h \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
|
|
@ -32,7 +32,8 @@ EXPORTS = \
|
|||
nsMsgMessageFlags.h \
|
||||
nsIMsgHost.h \
|
||||
nsIMsgGroupRecord.h \
|
||||
nsIMsgFolder.h \
|
||||
nsIMsgFolder.h \
|
||||
nsIMsgRDFFolder.h \
|
||||
$(NULL)
|
||||
|
||||
MODULE=mailnews
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include "nsISupports.h" /* interface nsISupports */
|
||||
#include "nsISupportsArray.h" /* interface nsISupportsArray */
|
||||
#include "nsIRDFNode.h" /* interface nsIRDFNode */
|
||||
|
||||
enum FolderType {
|
||||
FOLDER_MAIL,
|
||||
|
@ -28,7 +27,7 @@ enum FolderType {
|
|||
{0x85e39ff0, 0xb248, 0x11d2, \
|
||||
{ 0xb7, 0xef, 0x00, 0x80, 0x5f, 0x05, 0xff, 0xa5 }}
|
||||
|
||||
class nsIMsgFolder : public nsIRDFResource {
|
||||
class nsIMsgFolder : public nsISupports {
|
||||
public:
|
||||
static const nsIID& IID() {
|
||||
static nsIID iid = NS_IMSGFOLDER_IID;
|
||||
|
@ -50,6 +49,9 @@ class nsIMsgFolder : public nsIRDFResource {
|
|||
/* <IDL> */
|
||||
NS_IMETHOD GetPrettiestName(char * *aPrettiestName) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD BuildFolderURL(char **_retval) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD GetNameFromPathName(const char *pathName, char **_retval) = 0;
|
||||
|
||||
|
@ -156,6 +158,9 @@ class nsIMsgFolder : public nsIRDFResource {
|
|||
/* <IDL> */
|
||||
NS_IMETHOD GetAllowsPosting(PRBool *aAllowsPosting) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD DisplayRecipients(PRBool *_retval) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD GetRelativePathName(char * *aRelativePathName) = 0;
|
||||
|
||||
|
@ -208,4 +213,24 @@ class nsIMsgFolder : public nsIRDFResource {
|
|||
NS_IMETHOD GetExpansionArray(const nsISupportsArray *expansionArray) = 0;
|
||||
};
|
||||
|
||||
/* starting interface nsIMsgMailFolder */
|
||||
|
||||
/* {27D2DE40-BAF1-11d2-9578-00805F8AC615} */
|
||||
#define NS_IMSGMAILFOLDER_IID_STR "27D2DE40-BAF1-11d2-9578-00805F8AC615"
|
||||
#define NS_IMSGMAILFOLDER_IID \
|
||||
{0x27D2DE40, 0xBAF1, 0x11d2, \
|
||||
{ 0x95, 0x78, 0x00, 0x80, 0x5F, 0x8A, 0xC6, 0x15 }}
|
||||
|
||||
class nsIMsgMailFolder : public nsISupports {
|
||||
public:
|
||||
static const nsIID& IID() {
|
||||
static nsIID iid = NS_IMSGMAILFOLDER_IID;
|
||||
return iid;
|
||||
}
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD GetPathName(char * *aPathName) = 0;
|
||||
NS_IMETHOD SetPathName(char * aPathName) = 0;
|
||||
};
|
||||
|
||||
#endif /* __gen_nsIMsgFolder_h__ */
|
||||
|
|
|
@ -18,91 +18,94 @@
|
|||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsISupportsArray.idl"
|
||||
#include "nsIRDFNode.idl"
|
||||
|
||||
enum FolderType {
|
||||
FOLDER_MAIL,
|
||||
FOLDER_IMAPMAIL,
|
||||
FOLDER_NEWSGROUP,
|
||||
FOLDER_CONTAINERONLY,
|
||||
FOLDER_CATEGORYCONTAINER,
|
||||
FOLDER_IMAPSERVERCONTAINER,
|
||||
FOLDER_UNKNOWN
|
||||
FOLDER_MAIL,
|
||||
FOLDER_IMAPMAIL,
|
||||
FOLDER_NEWSGROUP,
|
||||
FOLDER_CONTAINERONLY,
|
||||
FOLDER_CATEGORYCONTAINER,
|
||||
FOLDER_IMAPSERVERCONTAINER,
|
||||
FOLDER_UNKNOWN
|
||||
};
|
||||
|
||||
[uuid(85e39ff0-b248-11d2-b7ef-00805f05ffa5)]
|
||||
interface nsIMsgFolder : nsIRDFResource {
|
||||
interface nsIMsgFolder : nsISupports {
|
||||
|
||||
readonly attribute FolderType type;
|
||||
readonly attribute string prettyName;
|
||||
readonly attribute string name;
|
||||
void SetName(in string name);
|
||||
readonly attribute string prettiestName;
|
||||
readonly attribute FolderType type;
|
||||
readonly attribute string prettyName;
|
||||
readonly attribute string name;
|
||||
void SetName(in string name);
|
||||
readonly attribute string prettiestName;
|
||||
|
||||
string GetNameFromPathName(in string pathName);
|
||||
boolean HasSubFolders();
|
||||
long GetNumSubFolders() ;
|
||||
long GetNumSubFoldersToDisplay();
|
||||
nsIMsgFolder GetSubFolder(in long which) ;
|
||||
nsISupportsArray GetSubFolders();
|
||||
void AddSubFolder(in nsIMsgFolder folder);
|
||||
void RemoveSubFolder (in nsIMsgFolder folder);
|
||||
string BuildFolderURL();
|
||||
|
||||
readonly attribute boolean deleteIsMoveToTrash;
|
||||
readonly attribute boolean showDeletedMessages;
|
||||
string GetNameFromPathName(in string pathName);
|
||||
boolean HasSubFolders();
|
||||
long GetNumSubFolders() ;
|
||||
long GetNumSubFoldersToDisplay();
|
||||
nsIMsgFolder GetSubFolder(in long which) ;
|
||||
nsISupportsArray GetSubFolders();
|
||||
void AddSubFolder(in nsIMsgFolder folder);
|
||||
void RemoveSubFolder (in nsIMsgFolder folder);
|
||||
|
||||
readonly attribute boolean deleteIsMoveToTrash;
|
||||
readonly attribute boolean showDeletedMessages;
|
||||
|
||||
void OnCloseFolder ();
|
||||
void Delete ();
|
||||
void OnCloseFolder ();
|
||||
void Delete ();
|
||||
|
||||
void PropagateDelete(inout nsIMsgFolder folder, in boolean deleteStorage);
|
||||
void RecursiveDelete(in boolean deleteStorage);
|
||||
void PropagateDelete(inout nsIMsgFolder folder, in boolean deleteStorage);
|
||||
void RecursiveDelete(in boolean deleteStorage);
|
||||
|
||||
void CreateSubfolder(in string leafNameFromUser, out nsIMsgFolder outFolder, out long outPos);
|
||||
void CreateSubfolder(in string leafNameFromUser, out nsIMsgFolder outFolder, out long outPos);
|
||||
|
||||
void Rename(in string name);
|
||||
void Adopt(in nsIMsgFolder srcFolder, out long outPos);
|
||||
void Rename(in string name);
|
||||
void Adopt(in nsIMsgFolder srcFolder, out long outPos);
|
||||
|
||||
boolean ContainsChildNamed(in string name);
|
||||
nsIMsgFolder FindChildNamed(in string name);
|
||||
nsIMsgFolder FindParentOf(in nsIMsgFolder childFolder);
|
||||
boolean IsParentOf(in nsIMsgFolder folder, in boolean deep);
|
||||
boolean ContainsChildNamed(in string name);
|
||||
nsIMsgFolder FindChildNamed(in string name);
|
||||
nsIMsgFolder FindParentOf(in nsIMsgFolder childFolder);
|
||||
boolean IsParentOf(in nsIMsgFolder folder, in boolean deep);
|
||||
|
||||
string GenerateUniqueSubfolderName(in string prefix, in nsIMsgFolder otherFolder);
|
||||
string GenerateUniqueSubfolderName(in string prefix, in nsIMsgFolder otherFolder);
|
||||
|
||||
attribute long depth;
|
||||
attribute long depth;
|
||||
|
||||
void UpdateSummaryTotals();
|
||||
void SummaryChanged();
|
||||
long GetNumUnread(in boolean deep);
|
||||
long GetTotalMessages(in boolean deep);
|
||||
void UpdateSummaryTotals();
|
||||
void SummaryChanged();
|
||||
long GetNumUnread(in boolean deep);
|
||||
long GetTotalMessages(in boolean deep);
|
||||
|
||||
readonly attribute long expungedBytesCount;
|
||||
readonly attribute boolean deletable;
|
||||
readonly attribute boolean canCreateChildren;
|
||||
readonly attribute boolean canBeRenamed;
|
||||
readonly attribute boolean requiresCleanup;
|
||||
readonly attribute long expungedBytesCount;
|
||||
readonly attribute boolean deletable;
|
||||
readonly attribute boolean canCreateChildren;
|
||||
readonly attribute boolean canBeRenamed;
|
||||
readonly attribute boolean requiresCleanup;
|
||||
|
||||
void ClearRequiresCleanup();
|
||||
void ClearRequiresCleanup();
|
||||
|
||||
readonly attribute boolean knowsSearchNntpExtension;
|
||||
readonly attribute boolean allowsPosting;
|
||||
readonly attribute boolean knowsSearchNntpExtension;
|
||||
readonly attribute boolean allowsPosting;
|
||||
|
||||
readonly attribute string relativePathName;
|
||||
readonly attribute long sizeOnDisk;
|
||||
boolean DisplayRecipients();
|
||||
|
||||
void RememberPassword(in string password);
|
||||
string GetRememberedPassword();
|
||||
boolean UserNeedsToAuthenticateForFolder(in boolean displayOnly);
|
||||
string GetUserName();
|
||||
string GetHostName();
|
||||
readonly attribute string relativePathName;
|
||||
readonly attribute long sizeOnDisk;
|
||||
|
||||
void AddSubfolderIfUnique(in nsIMsgFolder newSubfolder);
|
||||
void ReplaceSubfolder(in nsIMsgFolder oldFolder,
|
||||
void RememberPassword(in string password);
|
||||
string GetRememberedPassword();
|
||||
boolean UserNeedsToAuthenticateForFolder(in boolean displayOnly);
|
||||
string GetUserName();
|
||||
string GetHostName();
|
||||
|
||||
void AddSubfolderIfUnique(in nsIMsgFolder newSubfolder);
|
||||
void ReplaceSubfolder(in nsIMsgFolder oldFolder,
|
||||
in nsIMsgFolder newFolder);
|
||||
|
||||
void SetFlag(in long flag);
|
||||
void ClearFlag(in long flag);
|
||||
boolean GetFlag(in long flag);
|
||||
void SetFlag(in long flag);
|
||||
void ClearFlag(in long flag);
|
||||
boolean GetFlag(in long flag);
|
||||
|
||||
void ToggleFlag (in long flag);
|
||||
void OnFlagChange (in long flag);
|
||||
|
@ -116,3 +119,9 @@ interface nsIMsgFolder : nsIRDFResource {
|
|||
};
|
||||
|
||||
|
||||
|
||||
[uuid(27D2DE40-BAF1-11d2-9578-00805F8AC615)]
|
||||
interface nsIMsgMailFolder : nsISupports {
|
||||
|
||||
attribute string pathName;
|
||||
};
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* DO NOT EDIT. THIS FILE IS GENERATED FROM nsIMsgRDFFolder.idl
|
||||
*/
|
||||
|
||||
#ifndef __gen_nsIMsgRDFFolder_h__
|
||||
#define __gen_nsIMsgRDFFolder_h__
|
||||
|
||||
#include "nsISupports.h" /* interface nsISupports */
|
||||
#include "nsISupportsArray.h" /* interface nsISupportsArray */
|
||||
#include "nsIRDFNode.h" /* interface nsIRDFNode */
|
||||
#include "nsIMsgFolder.h" /* interface nsIMsgFolder */
|
||||
|
||||
/* starting interface nsIMsgRDFFolder */
|
||||
|
||||
/* {5F0E8DC0-BAD1-11d2-9578-00805F8AC615} */
|
||||
#define NS_IMSGRDFFOLDER_IID_STR "5F0E8DC0-BAD1-11d2-9578-00805F8AC615"
|
||||
#define NS_IMSGRDFFOLDER_IID \
|
||||
{0x5F0E8DC0, 0xBAD1, 0x11d2, \
|
||||
{ 0x95, 0x78, 0x00, 0x80, 0x5F, 0x8A, 0xC6, 0x15 }}
|
||||
|
||||
class nsIMsgRDFFolder : public nsIRDFResource {
|
||||
public:
|
||||
static const nsIID& IID() {
|
||||
static nsIID iid = NS_IMSGRDFFOLDER_IID;
|
||||
return iid;
|
||||
}
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD GetFolder(nsIMsgFolder * *aFolder) = 0;
|
||||
NS_IMETHOD SetFolder(nsIMsgFolder * aFolder) = 0;
|
||||
};
|
||||
|
||||
#endif /* __gen_nsIMsgRDFFolder_h__ */
|
|
@ -0,0 +1,29 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIRDFNode.idl"
|
||||
#include "nsIMsgFolder.idl"
|
||||
|
||||
[uuid(5F0E8DC0-BAD1-11d2-9578-00805F8AC615)]
|
||||
interface nsIMsgRDFFolder : nsIRDFResource {
|
||||
|
||||
attribute nsIMsgFolder folder;
|
||||
};
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче