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 openNetworkConnection();
55 void operationQueueFinished(QList<AAptInterface::interfaceMode> lastModes, bool success, QString title, QStringList msgs);
56 void busyDialog(bool show_, QString title="", QString text="");
57 void closeEvent(QCloseEvent *event);
58 void GdkEventIconThemeReload();
59 void notifyDialog(QString title, QString msg);
60 bool confirmDialog(QString title, QString msg);
61 void setNextOperation(nextOperation op_) { iNextOperation=op_; }
63 void on_btnUpdate_clicked();
64 void resizeEvent(QResizeEvent* event);
67 void orientationChanged();
69 Q_SCRIPTABLE int top_application();
73 void changeEvent(QEvent *e);
76 MainWindow(const MainWindow& old);
77 MainWindow operator= (const MainWindow& old);
81 void rescaleMenuView();
84 AAptInterface* iAptInterface;
85 DpkgInterface* iDpkgInterface;
86 PackageView* iWinPackageView;
87 RepoView* iWinRepoView;
90 //operation iOperation;
92 bool iReposAutoUpdating;
93 bool iUpgradeAutoUpdate;
94 nextOperation iNextOperation;
95 Phonon::MediaObject* iMediaObject;
96 QNetworkSession* iNetworkSession;
97 QNetworkConfigurationManager* iNetworkConfigurationManager;
99 void on_btnRepos_clicked();
100 void on_btnUpgrade_clicked();
101 void on_btnListInstallable_clicked();
102 void on_btnListInstalled_clicked();
105 void on_listWidget_itemClicked(QListWidgetItem* item);
106 void on_actionLoad_file_triggered();
107 void on_actionOptions_triggered();
108 void on_actionView_log_triggered();
109 void on_actionClean_triggered();
110 void on_actionAbout_triggered();
113 #endif // MAINWINDOW_H