CUpdateChannelThread Class Reference

#include <updatethread.h>

List of all members.

Public Member Functions

 CUpdateChannelThread (int channelId, bool automatic=false)
virtual ExitCode Entry ()
void OnExit ()

Static Public Member Functions

static wxString AddSlashes (const char *str)

Static Public Attributes

static int updatedChannel_ = 0
static int countAutomaticUpdating_ = 0


Detailed Description

Thread for updating channel content. Downloads RSS channel, parses it and stores new spots (if any).


Constructor & Destructor Documentation

CUpdateChannelThread::CUpdateChannelThread int  channelId,
bool  automatic = false
[inline]
 

Cstr.

Parameters:
channelId Id of channel to be updated. Id is from db table "channels".
automatic True if the thread is created during automatic updating.


Member Function Documentation

wxString CUpdateChannelThread::AddSlashes const char *  str  )  [static]
 

Prepares string for entering to SQL query. Replaces '' with '%' and '\' with '\'.

Parameters:
str String to prepare.
Returns:
String with all replaces done.

wxThread::ExitCode CUpdateChannelThread::Entry  )  [virtual]
 

Thread main function.

void CUpdateChannelThread::OnExit  ) 
 

Called when the thread finishes. Posts message to main GUI thread which shows info in the status bar.


The documentation for this class was generated from the following files:
Generated on Tue Oct 3 20:47:11 2006 for RSSReader by  doxygen 1.4.6