Portuguese eID Middleware SDK  Version: 3.12.0
eIDMW::PTEID_SigningDeviceFactory Class Reference

#include <eidlib.h>

Public Member Functions

PTEIDSDK_API PTEID_SigningDevicegetSigningDevice (bool allowCC=true, bool allowCMD=true)
 

Static Public Member Functions

static PTEIDSDK_API PTEID_SigningDeviceFactoryinstance ()
 

Detailed Description

Singleton class - Factory used to obtain signing devices. Optionally, opens a dialog to let user choose signing device type.

Since
3.8.0

Member Function Documentation

◆ getSigningDevice()

PTEIDSDK_API PTEID_SigningDevice& eIDMW::PTEID_SigningDeviceFactory::getSigningDevice ( bool  allowCC = true,
bool  allowCMD = true 
)

Obtain a signing device.

At least one of the parameters must be true. Otherwise, PTEID_ExBadUsage is thrown. If multiple types were allowed, this method opens a dialog to choose the signing device type.

Parameters
allowCCallow to retrieve handle to PTEID_EIDCard
allowCMDallow to retrieve handle to PTEID_CMDSignatureDevice

◆ instance()

static PTEIDSDK_API PTEID_SigningDeviceFactory& eIDMW::PTEID_SigningDeviceFactory::instance ( )
static

Return the singleton object