void KSMServer::interactRequest( KSMClient* client, int /*dialogType*/ ) { if ( state == Shutdown ) client->pendingInteraction = true; else SmsInteract( client->connection() ); handlePendingInteractions(); }
static void xsmp_interact (GsmClient *client) { GsmXSMPClient *xsmp = (GsmXSMPClient *) client; g_debug ("GsmXSMPClient: xsmp_interact ('%s')", xsmp->priv->description); SmsInteract (xsmp->priv->conn); }
void KSMServer::handlePendingInteractions() { if ( clientInteracting ) return; for ( KSMClient* c = clients.first(); c; c = clients.next() ) { if ( c->pendingInteraction ) { clientInteracting = c; c->pendingInteraction = false; break; } } if ( clientInteracting ) { endProtection(); SmsInteract( clientInteracting->connection() ); } else { startProtection(); } }