00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef LOGINFORM_H
00021 #define LOGINFORM_H
00022
00023 #include "overlay.h"
00024
00025 #include <attica/providermanager.h>
00026 #include <attica/provider.h>
00027
00028 namespace Plasma
00029 {
00030 class LineEdit;
00031 class PushButton;
00032 class Label;
00033 class BusyWidget;
00034 }
00035
00036 class LoginForm : public Overlay
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 LoginForm( QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0 );
00042
00043 private:
00044 Plasma::LineEdit* m_usernameEdit;
00045 Plasma::LineEdit* m_passwordEdit;
00046 Plasma::PushButton* m_loginButton;
00047 Plasma::BusyWidget* m_busyWidget;
00048 Plasma::Label* m_usernameLabel;
00049 Attica::ProviderManager m_manager;
00050 Attica::Provider m_provider;
00051
00052 void initialize();
00053
00054 protected slots:
00055 void doLogin();
00056 void loginDone();
00057 void loginFailed();
00058 void initDone();
00059 void initFailed();
00060 void loadCredentials();
00061 };
00062
00063 #endif // LOGINFORM_H