aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/WebThemeInterfaceDialog.h
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2011-03-17 14:55:29 +0000
committerGravatar Szymon Tomasz Stefanek2011-03-17 14:55:29 +0000
commit51d1524d760f0b9946d2e41b66250faa96a23da4 (patch)
treec5eac07090d9cc431cd1da1e542c6d3a4e327c9c /src/modules/theme/WebThemeInterfaceDialog.h
parentChange spaces to tabs, reindent, simplify (diff)
downloadKVIrc-51d1524d760f0b9946d2e41b66250faa96a23da4.tar.gz
KVIrc-51d1524d760f0b9946d2e41b66250faa96a23da4.tar.bz2
KVIrc-51d1524d760f0b9946d2e41b66250faa96a23da4.zip
Start generalizing the web package management interface
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5618 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme/WebThemeInterfaceDialog.h')
-rw-r--r--src/modules/theme/WebThemeInterfaceDialog.h41
1 files changed, 12 insertions, 29 deletions
diff --git a/src/modules/theme/WebThemeInterfaceDialog.h b/src/modules/theme/WebThemeInterfaceDialog.h
index ed65cae97..d3d930e40 100644
--- a/src/modules/theme/WebThemeInterfaceDialog.h
+++ b/src/modules/theme/WebThemeInterfaceDialog.h
@@ -26,47 +26,30 @@
#include "kvi_settings.h"
-#if defined(COMPILE_WEBKIT_SUPPORT)
-#include <QDialog>
-#include <QtWebKit/QWebView>
-#include <QtWebKit/QWebFrame>
-#include <QWebElement>
-#include <QToolBar>
-#include <QFtp>
-#include <QUrl>
-#include <QFile>
-#include <QVBoxLayout>
-#include <QProgressBar>
-#include <QShowEvent>
+#ifdef COMPILE_WEBKIT_SUPPORT
-class WebThemeInterfaceDialog : public QWidget
+#include "KviWebPackageManagementDialog.h"
+
+
+class WebThemeInterfaceDialog : public KviWebPackageManagementDialog
{
Q_OBJECT
public:
WebThemeInterfaceDialog(QWidget *par=0);
~WebThemeInterfaceDialog();
+
private:
- QToolBar * m_pToolBar;
- QString m_szLocalTmpThemeCompletePath;
- QVBoxLayout *m_pLayout;
- QWebView * m_pWebView;
- QFile *m_pFile;
- QFtp *m_pFtp;
- bool m_bBusy;
- QProgressBar *m_pProgressBar;
+ QString m_szLocalThemesPath;
+ QString m_szGlobalThemesPath;
+
protected:
- virtual void showEvent(QShowEvent *e);
-protected slots:
+ virtual bool packageIsInstalled(const QString &szName,const QString &szVersion);
+ virtual bool installPackage(const QString &szPath,QString &szError);
- void slotLoadFinished(bool ok);
- void slotLoadProgress(int iProgress);
- void slotDataTransferProgress(qint64 iDone,qint64 iTotal);
- void slotCommandFinished(int id,bool error);
- void slotLinkClicked(const QUrl &url);
};
-#endif
+#endif //COMPILE_WEBKIT_SUPPORT
#endif //_WEBTHEMEINTERFACEDIALOG_H_