#include <ReaderManager.h>
|
void | shutdown () |
| Shuts down the reader manager service.
|
|
|
void | init () |
| Initialize the reader manager service.
|
|
void | reset (ReaderManagerPluginType pType) |
| Resets the plugins matching the given type.
|
|
void | insert (const ReaderInfo &pReaderInfo, const QVariant &pData=QVariant()) |
| Insert a "virtual" card if plugin supports it.
|
|
void | shelve () |
| Shelve all cards that were shelved and inserted before.
|
|
void | startScanAll (bool pAutoConnect=true) |
| Starts a scan for all device types.
|
|
void | startScan (ReaderManagerPluginType pType, bool pAutoConnect=true) |
| Starts a scan for devices if registered plugin don't scan anytime.
|
|
void | stopScanAll (const QString &pError=QString()) |
| Stops scan for all device types.
|
|
void | stopScan (ReaderManagerPluginType pType, const QString &pError=QString()) |
| Stops started scan for devices.
|
|
bool | isInitialScanFinished () const |
|
virtual ReaderManagerPluginInfo | getPluginInfo (ReaderManagerPluginType pType) const |
|
virtual QList< ReaderInfo > | getReaderInfos (const ReaderFilter &pFilter=ReaderFilter()) const |
|
ReaderInfo | getReaderInfo (const QString &pReaderName) const |
|
void | updateReaderInfo (const QString &pReaderName) |
|
bool | isWorkerThread () const |
|
template<typename T > |
QMetaObject::Connection | callExecuteCommand (const std::function< QVariant()> &pFunc, const typename QtPrivate::FunctionPointer< T >::Object *pReceiver, T pSlot) |
| Executes a function on ReaderManager-Thread.
|
|
template<typename Func > |
void | callExecute (Func pFunc) |
| Executes a blocking function on ReaderManager-Thread.
|
|
template<typename T > |
QMetaObject::Connection | callCreateCardConnectionCommand (const QString &pReaderName, const typename QtPrivate::FunctionPointer< T >::Object *pReceiver, T pSlot) |
| Executes a command to create a CardConnection for a specified reader.
|
|
◆ ReaderManager()
ReaderManager::ReaderManager |
( |
| ) |
|
|
protected |
◆ ~ReaderManager()
ReaderManager::~ReaderManager |
( |
| ) |
|
|
overrideprotected |
◆ addMainThreadInit()
void ReaderManager::addMainThreadInit |
( |
const std::function< void()> & | pFunc | ) |
|
|
static |
◆ callCreateCardConnectionCommand()
QMetaObject::Connection governikus::ReaderManager::callCreateCardConnectionCommand |
( |
const QString & | pReaderName, |
|
|
const typename QtPrivate::FunctionPointer< T >::Object * | pReceiver, |
|
|
T | pSlot ) |
|
inline |
Executes a command to create a CardConnection for a specified reader.
- Parameter
-
◆ callExecute()
template<typename Func >
void governikus::ReaderManager::callExecute |
( |
Func | pFunc | ) |
|
|
inline |
Executes a blocking function on ReaderManager-Thread.
- Parameter
-
pFunc | Function that will be executed. |
◆ callExecuteCommand()
QMetaObject::Connection governikus::ReaderManager::callExecuteCommand |
( |
const std::function< QVariant()> & | pFunc, |
|
|
const typename QtPrivate::FunctionPointer< T >::Object * | pReceiver, |
|
|
T | pSlot ) |
|
inline |
Executes a function on ReaderManager-Thread.
- Parameter
-
pFunc | Function that will be executed. |
pReceiver | The receiver object. |
pSlot | The slot to receive ExecuteCommand. |
◆ fireCardInfoChanged
void governikus::ReaderManager::fireCardInfoChanged |
( |
const ReaderInfo & | pInfo | ) |
|
|
signal |
◆ fireCardInserted
void governikus::ReaderManager::fireCardInserted |
( |
const ReaderInfo & | pInfo | ) |
|
|
signal |
◆ fireCardRemoved
void governikus::ReaderManager::fireCardRemoved |
( |
const ReaderInfo & | pInfo | ) |
|
|
signal |
◆ fireInitialized
void governikus::ReaderManager::fireInitialized |
( |
| ) |
|
|
signal |
◆ fireInitialScanFinished
void governikus::ReaderManager::fireInitialScanFinished |
( |
| ) |
|
|
signal |
◆ firePluginAdded
void governikus::ReaderManager::firePluginAdded |
( |
const ReaderManagerPluginInfo & | pInfo | ) |
|
|
signal |
◆ fireReaderAdded
void governikus::ReaderManager::fireReaderAdded |
( |
const ReaderInfo & | pInfo | ) |
|
|
signal |
◆ fireReaderPropertiesUpdated
void governikus::ReaderManager::fireReaderPropertiesUpdated |
( |
const ReaderInfo & | pInfo | ) |
|
|
signal |
◆ fireReaderRemoved
void governikus::ReaderManager::fireReaderRemoved |
( |
const ReaderInfo & | pInfo | ) |
|
|
signal |
◆ fireStatusChanged
void governikus::ReaderManager::fireStatusChanged |
( |
const ReaderManagerPluginInfo & | pInfo | ) |
|
|
signal |
◆ getPluginInfo()
ReaderManagerPluginInfo ReaderManager::getPluginInfo |
( |
ReaderManagerPluginType | pType | ) |
const |
|
virtual |
◆ getReaderInfo()
ReaderInfo ReaderManager::getReaderInfo |
( |
const QString & | pReaderName | ) |
const |
◆ getReaderInfos()
◆ init()
void ReaderManager::init |
( |
| ) |
|
Initialize the reader manager service.
The thread is started and the plug-ins are initialized, too.
◆ insert()
void ReaderManager::insert |
( |
const ReaderInfo & | pReaderInfo, |
|
|
const QVariant & | pData = QVariant() ) |
Insert a "virtual" card if plugin supports it.
◆ isInitialScanFinished()
bool ReaderManager::isInitialScanFinished |
( |
| ) |
const |
◆ isResultType()
static bool governikus::ReaderManager::isResultType |
( |
const QVariant & | pResult | ) |
|
|
inlinestatic |
◆ isWorkerThread()
bool governikus::ReaderManager::isWorkerThread |
( |
| ) |
const |
|
inline |
◆ reset()
void ReaderManager::reset |
( |
ReaderManagerPluginType | pType | ) |
|
Resets the plugins matching the given type.
◆ shelve()
void ReaderManager::shelve |
( |
| ) |
|
Shelve all cards that were shelved and inserted before.
◆ shutdown
void ReaderManager::shutdown |
( |
| ) |
|
|
slot |
Shuts down the reader manager service.
The thread is terminated and the plug-ins are unloaded.
◆ startScan()
void ReaderManager::startScan |
( |
ReaderManagerPluginType | pType, |
|
|
bool | pAutoConnect = true ) |
Starts a scan for devices if registered plugin don't scan anytime.
◆ startScanAll()
void ReaderManager::startScanAll |
( |
bool | pAutoConnect = true | ) |
|
Starts a scan for all device types.
◆ stopScan()
void ReaderManager::stopScan |
( |
ReaderManagerPluginType | pType, |
|
|
const QString & | pError = QString() ) |
Stops started scan for devices.
Be aware that some plugins don't finish the whole scan if you abort it with stopScan!
◆ stopScanAll()
void ReaderManager::stopScanAll |
( |
const QString & | pError = QString() | ) |
|
Stops scan for all device types.
◆ updateReaderInfo()
void ReaderManager::updateReaderInfo |
( |
const QString & | pReaderName | ) |
|
◆ Env
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: