|
CARDS 2.3.99
Package manager for the NuTyX GNU/Linux distribution
|
GUI interfacing wrapper for CARDS. More...
#include <cards_wrapper.h>
Public Member Functions | |
| void | kill () |
| Kill the singleton. More... | |
| void | subscribeToEvents (Cards_event_handler *pCallBack) |
| Suscribe to CARDS events. More... | |
| void | unsubscribeFromEvents (Cards_event_handler *pCallBack) |
| Unsuscribe from CARDS Events. More... | |
| void | refreshPackageList () |
| list of installed packages More... | |
| void | printCardsVersion () |
| Get CARDS Version. More... | |
| void | sync () |
| Sync CARDS database. More... | |
| void | doJobList () |
| const vector< Cards_package * > & | getPackageList () |
| Cards_package * | getPackage (const string &pName) |
| void | refreshJobList () |
| const vector< Cards_package * > & | getJobList () |
| void | JoinThreads () |
Static Public Member Functions | |
| static Cards_wrapper * | instance () |
| Return or create the singleton. More... | |
GUI interfacing wrapper for CARDS.
This class ensure interface cards with GUI application need non-blocking operation, This is a single instance (singleton) that ensure only one instance of cards library.
| void Cards_wrapper::doJobList | ( | ) |
Create a new thread for Cards Sync operation
|
static |
Return or create the singleton.
This static method create the singleton if not yet done
Return or create singleton instance
| void Cards_wrapper::kill | ( | ) |
Kill the singleton.
if exist, delete instance of the singleton
Destruction of the singleton , only if instance exist
| void Cards_wrapper::printCardsVersion | ( | ) |
Get CARDS Version.
Return CARDS Library version
MiscGet and print the libcards Version
| void Cards_wrapper::refreshPackageList | ( | ) |
list of installed packages
Return list of installed packages
Create a new thread for Cards Sync operation
| void Cards_wrapper::subscribeToEvents | ( | Cards_event_handler * | pCallBack | ) |
Suscribe to CARDS events.
Record callback from client class which submit callback from Card lib
| void Cards_wrapper::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_wrapper::unsubscribeFromEvents | ( | Cards_event_handler * | pCallBack | ) |
Unsuscribe from CARDS Events.
Remove an event suscriber from event callback list.
Unsuscribe client class callbock form Suscribe list