zypp::solver::detail::Pending Class Reference

#include <Pending.h>

Inheritance diagram for zypp::solver::detail::Pending:
[legend]

List of all members.

Public Member Functions

 Pending (const char *description)
virtual ~Pending ()
virtual std::ostream & dumpOn (std::ostream &str) const
 Overload to realize std::ostream & operator<<.
std::string asString (void) const
const char * description (void) const
void setDescription (const char *description)
int id (void) const
PendingStatus status (void) const
double percentComplete (void) const
size_t completedSize (void) const
size_t totalSize (void) const
time_t startTime (void) const
time_t lastTime (void) const
time_t pollTime (void) const
int elapsedSecs (void) const
int expectedSecs (void) const
int remainingSecs (void) const
std::list< const char * > messages (void) const
const char * latestMessage (void) const
Pending_Ptr lookupById (int id)
std::list< Pending_Ptr > getAllActiveIds (void)
void begin (void)
void update (double percent_complete)
void updateBySize (size_t size, size_t total_size)
void finished (int retval)
void abort (int retval)
void fail (int retval, const char *error_msg)
bool isActive (void)
const char * errorMsg (void)
void addMessage (const char *message)

Static Public Member Functions

static std::string toString (const Pending &section)

Private Types

enum  PendingStatus {
  PENDING_STATUS_INVALID = 0, PENDING_STATUS_PRE_BEGIN, PENDING_STATUS_RUNNING, PENDING_STATUS_BLOCKING,
  PENDING_STATUS_ABORTED, PENDING_STATUS_FAILED, PENDING_STATUS_FINISHED
}

Private Member Functions

const char * pendingStatusToString (PendingStatus status)

Private Attributes

char * _description
int _id
PendingStatus _status
double _percent_complete
size_t _completed_size
size_t _total_size
time_t _start_time
time_t _last_time
time_t _poll_time
int _retval
char * _error_msg
std::list< const char * > _messages
void(* _update )(Pending_Ptr)
void(* _complete )(Pending_Ptr)
void(* _message )(Pending_Ptr)

Friends

std::ostream & operator<< (std::ostream &, const Pending &section)


Detailed Description

Definition at line 52 of file Pending.h.


Member Enumeration Documentation

enum zypp::solver::detail::Pending::PendingStatus [private]

Enumerator:
PENDING_STATUS_INVALID 
PENDING_STATUS_PRE_BEGIN 
PENDING_STATUS_RUNNING 
PENDING_STATUS_BLOCKING 
PENDING_STATUS_ABORTED 
PENDING_STATUS_FAILED 
PENDING_STATUS_FINISHED 

Definition at line 55 of file Pending.h.


Constructor & Destructor Documentation

zypp::solver::detail::Pending::Pending ( const char *  description  ) 

Definition at line 75 of file Pending.cc.

zypp::solver::detail::Pending::~Pending (  )  [virtual]

Definition at line 80 of file Pending.cc.


Member Function Documentation

const char* zypp::solver::detail::Pending::pendingStatusToString ( PendingStatus  status  )  [private]

string zypp::solver::detail::Pending::toString ( const Pending section  )  [static]

Definition at line 53 of file Pending.cc.

Referenced by asString().

virtual std::ostream& zypp::solver::detail::Pending::dumpOn ( std::ostream &  str  )  const [virtual]

Overload to realize std::ostream & operator<<.

Reimplemented from zypp::base::ReferenceCounted.

string zypp::solver::detail::Pending::asString ( void   )  const

Definition at line 46 of file Pending.cc.

References toString().

Referenced by zypp::solver::detail::operator<<().

const char* zypp::solver::detail::Pending::description ( void   )  const [inline]

Definition at line 112 of file Pending.h.

References _description.

void zypp::solver::detail::Pending::setDescription ( const char *  description  )  [inline]

Definition at line 113 of file Pending.h.

References _description.

int zypp::solver::detail::Pending::id ( void   )  const [inline]

Definition at line 114 of file Pending.h.

References _id.

PendingStatus zypp::solver::detail::Pending::status ( void   )  const [inline]

Definition at line 115 of file Pending.h.

References _status.

double zypp::solver::detail::Pending::percentComplete ( void   )  const [inline]

Definition at line 116 of file Pending.h.

