Exemplo n.º 1
0
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    ClientWindow w;
    w.show();


    return a.exec();
}
Exemplo n.º 2
0
	void
	RootWindow::onMapRequestEvent(
		xcb_map_request_event_t*	event)
	{
		printf("map_request on root; window=0x%08X\n", event->window);

		xcb_connection_t*		conn = mWindow.getConnection();
		ClientWindow*			client = new ClientWindow(mApp, conn, mScreen, mWindow.getWindow(), event->window);
		client->show();


		//xcb_map_window(conn, event->window);
		xcb_flush(conn);
	}
Exemplo n.º 3
0
int main(int argc, char** argv) {

  int mainResult = 0;

  Globals::initServices("localhost",1234);

  try {
    Globals::transport->open();

    try{

        CallResult result;

        Globals::networkService ->ping(result);
        if(result.resultCode == ResultCode::Success){
            cout<<"Ping task server ok.."<<endl;
        }else{
            cout<<"Ping task server fail!"<<endl;
        }


    } catch (SipescException & ex) {
        cout<<ex.errorCode<<","<<ex.why;
    }


    QApplication app(argc, argv);
    LoginDialog loginDialog;
    ClientWindow window;

 if( loginDialog.exec() != QDialog::Accepted){

     Globals::transport->close();
      return -1;
   }

    window.show();
    mainResult = app.exec();

    Globals::transport->close();



  } catch (TException& tx) {
    cout << "ERROR: " << tx.what() << endl;
  }

  return mainResult;
}