Logo Search packages:      
Sourcecode: pan version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

pan::TaskPost Class Reference

#include <task-post.h>

Inheritance diagram for pan::TaskPost:
Inheritance graph
Collaboration diagram for pan::TaskPost:
Collaboration graph

List of all members.

Public Types


Public Member Functions

void add_listener (Listener *)
void add_steps (int steps)
virtual std::string describe () const
unsigned long get_bytes_remaining () const
GMimeMessage * get_message ()
int get_progress_of_100 () const
const Stateget_state () const
std::string get_status () const
const Quarkget_type () const
void give_decoder (DecoderSource *, Decoder *)
void give_nntp (NNTP::Source *, NNTP *nntp)
void increment_step (int increment=1)
void init_steps (int steps)
void pulse ()
void remove_listener (Listener *)
void set_error (const StringView &error)
void set_finished (int status)
void set_status (const StringView &status)
void set_status_va (const char *fmt,...)
void set_step (int step)
virtual void stop ()
 stop a running task
 TaskPost (const Quark &server, GMimeMessage *message)

Protected Member Functions

void check_in (NNTP *, Health)
void check_in (Decoder *)
int get_nntp_count () const
virtual void use_decoder (Decoder *)
virtual void use_nntp (NNTP *nntp)

Protected Attributes

bool _active
std::string _description
int _done
std::vector< std::string > _errors
State _state
std::string _status_text
int _step
int _steps

Private Member Functions

virtual void on_nntp_done (NNTP *, Health, const StringView &)
virtual void on_nntp_done (NNTP *nntp UNUSED, Health health UNUSED, const StringView &response UNUSED)
virtual void on_nntp_group (NNTP *nntp UNUSED, const Quark &group UNUSED, unsigned long estimated_qty UNUSED, unsigned long low UNUSED, unsigned long high UNUSED)
virtual void on_nntp_line (NNTP *nntp UNUSED, const StringView &line UNUSED)

Private Attributes

GMimeMessage * _message
Quark _server

Detailed Description

Task for posting an article.

Definition at line 35 of file task-post.h.

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

Generated by  Doxygen 1.6.0   Back to index