References _percent_complete.

size_t zypp::solver::detail::Pending::completedSize ( void   )  const [inline]

Definition at line 117 of file Pending.h.

References _completed_size.

size_t zypp::solver::detail::Pending::totalSize ( void   )  const [inline]

Definition at line 118 of file Pending.h.

References _total_size.

time_t zypp::solver::detail::Pending::startTime ( void   )  const [inline]

Definition at line 119 of file Pending.h.

References _start_time.

time_t zypp::solver::detail::Pending::lastTime ( void   )  const [inline]

Definition at line 120 of file Pending.h.

References _last_time.

time_t zypp::solver::detail::Pending::pollTime ( void   )  const [inline]

Definition at line 121 of file Pending.h.

References _poll_time.

int zypp::solver::detail::Pending::elapsedSecs ( void   )  const [inline]

Definition at line 123 of file Pending.h.

int zypp::solver::detail::Pending::expectedSecs ( void   )  const [inline]

Definition at line 124 of file Pending.h.

int zypp::solver::detail::Pending::remainingSecs ( void   )  const [inline]

Definition at line 125 of file Pending.h.

std::list<const char *> zypp::solver::detail::Pending::messages ( void   )  const [inline]

Definition at line 127 of file Pending.h.

References _messages.

const char* zypp::solver::detail::Pending::latestMessage ( void   )  const [inline]

Definition at line 128 of file Pending.h.

References _error_msg.

Pending_Ptr zypp::solver::detail::Pending::lookupById ( int  id  ) 

std::list<Pending_Ptr> zypp::solver::detail::Pending::getAllActiveIds ( void   ) 

void zypp::solver::detail::Pending::begin ( void   ) 

void zypp::solver::detail::Pending::update ( double  percent_complete  ) 

void zypp::solver::detail::Pending::updateBySize ( size_t  size,
size_t  total_size 
)

void zypp::solver::detail::Pending::finished ( int  retval  ) 

void zypp::solver::detail::Pending::abort ( int  retval  ) 

void zypp::solver::detail::Pending::fail ( int  retval,
const char *  error_msg 
)

bool zypp::solver::detail::Pending::isActive ( void   ) 

const char* zypp::solver::detail::Pending::errorMsg ( void   ) 

void zypp::solver::detail::Pending::addMessage ( const char *  message  ) 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Pending section 
) [friend]


Member Data Documentation

char* zypp::solver::detail::Pending::_description [private]

Definition at line 72 of file Pending.h.

Referenced by description(), and setDescription().

int zypp::solver::detail::Pending::_id [private]

Definition at line 73 of file Pending.h.

Referenced by id().

PendingStatus zypp::solver::detail::Pending::_status [private]

Definition at line 75 of file Pending.h.

Referenced by status().

double zypp::solver::detail::Pending::_percent_complete [private]

Definition at line 77 of file Pending.h.

Referenced by percentComplete().

size_t zypp::solver::detail::Pending::_completed_size [private]

Definition at line 79 of file Pending.h.

Referenced by completedSize().

size_t zypp::solver::detail::Pending::_total_size [private]

Definition at line 80 of file Pending.h.

Referenced by totalSize().

time_t zypp::solver::detail::Pending::_start_time [private]

Definition at line 82 of file Pending.h.

Referenced by startTime().

time_t zypp::solver::detail::Pending::_last_time [private]

Definition at line 83 of file Pending.h.

Referenced by lastTime().

time_t zypp::solver::detail::Pending::_poll_time [private]

Definition at line 84 of file Pending.h.

Referenced by pollTime().

int zypp::solver::detail::Pending::_retval [private]

Definition at line 86 of file Pending.h.

char* zypp::solver::detail::Pending::_error_msg [private]

Definition at line 87 of file Pending.h.

Referenced by latestMessage().

std::list<const char *> zypp::solver::detail::Pending::_messages [private]

Definition at line 89 of file Pending.h.

Referenced by messages().

void(* zypp::solver::detail::Pending::_update)(Pending_Ptr) [private]

void(* zypp::solver::detail::Pending::_complete)(Pending_Ptr) [private]

void(* zypp::solver::detail::Pending::_message)(Pending_Ptr) [private]


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:26 2007 for libzypp by  doxygen 1.5.3