{
if (isClosed() == false)
{
- if (getSession()->getReader()->isSecureElementPresent() == true)
- {
+ if (getSession()->getReader()->isSecureElementPresent() == true) {
gint ret;
GError *error = NULL;
throw ErrorIO(SCARD_ERROR_IPC_FAILED);
}
- }
- else
- {
+ } else {
_INFO("unavailable channel");
}
}
{
int result = SCARD_ERROR_OK;
- if (isClosed() == false)
- {
- if (getSession()->getReader()->isSecureElementPresent() == true)
- {
+ if (isClosed() == false) {
+ if (getSession()->getReader()->isSecureElementPresent() == true) {
CallbackParam *param = new CallbackParam();
param->instance = this;
GPOINTER_TO_UINT(context),
GPOINTER_TO_UINT(handle), NULL,
&ClientChannel::channel_close_cb, param);
- }
- else
- {
+ } else {
_ERR("unavailable channel");
result = SCARD_ERROR_ILLEGAL_STATE;
}
{
int rv = SCARD_ERROR_OK;
- if (getSession()->getReader()->isSecureElementPresent() == true)
- {
+ if (getSession()->getReader()->isSecureElementPresent() == true) {
GVariant *var_command = NULL, *var_response = NULL;
GError *error = NULL;
GPOINTER_TO_UINT(handle),
var_command, &rv, &var_response,
NULL, &error) == true) {
-
if (rv == SCARD_ERROR_OK) {
GDBusHelper::convertVariantToByteArray(var_response, transmitResponse);
result = transmitResponse;
throw ErrorIO(SCARD_ERROR_IPC_FAILED);
}
- }
- else
- {
+ } else {
_ERR("unavailable channel");
throw ErrorIllegalState(SCARD_ERROR_UNAVAILABLE);
}
{
int result;
- if (getSession()->getReader()->isSecureElementPresent() == true)
- {
+ if (getSession()->getReader()->isSecureElementPresent() == true) {
GVariant *var_command;
CallbackParam *param = new CallbackParam();
&ClientChannel::channel_transmit_cb, param);
result = SCARD_ERROR_OK;
- }
- else
- {
+ } else {
_ERR("unavailable channel");
result = SCARD_ERROR_ILLEGAL_STATE;
}