4 * Copyright (c) 2007 VOROSKOI Andras <voroskoi@frugalware.org>
6 * Copyright: See COPYING file that comes with this distribution.
11 #include <qapplication.h>
15 #include <sys/types.h>
18 #include "mainwidget.h"
20 KFPM::KFPM(int & argc
, char ** argv
) : QApplication(argc
, argv
)
22 MainWidget
*w
= new MainWidget();
23 connect(this, SIGNAL(lastWindowClosed()), this, SLOT(quit()) );
26 QTimer
*t
= new QTimer(w
);
27 connect( t
, SIGNAL(timeout()), w
, SLOT(slot_initialize()) );
31 int main( int argc
, char **argv
)
33 uid_t uid
= geteuid();
35 std::cout
<< "You have to be root to run kfpm.\n";
38 return KFPM(argc
, argv
).exec();