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:
23  {
24  CF_LOGIN = 1 << 23,
25  CF_LOGOUT = 1 << 24
26  };
27 
32  virtual CUser* GetLoggedUser() const = 0;
33 
38  virtual bool Login(const QString& userName, const QString& password) = 0;
39 
44  virtual bool Logout() = 0;
45 };
46 
47 
48 } // namespace iauth
49 
50 
51 #endif // !iauth_ILogin_included
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-2011 Witold Gantzke and Kirill Lepskiy