Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsMsgSearchScopeTerm Class Reference

#include <nsMsgSearchScopeTerm.h>

Inheritance diagram for nsMsgSearchScopeTerm:
Inheritance graph
[legend]
Collaboration diagram for nsMsgSearchScopeTerm:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsMsgSearchScopeTerm (nsIMsgSearchSession *, nsMsgSearchScopeValue, nsIMsgFolder *)
 nsMsgSearchScopeTerm ()
virtual ~nsMsgSearchScopeTerm ()
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGSEARCHSCOPETERM
nsresult 
TimeSlice (PRBool *aDone)
nsresult InitializeAdapter (nsISupportsArray *termList)
char * GetStatusBarName ()

Public Attributes

nsMsgSearchScopeValue m_attribute
char * m_name
nsCOMPtr< nsIMsgFolderm_folder
nsCOMPtr< nsIMsgSearchAdapterm_adapter
nsCOMPtr< nsIInputStreamm_inputStream
nsCOMPtr< nsILocalFilem_localFile
nsWeakPtr m_searchSession
PRBool m_searchServer
readonly attribute nsILocalFile mailFile
attribute nsIInputStream inputStream
readonly attribute nsIMsgFolder folder
readonly attribute
nsIMsgSearchSession 
searchSession

Detailed Description

Definition at line 52 of file nsMsgSearchScopeTerm.h.


Constructor & Destructor Documentation

Definition at line 1454 of file nsMsgSearchTerm.cpp.

Here is the call graph for this function:

Definition at line 1464 of file nsMsgSearchTerm.cpp.

Definition at line 1469 of file nsMsgSearchTerm.cpp.


Member Function Documentation

Definition at line 1600 of file nsMsgSearchTerm.cpp.

{
  return nsnull;
}

Definition at line 1549 of file nsMsgSearchTerm.cpp.

{
  if (m_adapter)
    return NS_OK;
  
  nsresult err = NS_OK;
  
  switch (m_attribute)
  {
    case nsMsgSearchScope::onlineMail:    
        m_adapter = new nsMsgSearchOnlineMail (this, termList);
      break;
    case nsMsgSearchScope::offlineMail:
        m_adapter = new nsMsgSearchOfflineMail (this, termList);
      break;
    case nsMsgSearchScope::newsEx:
#ifdef DOING_EXNEWSSEARCH
        if (m_folder->KnowsSearchNntpExtension())
          m_adapter = new nsMsgSearchNewsEx (this, termList);
        else
          m_adapter = new nsMsgSearchNews(this, termList);
#endif
      NS_ASSERTION(PR_FALSE, "not supporting newsEx yet");
      break;
    case nsMsgSearchScope::news:
          m_adapter = new nsMsgSearchNews (this, termList);
        break;
    case nsMsgSearchScope::allSearchableGroups:
#ifdef DOING_EXNEWSSEARCH
      m_adapter = new msMsgSearchNewsEx (this, termList);
#endif
      NS_ASSERTION(PR_FALSE, "not supporting allSearchableGroups yet");
      break;
    case nsMsgSearchScope::LDAP:
      NS_ASSERTION(PR_FALSE, "not supporting LDAP yet");
      break;
    case nsMsgSearchScope::localNews:
      m_adapter = new nsMsgSearchOfflineNews (this, termList);
      break;
    default:
      NS_ASSERTION(PR_FALSE, "invalid scope");
      err = NS_ERROR_FAILURE;
  }
  
  if (m_adapter)
    err = m_adapter->ValidateTerms ();
  
  return err;
}

Here is the caller graph for this function:

Definition at line 1544 of file nsMsgSearchTerm.cpp.

{
  return m_adapter->Search(aDone);
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 49 of file nsIMsgSearchScopeTerm.idl.

Definition at line 48 of file nsIMsgSearchScopeTerm.idl.

Definition at line 70 of file nsMsgSearchScopeTerm.h.

Definition at line 67 of file nsMsgSearchScopeTerm.h.

Definition at line 69 of file nsMsgSearchScopeTerm.h.

Definition at line 71 of file nsMsgSearchScopeTerm.h.

Definition at line 72 of file nsMsgSearchScopeTerm.h.

Definition at line 68 of file nsMsgSearchScopeTerm.h.

Definition at line 74 of file nsMsgSearchScopeTerm.h.

Definition at line 73 of file nsMsgSearchScopeTerm.h.

Definition at line 47 of file nsIMsgSearchScopeTerm.idl.

Definition at line 50 of file nsIMsgSearchScopeTerm.idl.


The documentation for this class was generated from the following files: