AusweisApp2
governikus::PcscUtils Klassenreferenz

#include <PcscUtils.h>

Öffentliche Typen

enum  PcscReturnCode : PCSC_RETURNCODE {
  Scard_S_Success = static_cast<PCSC_RETURNCODE>(SCARD_S_SUCCESS) , Scard_F_Internal_Error = static_cast<PCSC_RETURNCODE>(SCARD_F_INTERNAL_ERROR) , Scard_E_Cancelled = static_cast<PCSC_RETURNCODE>(SCARD_E_CANCELLED) , Scard_E_Invalid_Handle = static_cast<PCSC_RETURNCODE>(SCARD_E_INVALID_HANDLE) ,
  Scard_E_Invalid_Parameter = static_cast<PCSC_RETURNCODE>(SCARD_E_INVALID_PARAMETER) , Scard_E_Invalid_Target = static_cast<PCSC_RETURNCODE>(SCARD_E_INVALID_TARGET) , Scard_E_No_Memory = static_cast<PCSC_RETURNCODE>(SCARD_E_NO_MEMORY) , Scard_F_Waited_Too_Long = static_cast<PCSC_RETURNCODE>(SCARD_F_WAITED_TOO_LONG) ,
  Scard_E_Insufficient_Buffer = static_cast<PCSC_RETURNCODE>(SCARD_E_INSUFFICIENT_BUFFER) , Scard_E_Unknown_Reader = static_cast<PCSC_RETURNCODE>(SCARD_E_UNKNOWN_READER) , Scard_E_Timeout = static_cast<PCSC_RETURNCODE>(SCARD_E_TIMEOUT) , Scard_E_Sharing_Violation = static_cast<PCSC_RETURNCODE>(SCARD_E_SHARING_VIOLATION) ,
  Scard_E_No_Smartcard = static_cast<PCSC_RETURNCODE>(SCARD_E_NO_SMARTCARD) , Scard_E_Unknown_Card = static_cast<PCSC_RETURNCODE>(SCARD_E_UNKNOWN_CARD) , Scard_E_Cant_Dispose = static_cast<PCSC_RETURNCODE>(SCARD_E_CANT_DISPOSE) , Scard_E_Proto_Mismatch = static_cast<PCSC_RETURNCODE>(SCARD_E_PROTO_MISMATCH) ,
  Scard_E_Not_Ready = static_cast<PCSC_RETURNCODE>(SCARD_E_NOT_READY) , Scard_E_Invalid_Value = static_cast<PCSC_RETURNCODE>(SCARD_E_INVALID_VALUE) , Scard_E_System_Cancelled = static_cast<PCSC_RETURNCODE>(SCARD_E_SYSTEM_CANCELLED) , Scard_F_Comm_Error = static_cast<PCSC_RETURNCODE>(SCARD_F_COMM_ERROR) ,
  Scard_F_Unknown_Error = static_cast<PCSC_RETURNCODE>(SCARD_F_UNKNOWN_ERROR) , Scard_E_Invalid_Atr = static_cast<PCSC_RETURNCODE>(SCARD_E_INVALID_ATR) , Scard_E_Not_Transacted = static_cast<PCSC_RETURNCODE>(SCARD_E_NOT_TRANSACTED) , Scard_E_Reader_Unavailable = static_cast<PCSC_RETURNCODE>(SCARD_E_READER_UNAVAILABLE) ,
  Scard_P_Shutdown = static_cast<PCSC_RETURNCODE>(SCARD_P_SHUTDOWN) , Scard_E_Pci_Too_Small = static_cast<PCSC_RETURNCODE>(SCARD_E_PCI_TOO_SMALL) , Scard_E_Reader_Unsupported = static_cast<PCSC_RETURNCODE>(SCARD_E_READER_UNSUPPORTED) , Scard_E_Duplicate_Reader = static_cast<PCSC_RETURNCODE>(SCARD_E_DUPLICATE_READER) ,
  Scard_E_Card_Unsupported = static_cast<PCSC_RETURNCODE>(SCARD_E_CARD_UNSUPPORTED) , Scard_E_No_Service = static_cast<PCSC_RETURNCODE>(SCARD_E_NO_SERVICE) , Scard_E_Service_Stopped = static_cast<PCSC_RETURNCODE>(SCARD_E_SERVICE_STOPPED) , Scard_E_Unsupported_Feature = static_cast<PCSC_RETURNCODE>(SCARD_E_UNSUPPORTED_FEATURE) ,
  Scard_E_Unexpected = static_cast<PCSC_RETURNCODE>(SCARD_E_UNEXPECTED) , Scard_E_Icc_Installation = static_cast<PCSC_RETURNCODE>(SCARD_E_ICC_INSTALLATION) , Scard_E_Icc_Createorder = static_cast<PCSC_RETURNCODE>(SCARD_E_ICC_CREATEORDER) , Scard_E_Dir_Not_Found = static_cast<PCSC_RETURNCODE>(SCARD_E_DIR_NOT_FOUND) ,
  Scard_E_File_Not_Found = static_cast<PCSC_RETURNCODE>(SCARD_E_FILE_NOT_FOUND) , Scard_E_No_Dir = static_cast<PCSC_RETURNCODE>(SCARD_E_NO_DIR) , Scard_E_No_File = static_cast<PCSC_RETURNCODE>(SCARD_E_NO_FILE) , Scard_E_No_Access = static_cast<PCSC_RETURNCODE>(SCARD_E_NO_ACCESS) ,
  Scard_E_Write_Too_Many = static_cast<PCSC_RETURNCODE>(SCARD_E_WRITE_TOO_MANY) , Scard_E_Bad_Seek = static_cast<PCSC_RETURNCODE>(SCARD_E_BAD_SEEK) , Scard_E_Invalid_Chv = static_cast<PCSC_RETURNCODE>(SCARD_E_INVALID_CHV) , Scard_E_Unknown_Res_Mng = static_cast<PCSC_RETURNCODE>(SCARD_E_UNKNOWN_RES_MNG) ,
  Scard_E_No_Such_Certificate = static_cast<PCSC_RETURNCODE>(SCARD_E_NO_SUCH_CERTIFICATE) , Scard_E_Certificate_Unavailable = static_cast<PCSC_RETURNCODE>(SCARD_E_CERTIFICATE_UNAVAILABLE) , Scard_E_No_Readers_Available = static_cast<PCSC_RETURNCODE>(SCARD_E_NO_READERS_AVAILABLE) , Scard_E_Comm_Data_Lost = static_cast<PCSC_RETURNCODE>(SCARD_E_COMM_DATA_LOST) ,
  Scard_E_No_Key_Container = static_cast<PCSC_RETURNCODE>(SCARD_E_NO_KEY_CONTAINER) , Scard_E_Server_Too_Busy = static_cast<PCSC_RETURNCODE>(SCARD_E_SERVER_TOO_BUSY) , Scard_W_Unsupported_Card = static_cast<PCSC_RETURNCODE>(SCARD_W_UNSUPPORTED_CARD) , Scard_W_Unresponsive_Card = static_cast<PCSC_RETURNCODE>(SCARD_W_UNRESPONSIVE_CARD) ,
  Scard_W_Unpowered_Card = static_cast<PCSC_RETURNCODE>(SCARD_W_UNPOWERED_CARD) , Scard_W_Reset_Card = static_cast<PCSC_RETURNCODE>(SCARD_W_RESET_CARD) , Scard_W_Removed_Card = static_cast<PCSC_RETURNCODE>(SCARD_W_REMOVED_CARD) , Scard_W_Security_Violation = static_cast<PCSC_RETURNCODE>(SCARD_W_SECURITY_VIOLATION) ,
  Scard_W_Wrong_Chv = static_cast<PCSC_RETURNCODE>(SCARD_W_WRONG_CHV) , Scard_W_Chv_Blocked = static_cast<PCSC_RETURNCODE>(SCARD_W_CHV_BLOCKED) , Scard_W_Eof = static_cast<PCSC_RETURNCODE>(SCARD_W_EOF) , Scard_W_Cancelled_By_User = static_cast<PCSC_RETURNCODE>(SCARD_W_CANCELLED_BY_USER) ,
  Scard_W_Card_Not_Authenticated = static_cast<PCSC_RETURNCODE>(SCARD_W_CARD_NOT_AUTHENTICATED)
}
 

