summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/main.cpp
blob: f989f3032c41b8ddc203f9876444043ce6043b6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#include "mainwindow.h"

#include <qpe/qpeapplication.h>
#include <qstring.h>
#include <unistd.h>
int debugLevel;

int main( int argc, char ** argv )
{
	setpgid(0,0);
  printf("This is oipkg\n");
  printf("$Id$\n");
  debugLevel = 2;
  if (argc > 1)
  {
      debugLevel = QString ( argv[1] ).toInt();
    	qDebug("setting debug level to %i",debugLevel);
  }
  QPEApplication a( argc, argv );
  MainWindow mw;
//  if (argc > 2)
//		QMessageBox::information( &mw, "oipkg","While ipkg is working\noipkg is hanging.\nPlease be patient!");
  a.showMainDocumentWidget( &mw );
  return a.exec();
}