2 This file is part of Faster Application Manager.
4 Faster Application Manager is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Faster Application Manager is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Faster Application Manager. If not, see <http://www.gnu.org/licenses/>.
17 (C) Heikki Holstila 2010
24 #include <QMainWindow>
25 #include <phonon/MediaObject>
26 #include "aaptinterface.h"
40 class MainWindow : public QMainWindow
44 Q_CLASSINFO("D-Bus Interface", "org.maemo.faster_application_manager")
48 enum nextOperation { OpNone, OpPromptSimulated, OpOpenPkgView };
50 explicit MainWindow(QWidget *parent = 0);
52 void operationQueueFinished(QList<AAptInterface::interfaceMode> lastModes, bool success, QString title, QStringList msgs);
53 void busyDialog(bool show_, QString title="", QString text="");
54 void closeEvent(QCloseEvent *event);
55 void GdkEventIconThemeReload();
56 void notifyDialog(QString title, QString msg);
57 bool confirmDialog(QString title, QString msg);
58 void resetIdlingTime() { iIdlingSince = QDateTime::currentDateTime(); }
59 void setNextOperation(nextOperation op_) { iNextOperation=op_; }
62 void on_btnUpdate_clicked();
64 Q_SCRIPTABLE int top_application();
68 void changeEvent(QEvent *e);
74 AAptInterface* iAptInterface;
75 DpkgInterface* iDpkgInterface;
76 PackageView* iWinPackageView;
77 RepoView* iWinRepoView;
80 //operation iOperation;
82 bool iReposAutoUpdating;
83 bool iUpgradeAutoUpdate;
84 nextOperation iNextOperation;
85 Phonon::MediaObject* iMediaObject;
87 QDateTime iIdlingSince;
90 void on_actionLoad_file_triggered();
91 void on_actionOptions_triggered();
92 void on_actionView_log_triggered();
93 void on_btnRepos_clicked();
94 void on_actionClean_triggered();
95 void on_actionAbout_triggered();
96 void on_btnUpgrade_clicked();
97 void on_btnListInstallable_clicked();
98 void on_btnListInstalled_clicked();
101 #endif // MAINWINDOW_H