Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

nsMsgSearchTerm Class Reference

#include <nsMsgSearchTerm.h>

Inheritance diagram for nsMsgSearchTerm:
Collaboration diagram for nsMsgSearchTerm:

List of all members.

Public Member Functions

 nsMsgSearchTerm ()
 nsMsgSearchTerm (nsMsgSearchAttribValue, nsMsgSearchOpValue, nsIMsgSearchValue *, nsMsgSearchBooleanOperator, const char *arbitraryHeader)
virtual ~nsMsgSearchTerm ()
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGSEARCHTERM
PRInt32 
GetNextIMAPOfflineMsgLine (char *buf, int bufferSize, int msgOffset, nsIMsgDBHdr *msg, nsIMsgDatabase *db)
nsresult DeStream (char *, PRInt16 length)
nsresult DeStreamNew (char *, PRInt16 length)
nsresult GetLocalTimes (PRTime, PRTime, PRExplodedTime &, PRExplodedTime &)
PRBool IsBooleanOpAND ()
nsMsgSearchBooleanOperator GetBooleanOp ()
const char * GetArbitraryHeader ()

Static Public Member Functions

static char * EscapeQuotesInStr (const char *str)

Public Attributes

nsCOMPtr< nsIMsgHeaderParserm_headerAddressParser
nsMsgSearchAttribValue m_attribute
nsMsgSearchOpValue m_operator
nsMsgSearchValue m_value
nsMsgSearchBooleanOperator m_booleanOp
nsCString m_arbitraryHeader
nsCString m_hdrProperty
PRBool m_matchAll
nsCString m_customId

Protected Member Functions

nsresult MatchString (const char *stringToMatch, const char *charset, PRBool *pResult)
nsresult OutputValue (nsCString &outputStr)
nsresult ParseAttribute (char *inStream, nsMsgSearchAttribValue *attrib)
nsresult ParseOperator (char *inStream, nsMsgSearchOpValue *value)
nsresult ParseValue (char *inStream)
nsresult InitHeaderAddressParser ()
void ToLowerCaseExceptSpecials (nsACString &aValue)
 Switch a string to lower case, except for special database rows that are not headers, but could be headers.
nsresult InitializeAddressBook ()
nsresult MatchInAddressBook (const char *aAddress, PRBool *pResult)

Protected Attributes

nsCOMPtr< nsIAbDirectorymDirectory
PRPackedBool mBeginsGrouping
PRPackedBool mEndsGrouping

Constructor & Destructor Documentation

nsMsgSearchTerm::nsMsgSearchTerm (  ) 
nsMsgSearchTerm::nsMsgSearchTerm ( nsMsgSearchAttribValue  ,
nsMsgSearchOpValue  ,
nsIMsgSearchValue ,
nsMsgSearchBooleanOperator  ,
const char *  arbitraryHeader 
)
virtual nsMsgSearchTerm::~nsMsgSearchTerm (  )  [virtual]

Member Function Documentation

nsresult nsMsgSearchTerm::DeStream ( char *  ,
PRInt16  length 
)
nsresult nsMsgSearchTerm::DeStreamNew ( char *  ,
PRInt16  length 
)
static char* nsMsgSearchTerm::EscapeQuotesInStr ( const char *  str  )  [static]
const char* nsMsgSearchTerm::GetArbitraryHeader (  )  [inline]
nsMsgSearchBooleanOperator nsMsgSearchTerm::GetBooleanOp (  )  [inline]
nsresult nsMsgSearchTerm::GetLocalTimes ( PRTime  ,
PRTime  ,
PRExplodedTime ,
PRExplodedTime  
)
NS_DECL_ISUPPORTS NS_DECL_NSIMSGSEARCHTERM PRInt32 nsMsgSearchTerm::GetNextIMAPOfflineMsgLine ( char *  buf,
int  bufferSize,
int  msgOffset,
nsIMsgDBHdr msg,
nsIMsgDatabase db 
)
nsresult nsMsgSearchTerm::InitHeaderAddressParser (  )  [protected]
nsresult nsMsgSearchTerm::InitializeAddressBook (  )  [protected]
PRBool nsMsgSearchTerm::IsBooleanOpAND (  )  [inline]
nsresult nsMsgSearchTerm::MatchInAddressBook ( const char *  aAddress,
PRBool pResult 
) [protected]
nsresult nsMsgSearchTerm::MatchString ( const char *  stringToMatch,
const char *  charset,
PRBool pResult 
) [protected]
nsresult nsMsgSearchTerm::OutputValue ( nsCString &  outputStr  )  [protected]
nsresult nsMsgSearchTerm::ParseAttribute ( char *  inStream,
nsMsgSearchAttribValue attrib 
) [protected]
nsresult nsMsgSearchTerm::ParseOperator ( char *  inStream,
nsMsgSearchOpValue value 
) [protected]
nsresult nsMsgSearchTerm::ParseValue ( char *  inStream  )  [protected]
void nsMsgSearchTerm::ToLowerCaseExceptSpecials ( nsACString aValue  )  [protected]

Switch a string to lower case, except for special database rows that are not headers, but could be headers.

Parameters:
aValue the string to switch

Member Data Documentation


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