Esempio n. 1
0
File: main.cpp Progetto: nrj123/pvb
int pvbinit()
{
  char *argv[] = {"pvbrowser", ""};
  wsa(); // init windows sockets
  init(1,argv);
  return 0;
}
Esempio n. 2
0
int main(int argc, char *argv[])
{
  Q_INIT_RESOURCE(pvbrowser);
#ifdef USE_SYMBIAN
    //display args in debug console
    //printf are not visible with default settings
    int i;
    qDebug()<<"v: 0.5";//to see if really the app havebeen replaced on debug device
    for(i=0;i<argc;i++){
        qDebug()<<"ARG["<<i<<"]: "<<argv[i];
    }
#endif
  wsa(); // init windows sockets
  QApplication app(argc, argv);
  QPixmap pm(splash);
  QSplashScreen *splash = new QSplashScreen(pm);
  splash->show();
  init(argc,argv);
  perhapsSetFont(app);
  QIcon appIcon(":/images/app.png");
  app.setWindowIcon(appIcon);
  MainWindow mainWin;
  app.processEvents();
  splash->finish(&mainWin);
  delete splash;
  mainWin.show();
  mainWin.showBusyWidget(2000,"Starting...");
  app.processEvents();
  mainWin.slotReconnect();
  mainWin.slotTimeOut();
  mainWin.mythread.start(QThread::HighestPriority);
  mainWin.hideBusyWidget();
  return app.exec();
}
Esempio n. 3
0
File: main.cpp Progetto: nrj123/pvb
int main(int argc, char *argv[])
{
  Q_INIT_RESOURCE(pvbrowser);

  wsa(); // init windows sockets
  QApplication app(argc, argv);
  QPixmap pm(splash);
  QSplashScreen *splash = new QSplashScreen(pm);
  splash->show();
  init(argc,argv);
  perhapsSetFont(app);
  QIcon appIcon(":/images/app.png");
  app.setWindowIcon(appIcon);
  MainWindow mainWin;
  app.processEvents();
  splash->finish(&mainWin);
  delete splash;
  mainWin.show();
  app.processEvents();
  mainWin.slotReconnect();
  mainWin.slotTimeOut();
  mainWin.mythread.start(QThread::HighestPriority);
  return app.exec();
}