void Recepcjonista::on_Recepcjonista_tabBarClicked(int index) { switch(index) { case 0: { readClients(); break; } case 1: { break; } case 2: { break; } case 3: { break; } case 4: { break; } case 5: { break; } case 6: { break; } } }
void Application::newInstanceConnected() { DEBUG_LOG(("Application Info: new local socket connected")); for (QLocalSocket *client = server.nextPendingConnection(); client; client = server.nextPendingConnection()) { clients.push_back(ClientSocket(client, QByteArray())); connect(client, SIGNAL(readyRead()), this, SLOT(readClients())); connect(client, SIGNAL(disconnected()), this, SLOT(removeClients())); } }
void Recepcjonista::on_dodaj_klienta_Button_clicked() { addClient(); readClients(); }