#include <Pending.h>
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 §ion) |
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 §ion) |
Definition at line 52 of file Pending.h.
enum zypp::solver::detail::Pending::PendingStatus [private] |
| 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.
| const char* zypp::solver::detail::Pending::pendingStatusToString | ( | PendingStatus | status | ) | [private] |
| string zypp::solver::detail::Pending::toString | ( | const Pending & | section | ) | [static] |
| virtual std::ostream& zypp::solver::detail::Pending::dumpOn | ( | std::ostream & | str | ) | const [virtual] |
| 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] |
| void zypp::solver::detail::Pending::setDescription | ( | const char * | description | ) | [inline] |
| int zypp::solver::detail::Pending::id | ( | void | ) | const [inline] |
| PendingStatus zypp::solver::detail::Pending::status | ( | void | ) | const [inline] |
| double zypp::solver::detail::Pending::percentComplete | ( | void | ) | const [inline] |
| size_t zypp::solver::detail::Pending::completedSize | ( | void | ) | const [inline] |
| size_t zypp::solver::detail::Pending::totalSize | ( | void | ) | const [inline] |
| time_t zypp::solver::detail::Pending::startTime | ( | void | ) | const [inline] |
| time_t zypp::solver::detail::Pending::lastTime | ( | void | ) | const [inline] |
| time_t zypp::solver::detail::Pending::pollTime | ( | void | ) | const [inline] |
| int zypp::solver::detail::Pending::elapsedSecs | ( | void | ) | const [inline] |
| int zypp::solver::detail::Pending::expectedSecs | ( | void | ) | const [inline] |
| int zypp::solver::detail::Pending::remainingSecs | ( | void | ) | const [inline] |
| std::list<const char *> zypp::solver::detail::Pending::messages | ( | void | ) | const [inline] |
| const char* zypp::solver::detail::Pending::latestMessage | ( | void | ) | const [inline] |
| 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 | ) |
| std::ostream& operator<< | ( | std::ostream & | , | |
| const Pending & | section | |||
| ) | [friend] |
char* zypp::solver::detail::Pending::_description [private] |
int zypp::solver::detail::Pending::_id [private] |
double zypp::solver::detail::Pending::_percent_complete [private] |
size_t zypp::solver::detail::Pending::_completed_size [private] |
size_t zypp::solver::detail::Pending::_total_size [private] |
time_t zypp::solver::detail::Pending::_start_time [private] |
time_t zypp::solver::detail::Pending::_last_time [private] |
time_t zypp::solver::detail::Pending::_poll_time [private] |
int zypp::solver::detail::Pending::_retval [private] |
char* zypp::solver::detail::Pending::_error_msg [private] |
std::list<const char *> zypp::solver::detail::Pending::_messages [private] |
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] |
1.5.3