CARDS 2.3.99
Package manager for the NuTyX GNU/Linux distribution
Cards_wrapper Class Reference

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_packagegetPackage (const string &pName)
 
void refreshJobList ()
 
const vector< Cards_package * > & getJobList ()
 
void JoinThreads ()
 

Static Public Member Functions

static Cards_wrapperinstance ()
 Return or create the singleton. More...
 

Detailed Description

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.

Member Function Documentation

◆ doJobList()

void Cards_wrapper::doJobList ( )

Create a new thread for Cards Sync operation

◆ instance()

Cards_wrapper * Cards_wrapper::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_wrapper::kill ( )

Kill the singleton.

if exist, delete instance of the singleton

Destruction of the singleton , only if instance exist

◆ printCardsVersion()

void Cards_wrapper::printCardsVersion ( )

Get CARDS Version.

Return CARDS Library version

MiscGet and print the libcards Version

◆ refreshPackageList()

void Cards_wrapper::refreshPackageList ( )

list of installed packages

Return list of installed packages

Create a new thread for Cards Sync operation

◆ subscribeToEvents()

void Cards_wrapper::subscribeToEvents ( Cards_event_handler pCallBack)

Suscribe to CARDS events.

Record callback from client class which submit callback from Card lib

◆ sync()

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

◆ unsubscribeFromEvents()

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


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