summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/main.cpp
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/main.cpp b/noncore/settings/aqpkg/main.cpp
index 066d79f..b7f8b7b 100644
--- a/noncore/settings/aqpkg/main.cpp
+++ b/noncore/settings/aqpkg/main.cpp
@@ -1,15 +1,15 @@
1/* 1/*
2                This file is part of the OPIE Project 2                This file is part of the OPIE Project
3 3
4 =. Copyright (c) 2002 Andy Qua <andy.qua@blueyonder.co.uk> 4 =. Copyright (c) 2002 Andy Qua <andy.qua@blueyonder.co.uk>
5             .=l. Dan Williams <drw@handhelds.org> 5             .=l. Dan Williams <drw@handhelds.org>
6           .>+-= 6           .>+-=
7 _;:,     .>    :=|. This file is free software; you can 7 _;:,     .>    :=|. This file is free software; you can
8.> <`_,   >  .   <= redistribute it and/or modify it under 8.> <`_,   >  .   <= redistribute it and/or modify it under
9:`=1 )Y*s>-.--   : the terms of the GNU General Public 9:`=1 )Y*s>-.--   : the terms of the GNU General Public
10.="- .-=="i,     .._ License as published by the Free Software 10.="- .-=="i,     .._ License as published by the Free Software
11 - .   .-<_>     .<> Foundation; either version 2 of the License, 11 - .   .-<_>     .<> Foundation; either version 2 of the License,
12     ._= =}       : or (at your option) any later version. 12     ._= =}       : or (at your option) any later version.
13    .%`+i>       _;_. 13    .%`+i>       _;_.
14    .i_,=:_.      -<s. This file is distributed in the hope that 14    .i_,=:_.      -<s. This file is distributed in the hope that
15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
@@ -33,37 +33,44 @@
33#else 33#else
34#include <qapplication.h> 34#include <qapplication.h>
35#endif 35#endif
36 36
37#include <qobjectdefs.h> 37#include <qobjectdefs.h>
38 38
39#include "mainwin.h" 39#include "mainwin.h"
40#include "server.h" 40#include "server.h"
41 41
42#include "global.h" 42#include "global.h"
43 43
44 44
45/* be less intrusive for translation -zecke */
46extern QString LOCAL_SERVER;
47extern QString LOCAL_IPKGS;
48
45int main(int argc, char *argv[]) 49int main(int argc, char *argv[])
46{ 50{
47#ifdef QWS 51#ifdef QWS
48 QPEApplication a( argc, argv ); 52 QPEApplication a( argc, argv );
49#else 53#else
50 QApplication a( argc, argv ); 54 QApplication a( argc, argv );
51#endif 55#endif
52 56
53#ifdef QWS 57#ifdef QWS
54 // Disable suspend mode 58 // Disable suspend mode
55 QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::DisableSuspend; 59 QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::DisableSuspend;
56#endif 60#endif
57 61
62 LOCAL_SERVER = QObject::tr( "Installed packages" );
63 LOCAL_IPKGS = QObject::tr( "Local packages" );
64
58 MainWindow *win = new MainWindow(); 65 MainWindow *win = new MainWindow();
59 a.setMainWidget(win); 66 a.setMainWidget(win);
60 win->showMaximized(); 67 win->showMaximized();
61 68
62 a.exec(); 69 a.exec();
63 70
64#ifdef QWS 71#ifdef QWS
65 // Reenable suspend mode 72 // Reenable suspend mode
66 QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::Enable; 73 QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::Enable;
67#endif 74#endif
68 #ifdef _DEBUG 75 #ifdef _DEBUG
69 DumpUnfreed(); 76 DumpUnfreed();