Logo Search packages:      
Sourcecode: pan version File versions

pan::Decoder Class Reference

#include <decoder.h>

Inheritance diagram for pan::Decoder:

List of all members.

Detailed Description

Decodes attachments in a worker thread.

Calin Culianu <calin@ajvar.org>

Charles Kerr <charles@rebelbase.com>

See also:


Definition at line 49 of file decoder.h.

Public Types

typedef std::list< std::string > log_t
typedef std::vector< std::string > strings_t

Public Member Functions

virtual void cancel ()
void cancel_silently ()
 Decoder (WorkerPool &)
void enqueue (TaskArticle *task, const Quark &save_path, const strings_t &input_files, const TaskArticle::SaveMode &save_mode)
virtual bool was_cancelled () const

Public Attributes

log_t file_errors
log_t log_errors
log_t log_infos
log_t log_severe
bool mark_read

Protected Member Functions

void do_work ()

Private Member Functions

void disable_progress_update ()
void enable_progress_update ()
double get_percentage (const uuprogress &p) const

Static Private Member Functions

static gboolean progress_update_timer_func (gpointer decoder)
static int uu_busy_poll (void *self, uuprogress *p)
static void uu_log (void *thiz, char *message, int severity)

Private Attributes

int _gsourceid
std::string current_file
strings_t input_files
Mutex mut
volatile int num_scanned_files
volatile double percent
TaskArticle::SaveMode save_mode
std::string save_path

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

Generated by  Doxygen 1.6.0   Back to index