ILogin.h
Go to the documentation of this file.
1 #ifndef iauth_ILogin_included
2 #define iauth_ILogin_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 
8 // ACF includes
9 #include <iauth/CUser.h>
10 
11 
12 namespace iauth
13 {
14 
15 
16 /*
17  Interface supporting login operation.
18 */
19 class ILogin: virtual public istd::IChangeable
20 {
21 public:
26  {
27  CF_LOGIN = 0x36e7b62,
29  };
30 
35  virtual CUser* GetLoggedUser() const = 0;
36 
41  virtual bool Login(const QString& userName, const QString& password) = 0;
42 
47  virtual bool Logout() = 0;
48 };
49 
50 
51 } // namespace iauth
52 
53 
54 #endif // !iauth_ILogin_included
ChangeFlags
Data model change notification flags.
Definition: ILogin.h:25
virtual bool Logout()=0
Log in user.
virtual bool Login(const QString &userName, const QString &password)=0
Log in user.
virtual CUser * GetLoggedUser() const =0
Returns the currently logged on user.

© 2007-2017 Witold Gantzke and Kirill Lepskiy