CARDS 2.4.87
Package manager for the NuTyX GNU/Linux distribution
|
Public Member Functions | |
void | kill () |
Kill the singleton. More... | |
void | subscribeToEvents (CEventHandler *pCallBack) |
Suscribe to CARDS events. More... | |
void | unsubscribeFromEvents (CEventHandler *pCallBack) |
Unsuscribe from CARDS Events. More... | |
void | refreshPackageList () |
list of installed packages More... | |
string | getCardsVersion () |
Get CARDS Version. More... | |
void | sync () |
Sync CARDS database. More... | |
void | doJobList () |
const vector< CPackage * > & | getPackageList () |
CPackage * | getPackage (const string &pName) |
void | refreshJobList () |
Update the job list. | |
const vector< CPackage * > & | getJobList () |
const set< string > & | getCollectionList () |
bool | isJobRunning () |
void | getPackageInfo (const string &pName) |
Static Public Member Functions | |
static CWrapper * | instance () |
Return or create the singleton. More... | |
Protected Member Functions | |
void | OnProgressInfo (int percent) |
void cards::CWrapper::doJobList | ( | ) |
Create a new thread for Cards Sync operation
string cards::CWrapper::getCardsVersion | ( | ) |
Get CARDS Version.
Return CARDS Library version
MiscGet and print the libcards Version
const vector< CPackage * > & cards::CWrapper::getJobList | ( | ) |
Return the current job list
|
static |
Return or create the singleton.
This static method create the singleton if not yet done
Return or create singleton instance
void cards::CWrapper::kill | ( | ) |
Kill the singleton.
if exist, delete instance of the singleton
Destruction of the singleton , only if instance exist
|
protectedvirtual |
Broadcast progress info event
Reimplemented from cards::CClientEvents.
void cards::CWrapper::refreshPackageList | ( | ) |
list of installed packages
Return list of installed packages
Create a new thread for Cards Sync operation
void cards::CWrapper::subscribeToEvents | ( | CEventHandler * | pCallBack | ) |
Suscribe to CARDS events.
Record callback from client class which submit callback from Card lib
void cards::CWrapper::sync | ( | ) |
Sync CARDS database.
Launch CARD Sync operation Callback is called when operation is done
Thread CallersCreate a new thread for Cards Sync operation
void cards::CWrapper::unsubscribeFromEvents | ( | CEventHandler * | pCallBack | ) |
Unsuscribe from CARDS Events.
Remove an event suscriber from event callback list.
Unsuscribe client class callbock form Suscribe list