transmitCallback callback, void *userParam);
bool selectNext() { return false; }
- void closeSync()
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorSecurity &, ErrorIllegalParameter &);
- int transmitSync(const ByteArray &command, ByteArray &result)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ void closeSync();
+ int transmitSync(const ByteArray &command, ByteArray &result);
void *getHandle() { return handle; }
GAsyncResult *res, gpointer user_data);
public:
- void closeSessions()
- throw(ErrorIO &, ErrorIllegalState &);
+ void closeSessions();
int openSession(openSessionCallback callback, void *userData);
- SessionHelper *openSessionSync()
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ SessionHelper *openSessionSync();
void *getHandle() { return handle; }
bool parseReaderInformation(unsigned int count, const ByteArray &data);
bool parseReaderInformation(GVariant *variant);
- bool _initialize()
- throw(ErrorIO &);
- bool initialize(void *context, serviceConnected handler)
- throw(ErrorIO &, ErrorIllegalParameter &);
- bool initialize(void *context, SEServiceListener *listener)
- throw(ErrorIO &, ErrorIllegalParameter &);
- int _initialize_sync()
- throw(ErrorIO &, ExceptionBase &);
+ bool _initialize();
+ bool initialize(void *context, serviceConnected handler);
+ bool initialize(void *context, SEServiceListener *listener);
+ int _initialize_sync();
int _initialize_sync_do_not_throw_exception();
- bool initializeSync(void *context)
- throw(ErrorIO &, ErrorIllegalParameter &, ExceptionBase &);
+ bool initializeSync(void *context);
static void reader_inserted(GObject *source_object,
guint reader_id, gchar *reader_name,
GAsyncResult *res, gpointer user_data);
public:
- SEService(void *user_data, serviceConnected handler)
- throw(ErrorIO &, ErrorIllegalParameter &);
- SEService(void *user_data, SEServiceListener *listener)
- throw(ErrorIO &, ErrorIllegalParameter &);
- SEService(void *user_data)
- throw(ErrorIO &, ErrorIllegalParameter &, ExceptionBase &);
+ SEService(void *user_data, serviceConnected handler);
+ SEService(void *user_data, SEServiceListener *listener);
+ SEService(void *user_data);
~SEService();
void setEventHandler(se_service_event_cb cb, void *context);
int openChannel(int id, const ByteArray &aid, openChannelCallback callback, void *userData);
- Channel *openChannelSync(int id, const ByteArray &aid)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ Channel *openChannelSync(int id, const ByteArray &aid);
- Channel *openChannelSync(int id, const ByteArray &aid, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ Channel *openChannelSync(int id, const ByteArray &aid, unsigned char P2);
static void session_get_atr_cb(GObject *source_object,
GAsyncResult *res, gpointer user_data);
GAsyncResult *res, gpointer user_data);
public:
- void closeChannels()
- throw(ErrorIO &, ErrorIllegalState &);
+ void closeChannels();
int getATR(getATRCallback callback, void *userData);
int close(closeSessionCallback callback, void *userData);
int openLogicalChannel(const ByteArray &aid, openChannelCallback callback, void *userData);
int openLogicalChannel(const unsigned char *aid, unsigned int length, openChannelCallback callback, void *userData);
- const ByteArray getATRSync()
- throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
- ErrorIllegalState &, ErrorIllegalParameter &);
+ const ByteArray getATRSync();
- void closeSync()
- throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
- ErrorIllegalState &, ErrorIllegalParameter &);
+ void closeSync();
- Channel *openBasicChannelSync(const ByteArray &aid)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ Channel *openBasicChannelSync(const ByteArray &aid);
- Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length);
- Channel *openLogicalChannelSync(const ByteArray &aid)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ Channel *openLogicalChannelSync(const ByteArray &aid);
- Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length);
- Channel *openBasicChannelSync(const ByteArray &aid, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ Channel *openBasicChannelSync(const ByteArray &aid, unsigned char P2);
- Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2);
- Channel *openLogicalChannelSync(const ByteArray &aid, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ Channel *openLogicalChannelSync(const ByteArray &aid, unsigned char P2);
- Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &);
+ Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2);
size_t getChannelCount() const;
void *getHandle() { return handle; }
}
void ClientChannel::closeSync()
- throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
- ErrorIllegalState &, ErrorIllegalParameter &)
{
if (isClosed() == false)
{
}
int ClientChannel::transmitSync(const ByteArray &command, ByteArray &result)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
int rv = SCARD_ERROR_OK;
}
void Reader::closeSessions()
- throw(ErrorIO &, ErrorIllegalState &)
{
size_t i;
}
SessionHelper *Reader::openSessionSync()
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
Session *session = NULL;
}
SEService::SEService(void *user_data, serviceConnected handler)
- throw(ErrorIO &, ErrorIllegalParameter &) :
- SEServiceHelper(), handle(-1), context(NULL), listener(NULL),
+ : SEServiceHelper(), handle(-1), context(NULL), listener(NULL),
event_handler(NULL), event_handler_context(NULL),
proxy(NULL), version(VERSION)
{
}
SEService::SEService(void *user_data, SEServiceListener *listener)
- throw(ErrorIO &, ErrorIllegalParameter &) :
- SEServiceHelper(), handle(-1), handler(NULL),
+ : SEServiceHelper(), handle(-1), handler(NULL),
event_handler(NULL), event_handler_context(NULL),
proxy(NULL), version(VERSION)
{
}
SEService::SEService(void *user_data)
- throw(ErrorIO &, ErrorIllegalParameter &, ExceptionBase &) :
- SEServiceHelper(), handle(-1), handler(NULL), listener(NULL),
+ : SEServiceHelper(), handle(-1), handler(NULL), listener(NULL),
event_handler(NULL), event_handler_context(NULL),
proxy(NULL), version(VERSION)
{
}
}
- bool SEService::_initialize() throw(ErrorIO &)
+ bool SEService::_initialize()
{
bool result = false;
return result;
}
- int SEService::_initialize_sync() throw(ErrorIO &, ExceptionBase &)
+ int SEService::_initialize_sync()
{
gint result;
guint handle;
}
bool SEService::initialize(void *context, serviceConnected handler)
- throw(ErrorIO &, ErrorIllegalParameter &)
{
if (context == NULL)
{
}
bool SEService::initialize(void *context, SEServiceListener *listener)
- throw(ErrorIO &, ErrorIllegalParameter &)
{
if (context == NULL)
{
}
bool SEService::initializeSync(void *context)
- throw(ErrorIO &, ErrorIllegalParameter &, ExceptionBase &)
{
this->context = context;
channels.clear();
}
- void Session::closeChannels() throw(ErrorIO &, ErrorIllegalState &)
+ void Session::closeChannels()
{
size_t i;
}
const ByteArray Session::getATRSync()
- throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
- ErrorIllegalState &, ErrorIllegalParameter &)
{
ByteArray result;
}
void Session::closeSync()
- throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
- ErrorIllegalState &, ErrorIllegalParameter &)
{
if (isClosed() == false)
{
return count;
}
Channel *Session::openChannelSync(int id, const ByteArray &aid)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
return openChannelSync(id, aid, 0x00);
}
Channel *Session::openChannelSync(int id, const ByteArray &aid, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
Channel *channel = NULL;
}
Channel *Session::openBasicChannelSync(const ByteArray &aid)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
return openChannelSync(0, aid, 0x00);
}
Channel *Session::openBasicChannelSync(const ByteArray &aid, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
return openChannelSync(0, aid, P2);
}
Channel *Session::openBasicChannelSync(const unsigned char *aid, unsigned int length)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
ByteArray temp(aid, length);
}
Channel *Session::openBasicChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
ByteArray temp(aid, length);
}
Channel *Session::openLogicalChannelSync(const ByteArray &aid)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
return openChannelSync(1, aid, 0x00);
}
Channel *Session::openLogicalChannelSync(const ByteArray &aid, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
return openChannelSync(1, aid, P2);
}
Channel *Session::openLogicalChannelSync(const unsigned char *aid, unsigned int length)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
ByteArray temp(aid, length);
}
Channel *Session::openLogicalChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)
{
ByteArray temp(aid, length);