CARDS 2.4.87
Package manager for the NuTyX GNU/Linux distribution
cards::CWrapper Class Reference
Inheritance diagram for cards::CWrapper:
cards::CClientEvents

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 ()
 
CPackagegetPackage (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 CWrapperinstance ()
 Return or create the singleton. More...
 

Protected Member Functions

void OnProgressInfo (int percent)
 

Member Function Documentation

◆ doJobList()

void cards::CWrapper::doJobList ( )

Create a new thread for Cards Sync operation

◆ getCardsVersion()

string cards::CWrapper::getCardsVersion ( )

Get CARDS Version.

Return CARDS Library version

MiscGet and print the libcards Version

◆ getJobList()

const vector< CPackage * > & cards::CWrapper::getJobList ( )

Return the current job list

◆ instance()

CWrapper * cards::CWrapper::instance ( )
static

Return or create the singleton.

This static method create the singleton if not yet done

Returns
pointer of the singleton

Return or create singleton instance

◆ kill()

void cards::CWrapper::kill ( )

Kill the singleton.

if exist, delete instance of the singleton

Destruction of the singleton , only if instance exist

◆ OnProgressInfo()

void cards::CWrapper::OnProgressInfo ( int  percent)
protectedvirtual

Broadcast progress info event

Reimplemented from cards::CClientEvents.

◆ refreshPackageList()

void cards::CWrapper::refreshPackageList ( )

list of installed packages

Return list of installed packages

Create a new thread for Cards Sync operation

◆ subscribeToEvents()

void cards::CWrapper::subscribeToEvents ( CEventHandler pCallBack)

Suscribe to CARDS events.

Record callback from client class which submit callback from Card lib

◆ sync()

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

◆ unsubscribeFromEvents()

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


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