Öffentliche, statische Methoden

static QString toString (PCSC_RETURNCODE pCode)
 

Dokumentation der Aufzählungstypen

◆ PcscReturnCode

enum governikus::PcscUtils::PcscReturnCode : PCSC_RETURNCODE

Error codes from http://msdn.microsoft.com/en-us/library/aa924526.aspx

Aufzählungswerte
Scard_S_Success 

No error was encountered.

Scard_F_Internal_Error 

An internal consistency check failed.

Scard_E_Cancelled 

The action was cancelled by an SCardCancel request.

Scard_E_Invalid_Handle 

The supplied handle was invalid.

Scard_E_Invalid_Parameter 

One or more of the supplied parameters could not be properly interpreted.

Scard_E_Invalid_Target 

Registry startup information is missing or invalid.

Scard_E_No_Memory 

Not enough memory available to complete this command.

Scard_F_Waited_Too_Long 

An internal consistency timer has expired.

Scard_E_Insufficient_Buffer 

The data buffer to receive returned data is too small for the returned data.

Scard_E_Unknown_Reader 

The specified reader name is not recognized.

Scard_E_Timeout 

The user-specified timeout value has expired.

Scard_E_Sharing_Violation 

The smart card cannot be accessed because of other connections outstanding.

Scard_E_No_Smartcard 

