Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsMsgIdentity.cpp File Reference
#include "msgCore.h"
#include "nsMsgIdentity.h"
#include "nsIPrefService.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsMsgCompCID.h"
#include "nsIRDFService.h"
#include "nsIRDFResource.h"
#include "nsRDFCID.h"
#include "nsMsgFolderFlags.h"
#include "nsIMsgFolder.h"
#include "nsIMsgIncomingServer.h"
#include "nsIMsgAccountManager.h"
#include "nsMsgBaseCID.h"
#include "prprf.h"
#include "nsISupportsObsolete.h"
#include "nsISupportsPrimitives.h"
#include "nsMsgUtils.h"

Go to the source code of this file.

Defines

#define REL_FILE_PREF_SUFFIX   NS_LITERAL_CSTRING("-rel")
#define COPY_IDENTITY_FILE_VALUE(SRC_ID, MACRO_GETTER, MACRO_SETTER)
#define COPY_IDENTITY_INT_VALUE(SRC_ID, MACRO_GETTER, MACRO_SETTER)
#define COPY_IDENTITY_BOOL_VALUE(SRC_ID, MACRO_GETTER, MACRO_SETTER)
#define COPY_IDENTITY_STR_VALUE(SRC_ID, MACRO_GETTER, MACRO_SETTER)
#define COPY_IDENTITY_WSTR_VALUE(SRC_ID, MACRO_GETTER, MACRO_SETTER)

Functions

static NS_DEFINE_CID (kRDFServiceCID, NS_RDFSERVICE_CID)
 NS_IMPL_THREADSAFE_ISUPPORTS1 (nsMsgIdentity, nsIMsgIdentity) nsMsgIdentity

Variables

static const PRUnichar unicharEmptyString [] = { (PRUnichar)'\0' }

Define Documentation

#define COPY_IDENTITY_BOOL_VALUE (   SRC_ID,
  MACRO_GETTER,
  MACRO_SETTER 
)
Value:
{      \
		    nsresult macro_rv;    \
        	PRBool macro_oldBool;     \
              macro_rv = SRC_ID->MACRO_GETTER(&macro_oldBool); \
              if (NS_SUCCEEDED(macro_rv)) \
                this->MACRO_SETTER(macro_oldBool);     \
       }

Definition at line 758 of file nsMsgIdentity.cpp.

#define COPY_IDENTITY_FILE_VALUE (   SRC_ID,
  MACRO_GETTER,
  MACRO_SETTER 
)
Value:
{      \
		nsresult macro_rv; \
		nsCOMPtr <nsILocalFile>macro_spec;   \
              macro_rv = SRC_ID->MACRO_GETTER(getter_AddRefs(macro_spec)); \
              if (NS_SUCCEEDED(macro_rv)) \
                this->MACRO_SETTER(macro_spec);     \
       }

Definition at line 740 of file nsMsgIdentity.cpp.

#define COPY_IDENTITY_INT_VALUE (   SRC_ID,
  MACRO_GETTER,
  MACRO_SETTER 
)
Value:
{      \
		    nsresult macro_rv;    \
        	PRInt32 macro_oldInt;     \
              macro_rv = SRC_ID->MACRO_GETTER(&macro_oldInt);  \
              if (NS_SUCCEEDED(macro_rv)) \
                this->MACRO_SETTER(macro_oldInt);     \
       }

Definition at line 749 of file nsMsgIdentity.cpp.

#define COPY_IDENTITY_STR_VALUE (   SRC_ID,
  MACRO_GETTER,
  MACRO_SETTER 
)
Value:
{      \
        	nsXPIDLCString macro_oldStr;     \
		    nsresult macro_rv;    \
              macro_rv = SRC_ID->MACRO_GETTER(getter_Copies(macro_oldStr));  \
            if (NS_SUCCEEDED(macro_rv)) { \
                if (!macro_oldStr) {      \
                     this->MACRO_SETTER("");     \
              }      \
                else {      \
                     this->MACRO_SETTER(macro_oldStr);  \
              }      \
            } \
       }

Definition at line 767 of file nsMsgIdentity.cpp.

#define COPY_IDENTITY_WSTR_VALUE (   SRC_ID,
  MACRO_GETTER,
  MACRO_SETTER 
)
Value:
{      \
        	nsXPIDLString macro_oldStr;      \
		    nsresult macro_rv;    \
              macro_rv = SRC_ID->MACRO_GETTER(getter_Copies(macro_oldStr)); \
              if (NS_SUCCEEDED(macro_rv)) { \
                if (!macro_oldStr) {      \
                     this->MACRO_SETTER(unicharEmptyString);   \
              }      \
                else {      \
                     this->MACRO_SETTER(macro_oldStr);  \
              }      \
            } \
       }

Definition at line 784 of file nsMsgIdentity.cpp.

Definition at line 62 of file nsMsgIdentity.cpp.


Function Documentation

static NS_DEFINE_CID ( kRDFServiceCID  ,
NS_RDFSERVICE_CID   
) [static]
NS_IMPL_THREADSAFE_ISUPPORTS1 ( nsMsgIdentity  ,
nsIMsgIdentity   
)

Definition at line 64 of file nsMsgIdentity.cpp.

                            :
  m_signature(0),
  m_identityKey(0),
  m_prefBranch(0)
{
}

Variable Documentation

const PRUnichar unicharEmptyString[] = { (PRUnichar)'\0' } [static]

Definition at line 782 of file nsMsgIdentity.cpp.