Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
MessageObserver Class Reference
Inheritance diagram for MessageObserver:
Inheritance graph
Collaboration diagram for MessageObserver:
Collaboration graph

List of all members.

Public Member Functions

 MessageObserver (nsBayesianFilter *filter, nsMsgJunkStatus oldClassification, nsMsgJunkStatus newClassification, nsIJunkMailClassificationListener *listener)
virtual void analyzeTokens (Tokenizer &tokenizer)
void setTokenListener (nsIStreamListener *aTokenListener)
void setSource (const char *sourceURI)

Public Attributes

nsCOMPtr< nsIStreamListenermTokenListener
nsCString mTokenSource

Private Attributes

nsCOMPtr< nsISupports > mSupports
< nsIJunkMailClassificationListener
nsMsgJunkStatus mOldClassification
nsMsgJunkStatus mNewClassification

Detailed Description

Definition at line 1242 of file nsBayesianFilter.cpp.

Constructor & Destructor Documentation

MessageObserver::MessageObserver ( nsBayesianFilter filter,
nsMsgJunkStatus  oldClassification,
nsMsgJunkStatus  newClassification,
nsIJunkMailClassificationListener listener 
) [inline]

Definition at line 1244 of file nsBayesianFilter.cpp.

        :   mFilter(filter), mSupports(filter), mListener(listener),

Member Function Documentation

virtual void MessageObserver::analyzeTokens ( Tokenizer tokenizer) [inline, virtual]

Implements TokenAnalyzer.

Definition at line 1254 of file nsBayesianFilter.cpp.

        mFilter->observeMessage(tokenizer, mTokenSource.get(), mOldClassification,
                                mNewClassification, mListener);
        // release reference to listener, which will allow us to go away as well.
        mTokenListener = nsnull;


Here is the call graph for this function:

void TokenAnalyzer::setSource ( const char *  sourceURI) [inline, inherited]

Definition at line 697 of file nsBayesianFilter.cpp.

{mTokenSource = sourceURI;}

Here is the caller graph for this function:

void TokenAnalyzer::setTokenListener ( nsIStreamListener aTokenListener) [inline, inherited]

Definition at line 692 of file nsBayesianFilter.cpp.

      mTokenListener = aTokenListener;

Member Data Documentation

Definition at line 1264 of file nsBayesianFilter.cpp.

Definition at line 1266 of file nsBayesianFilter.cpp.

Definition at line 1268 of file nsBayesianFilter.cpp.

Definition at line 1267 of file nsBayesianFilter.cpp.

nsCOMPtr<nsISupports> MessageObserver::mSupports [private]

Definition at line 1265 of file nsBayesianFilter.cpp.

Definition at line 699 of file nsBayesianFilter.cpp.

Definition at line 700 of file nsBayesianFilter.cpp.

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