The operation requires a Smart Card, but no Smart Card is currently in the device.

Scard_E_Unknown_Card 

The specified smart card name is not recognized.

Scard_E_Cant_Dispose 

The system could not dispose of the media in the requested manner.

Scard_E_Proto_Mismatch 

The requested protocols are incompatible with the protocol currently in use with the smart card.

Scard_E_Not_Ready 

The reader or smart card is not ready to accept commands.

Scard_E_Invalid_Value 

One or more of the supplied parameters values could not be properly interpreted.

Scard_E_System_Cancelled 

The action was cancelled by the system, presumably to log off or shut down.

Scard_F_Comm_Error 

An internal communications error has been detected.

Scard_F_Unknown_Error 

An internal error has been detected, but the source is unknown.

Scard_E_Invalid_Atr 

An ATR obtained from the registry is not a valid ATR string.

Scard_E_Not_Transacted 

An attempt was made to end a non-existent transaction.

Scard_E_Reader_Unavailable 

The specified reader is not currently available for use.

Scard_P_Shutdown 

The operation has been aborted to allow the server application to exit.

Scard_E_Pci_Too_Small 

The PCI Receive buffer was too small.

Scard_E_Reader_Unsupported 

The reader driver does not meet minimal requirements for support.

Scard_E_Duplicate_Reader 

The reader driver did not produce a unique reader name.

Scard_E_Card_Unsupported 

The smart card does not meet minimal requirements for support.

Scard_E_No_Service 

The Smart card resource manager is not running.

Scard_E_Service_Stopped 

The Smart card resource manager has shut down.

Scard_E_Unsupported_Feature 

This smart card does not support the requested feature.

Scard_E_Unexpected 

An unexpected card error has occurred.

Scard_E_Icc_Installation 

No primary provider can be found for the smart card.

Scard_E_Icc_Createorder 

The requested order of object creation is not supported.

Scard_E_Dir_Not_Found 

The identified directory does not exist in the smart card.

Scard_E_File_Not_Found 

The identified file does not exist in the smart card.

Scard_E_No_Dir 

The supplied path does not represent a smart card directory.

Scard_E_No_File 

The supplied path does not represent a smart card file.

Scard_E_No_Access 

Access is denied to this file.

Scard_E_Write_Too_Many 

The smart card does not have enough memory to store the information.

Scard_E_Bad_Seek 

There was an error trying to set the smart card file object pointer.

Scard_E_Invalid_Chv 

The supplied PIN is incorrect.

Scard_E_Unknown_Res_Mng 

An unrecognized error code was returned from a layered component.

Scard_E_No_Such_Certificate 

The requested certificate does not exist.

Scard_E_Certificate_Unavailable 

The requested certificate could not be obtained.

Scard_E_No_Readers_Available 

Cannot find a smart card reader.

Scard_E_Comm_Data_Lost 

A communications error with the smart card has been detected. Retry the operation.

Scard_E_No_Key_Container 

The requested key container does not exist on the smart card.

Scard_E_Server_Too_Busy 

The Smart Card Resource Manager is too busy to complete this operation.

Scard_W_Unsupported_Card 

The reader cannot communicate with the card, due to ATR string configuration conflicts.

Scard_W_Unresponsive_Card 

The smart card is not responding to a reset.

Scard_W_Unpowered_Card 

Power has been removed from the smart card, so that further communication is not possible.

Scard_W_Reset_Card 

The smart card has been reset, so any shared state information is invalid.

Scard_W_Removed_Card 

The smart card has been removed, so further communication is not possible.

Scard_W_Security_Violation 

Access was denied because of a security violation.

Scard_W_Wrong_Chv 

The card cannot be accessed because the wrong PIN was presented.

Scard_W_Chv_Blocked 

The card cannot be accessed because the maximum number of PIN entry attempts has been reached.

Scard_W_Eof 

The end of the smart card file has been reached.

Scard_W_Cancelled_By_User 

The user pressed "Cancel" on a Smart Card Selection Dialog.

Scard_W_Card_Not_Authenticated 

No PIN was presented to the smart card.

Dokumentation der Elementfunktionen

◆ toString()

QString PcscUtils::toString ( PCSC_RETURNCODE  pCode)
static
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: