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);
51 virtual ~MainWindow();
53 void operationQueueFinished(QList<AAptInterface::interfaceMode> lastModes, bool success, QString title, QStringList msgs);
54 void busyDialog(bool show_, QString title="", QString text="");
55 void closeEvent(QCloseEvent *event);
56 void GdkEventIconThemeReload();
57 void notifyDialog(QString title, QString msg);
58 bool confirmDialog(QString title, QString msg);
59 void setNextOperation(nextOperation op_) { iNextOperation=op_; }
61 void on_btnUpdate_clicked();
62 void resizeEvent(QResizeEvent* event);
65 void orientationChanged();
67 Q_SCRIPTABLE int top_application();
71 void changeEvent(QEvent *e);
74 MainWindow(const MainWindow& old);
75 MainWindow operator= (const MainWindow& old);
81 AAptInterface* iAptInterface;
82 DpkgInterface* iDpkgInterface;
83 PackageView* iWinPackageView;
84 RepoView* iWinRepoView;
87 //operation iOperation;
89 bool iReposAutoUpdating;
90 bool iUpgradeAutoUpdate;
91 nextOperation iNextOperation;
92 Phonon::MediaObject* iMediaObject;
94 void on_btnRepos_clicked();
95 void on_btnUpgrade_clicked();
96 void on_btnListInstallable_clicked();
97 void on_btnListInstalled_clicked();
100 void on_listWidget_itemClicked(QListWidgetItem* item);
101 void on_actionLoad_file_triggered();
102 void on_actionOptions_triggered();
103 void on_actionView_log_triggered();
104 void on_actionClean_triggered();
105 void on_actionAbout_triggered();
108 #endif // MAINWINDOW_H