CLoginBarGuiComp.h
Go to the documentation of this file.
1 #ifndef _qqtauth_CLoginBarGuiComp_included
2 #define _qqtauth_CLoginBarGuiComp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QTimer>
7 
8 // ACF includes
10 
11 // ACF-Solutions includes
12 #include "iauth/ILogin.h"
13 
14 #include "GeneratedFiles/iqtauth/ui_CLoginBarGuiComp.h"
15 
16 
17 namespace iqtauth
18 {
19 
20 
21 class CLoginBarGuiComp: public iqtgui::TDesignerGuiCompBase<Ui::CLoginBarGuiComp>
22 {
23  Q_OBJECT
24 public:
26 
27  I_BEGIN_COMPONENT(CLoginBarGuiComp);
28  I_ASSIGN(m_loginIfPtr, "Login", "Login logic component", true, "Login");
29  I_ASSIGN(m_autoLogoutMinutesAttrPtr, "AutoLogoutMinutes", "Time intervall for the automatic logout", false, 60);
30  I_END_COMPONENT;
31 
33 
34 protected:
35  void UpdateButtonsState();
36 
37  // reimplemented (QWidget)
38  virtual bool eventFilter(QObject *obj, QEvent *event);
39 
40  // reimplemented (iqtgui::CGuiComponentBase)
41  virtual void OnGuiCreated();
42 
43 protected Q_SLOTS:
44  virtual void on_LoginButton_clicked();
45  virtual void on_LogoutButton_clicked();
46 
47 private:
48  QTimer m_autoLogoutTimer;
49  int m_autoLogoutMilisec;
50 
51  I_REF(iauth::ILogin, m_loginIfPtr);
52  I_ATTR(int, m_autoLogoutMinutesAttrPtr);
53 };
54 
55 
56 } // namespace iqtauth
57 
58 
59 #endif // !_qqtauth_CLoginBarGuiComp_included
60 
61 
62 
virtual void OnGuiCreated()
virtual bool eventFilter(QObject *obj, QEvent *event)
virtual void on_LoginButton_clicked()
iqtgui::TDesignerGuiCompBase< Ui::CLoginBarGuiComp > BaseClass
virtual void on_LogoutButton_clicked()

© 2007-2011 Witold Gantzke and Kirill Lepskiy