зеркало из https://github.com/mozilla/gecko-dev.git
rename Profile->Virtual and change API slightly to be more COM like
This commit is contained in:
Родитель
37a18ca839
Коммит
53995b4aa2
|
@ -36,7 +36,7 @@ extern "C" {
|
|||
const PRUint32 F_ISGROUP = 0x00000001;
|
||||
const PRUint32 F_EXPANDED = 0x00000002;
|
||||
const PRUint32 F_CATCONT = 0x00000004;
|
||||
const PRUint32 F_PROFILE = 0x00000008;
|
||||
const PRUint32 F_VIRTUAL = 0x00000008;
|
||||
const PRUint32 F_DIRTY = 0x00000010;
|
||||
const PRUint32 F_DESCENDENTSLOADED = 0x00000020;
|
||||
const PRUint32 F_HTMLOKGROUP = 0x00000040;
|
||||
|
@ -321,16 +321,18 @@ nsMsgGroupRecord::GetCategoryContainer()
|
|||
}
|
||||
|
||||
|
||||
PRBool
|
||||
nsMsgGroupRecord::IsProfile()
|
||||
nsresult
|
||||
nsMsgGroupRecord::IsVirtual(PRBool *retval)
|
||||
{
|
||||
return (m_flags & F_PROFILE) != 0;
|
||||
*retval =( (m_flags & F_VIRTUAL) != 0);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
int
|
||||
nsMsgGroupRecord::SetIsProfile(PRBool value)
|
||||
nsresult
|
||||
nsMsgGroupRecord::SetIsVirtual(PRBool value)
|
||||
{
|
||||
return TweakFlag(F_PROFILE, value);
|
||||
TweakFlag(F_VIRTUAL, value);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#define _nsMsgGroupRecord_h__
|
||||
|
||||
#include "prtypes.h"
|
||||
#include "nsISupports.h"
|
||||
|
||||
class nsIMAPGroupRecord;
|
||||
|
||||
|
@ -83,8 +84,8 @@ public:
|
|||
nsMsgGroupRecord* GetCategoryContainer();
|
||||
|
||||
// Get/Set whether this is a virtual newsgroup.
|
||||
PRBool IsProfile();
|
||||
int SetIsProfile(PRBool value);
|
||||
nsresult IsVirtual(PRBool *retval);
|
||||
nsresult SetIsVirtual(PRBool value);
|
||||
|
||||
// Get/Set whether this is really a newsgroup (and not just a container
|
||||
// for newsgroups).
|
||||
|
|
Загрузка…
Ссылка в новой задаче