Back to index

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

#include <nsUrlClassifierStreamUpdater.h>

Inheritance diagram for nsUrlClassifierStreamUpdater:
Inheritance graph
Collaboration diagram for nsUrlClassifierStreamUpdater:
Collaboration graph

List of all members.

Public Member Functions

 nsUrlClassifierStreamUpdater ()
boolean downloadUpdates (in nsIUrlClassifierCallback aTableCallback, in nsIUrlClassifierCallback aErrorCallback)
 Try to download updates from updateUrl.

Public Attributes

attribute ACString updateUrl
 The Url to download from.

Private Member Functions

 ~nsUrlClassifierStreamUpdater ()
 nsUrlClassifierStreamUpdater (nsUrlClassifierStreamUpdater &)

Private Attributes

nsCOMPtr< nsIURImUpdateUrl
nsCOMPtr< nsIStreamListenermListener

Detailed Description

Definition at line 51 of file nsUrlClassifierStreamUpdater.h.

Constructor & Destructor Documentation

Definition at line 192 of file nsUrlClassifierStreamUpdater.cpp.

  : mIsUpdating(PR_FALSE), mUpdateUrl(nsnull)
#if defined(PR_LOGGING)
  if (!gUrlClassifierStreamUpdaterLog)
    gUrlClassifierStreamUpdaterLog = PR_NewLogModule("UrlClassifierStreamUpdater");

Definition at line 63 of file nsUrlClassifierStreamUpdater.h.


Member Function Documentation

Try to download updates from updateUrl.

Only one instance of this runs at a time, so we return false if another instance is already running.

aTableCallbackCalled once for each table that we successfully download with the table header as the parameter.
aErrorCallbackCalled if we get an http error or a connection refused.

Member Data Documentation

Definition at line 59 of file nsUrlClassifierStreamUpdater.h.

Definition at line 69 of file nsUrlClassifierStreamUpdater.h.

Definition at line 68 of file nsUrlClassifierStreamUpdater.h.

The Url to download from.

Should be plain ascii text.

Definition at line 53 of file nsIUrlClassifierStreamUpdater.idl.

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