summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/installdlgimpl.h
Side-by-side diff
Diffstat (limited to 'noncore/settings/aqpkg/installdlgimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/installdlgimpl.h38
1 files changed, 28 insertions, 10 deletions
diff --git a/noncore/settings/aqpkg/installdlgimpl.h b/noncore/settings/aqpkg/installdlgimpl.h
index 2f80f08..4c9f087 100644
--- a/noncore/settings/aqpkg/installdlgimpl.h
+++ b/noncore/settings/aqpkg/installdlgimpl.h
@@ -17,51 +17,69 @@
#ifndef INSTALLDLGIMPL_H
#define INSTALLDLGIMPL_H
#include <vector>
using namespace std;
+#include <qwidget.h>
#include <qstring.h>
-#include "ipkg.h"
-#include "install.h"
+class QComboBox;
+class QLabel;
+class QMultiLineEdit;
+class QPushButton;
+
+class DataManager;
+class Destination;
+class Ipkg;
class InstallData
{
public:
QString option; // I - install, D - delete, R- reinstall U - upgrade
QString packageName;
Destination *destination;
bool recreateLinks;
};
-class InstallDlgImpl : public InstallDlg
+class InstallDlgImpl : public QWidget
{
+ Q_OBJECT
public:
- InstallDlgImpl( vector<InstallData> &packageList, DataManager *dataManager, QWidget * parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
- InstallDlgImpl( Ipkg *ipkg, QString initialText, QWidget * parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
+ InstallDlgImpl( vector<InstallData> &packageList, DataManager *dataManager, const char *title = 0 );
+ InstallDlgImpl( Ipkg *ipkg, QString initialText, const char *title = 0 );
~InstallDlgImpl();
- bool showDlg();
bool upgradeServer( QString &server );
-
protected:
private:
DataManager *dataMgr;
vector<InstallData> installList;
vector<InstallData> removeList;
vector<InstallData> updateList;
int flags;
Ipkg *pIpkg;
bool upgradePackages;
+
+ QComboBox *destination;
+ QPushButton *btnInstall;
+ QPushButton *btnOptions;
+ QMultiLineEdit *output;
+ QLabel *txtAvailableSpace;
- bool runIpkg( QString &option, const QString& package, const QString& dest, int flags );
+ void init( bool );
+
+ bool runIpkg( QString &option, const QString& package, const QString& dest, int flags );
- void optionsSelected();
- void installSelected();
+signals:
+ void reloadData( InstallDlgImpl * );
+
+public slots:
+ void optionsSelected();
+ void installSelected();
void displayText(const QString &text );
void displayAvailableSpace( const QString &text);
};
#endif