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 setNextOperation(nextOperation op_) { iNextOperation=op_; }
60 void on_btnUpdate_clicked();
63 void orientationChanged();
65 Q_SCRIPTABLE int top_application();
69 void changeEvent(QEvent *e);
76 AAptInterface* iAptInterface;
77 DpkgInterface* iDpkgInterface;
78 PackageView* iWinPackageView;
79 RepoView* iWinRepoView;
82 //operation iOperation;
84 bool iReposAutoUpdating;
85 bool iUpgradeAutoUpdate;
86 nextOperation iNextOperation;
87 Phonon::MediaObject* iMediaObject;
89 void on_btnRepos_clicked();
90 void on_btnUpgrade_clicked();
91 void on_btnListInstallable_clicked();
92 void on_btnListInstalled_clicked();
95 void on_listWidget_itemClicked(QListWidgetItem* item);
96 void on_actionLoad_file_triggered();
97 void on_actionOptions_triggered();
98 void on_actionView_log_triggered();
99 void on_actionClean_triggered();
100 void on_actionAbout_triggered();
103 #endif // MAINWINDOW_H