summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-01 08:48:42 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-01 09:24:28 (GMT)
commit2812bddd81f8a1b804c7460f4e14cd0aa393d129 (patch)
treed46294f35150c4f0f43deaf2d31fceaf945ae715 /UI/Qt/QtLoginWindow.h
downloadswift-contrib-2812bddd81f8a1b804c7460f4e14cd0aa393d129.zip
swift-contrib-2812bddd81f8a1b804c7460f4e14cd0aa393d129.tar.bz2
Import.
Diffstat (limited to 'UI/Qt/QtLoginWindow.h')
-rw-r--r--UI/Qt/QtLoginWindow.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/UI/Qt/QtLoginWindow.h b/UI/Qt/QtLoginWindow.h
new file mode 100644
index 0000000..5a14202
--- /dev/null
+++ b/UI/Qt/QtLoginWindow.h
@@ -0,0 +1,42 @@
+#ifndef SWIFT_QtLoginWindow_H
+#define SWIFT_QtLoginWindow_H
+
+#include <QMainWindow>
+#include <QLineEdit>
+#include <QPushButton>
+#include <QCheckBox>
+#include <QStackedWidget>
+
+#include "Swiften/Controllers/LoginWindow.h"
+#include "Swiften/Controllers/MainWindow.h"
+
+class QLabel;
+class QToolButton;
+
+namespace Swift {
+ class QtLoginWindow : public QMainWindow, public LoginWindow {
+ Q_OBJECT
+ public:
+ QtLoginWindow(const String& defaultJID, const String& defaultPassword, const String& defaultCertificate);
+
+ void morphInto(MainWindow *mainWindow);
+ virtual void loggedOut();
+ virtual void setMessage(const String& message);
+
+ private slots:
+ void loginClicked();
+ void handleCertficateChecked(bool);
+
+ private:
+ QLineEdit *username_;
+ QLineEdit *password_;
+ QPushButton *loginButton_;
+ QCheckBox *remember_;
+ QStackedWidget *stack_;
+ QLabel* message_;
+ QString certificateFile_;
+ QToolButton* certificateButton_;
+ };
+}
+
+#endif