Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsImapService.cpp File Reference
#include "msgCore.h"
#include "nsMsgImapCID.h"
#include "netCore.h"
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsIIMAPHostSessionList.h"
#include "nsImapService.h"
#include "nsImapUrl.h"
#include "nsCOMPtr.h"
#include "nsIMsgFolder.h"
#include "nsIMsgImapMailFolder.h"
#include "nsIImapIncomingServer.h"
#include "nsIImapServerSink.h"
#include "nsIImapMockChannel.h"
#include "nsImapUtils.h"
#include "nsIDocShell.h"
#include "nsIDocShellLoadInfo.h"
#include "nsIRDFService.h"
#include "nsIEventQueueService.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsRDFCID.h"
#include "nsEscape.h"
#include "nsIMsgStatusFeedback.h"
#include "nsIPrefBranch.h"
#include "nsIPrefService.h"
#include "nsILoadGroup.h"
#include "nsIMsgAccountManager.h"
#include "nsMsgBaseCID.h"
#include "nsMsgFolderFlags.h"
#include "nsISubscribableServer.h"
#include "nsIDirectoryService.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsIWebNavigation.h"
#include "nsImapStringBundle.h"
#include "plbase64.h"
#include "nsImapOfflineSync.h"
#include "nsIMsgHdr.h"
#include "nsMsgUtils.h"
#include "nsICacheService.h"
#include "nsIStreamListenerTee.h"
#include "nsNetCID.h"
#include "nsMsgI18N.h"
#include "nsIOutputStream.h"
#include "nsIInputStream.h"
#include "nsICopyMsgStreamListener.h"
#include "nsIFileStream.h"
#include "nsIMsgParseMailMsgState.h"
#include "nsMsgLocalCID.h"
#include "nsIDOMWindowInternal.h"
#include "nsIMessengerWindowService.h"
#include "nsIWindowMediator.h"
#include "nsIPrompt.h"
#include "nsIWindowWatcher.h"
#include "nsImapProtocol.h"
#include "nsIMsgMailSession.h"
#include "nsIStreamConverterService.h"
#include "nsNetUtil.h"
#include "nsInt64.h"

Go to the source code of this file.

Defines

#define PREF_MAIL_ROOT_IMAP   "mail.root.imap"
#define PREF_MAIL_ROOT_IMAP_REL   "mail.root.imap-rel"

Functions

static NS_DEFINE_CID (kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID)
static NS_DEFINE_CID (kImapUrlCID, NS_IMAPURL_CID)
static NS_DEFINE_CID (kCacheServiceCID, NS_CACHESERVICE_CID)
 NS_IMPL_QUERY_INTERFACE6 (nsImapService, nsIImapService, nsIMsgMessageService, nsIProtocolHandler, nsIMsgProtocolInfo, nsIMsgMessageFetchPartService, nsIContentHandler) nsImapService

Variables

static const char sequenceString [] = "SEQUENCE"
static const char uidString [] = "UID"
static PRBool gInitialized = PR_FALSE
static PRInt32 gMIMEOnDemandThreshold = 15000
static PRBool gMIMEOnDemand = PR_FALSE

Define Documentation

#define PREF_MAIL_ROOT_IMAP   "mail.root.imap"

Definition at line 105 of file nsImapService.cpp.

#define PREF_MAIL_ROOT_IMAP_REL   "mail.root.imap-rel"

Definition at line 106 of file nsImapService.cpp.


Function Documentation

static NS_DEFINE_CID ( kImapUrlCID  ,
NS_IMAPURL_CID   
) [static]
static NS_DEFINE_CID ( kCacheServiceCID  ,
NS_CACHESERVICE_CID   
) [static]

Definition at line 122 of file nsImapService.cpp.

{
  mPrintingOperation = PR_FALSE;
  if (!gInitialized)
  {
    nsresult rv;
    nsCOMPtr<nsIPrefBranch> prefBranch(do_GetService(NS_PREFSERVICE_CONTRACTID, &rv)); 
    if (NS_SUCCEEDED(rv) && prefBranch) 
    {
      prefBranch->GetBoolPref("mail.imap.mime_parts_on_demand", &gMIMEOnDemand);
      prefBranch->GetIntPref("mail.imap.mime_parts_on_demand_threshold", &gMIMEOnDemandThreshold);
    }
    gInitialized = PR_TRUE;
  }
}

Here is the call graph for this function:


Variable Documentation

Definition at line 116 of file nsImapService.cpp.

Definition at line 118 of file nsImapService.cpp.

PRInt32 gMIMEOnDemandThreshold = 15000 [static]

Definition at line 117 of file nsImapService.cpp.

const char sequenceString[] = "SEQUENCE" [static]

Definition at line 113 of file nsImapService.cpp.

const char uidString[] = "UID" [static]

Definition at line 114 of file nsImapService.cpp.