Public Types | Public Member Functions | List of all members
iauth::ILogin Class Referenceabstract

#include <ILogin.h>

Inheritance diagram for iauth::ILogin:
istd::IChangeable istd::IPolymorphic iauth::CSimpleLoginComp iauth::CUserLoginComp

Public Types

enum  ChangeFlags { CF_LOGIN = 0x36e7b62, CF_LOGOUT }
 Data model change notification flags. More...
 

Public Member Functions

virtual CUserGetLoggedUser () const =0
 Returns the currently logged on user. More...
 
virtual bool Login (const QString &userName, const QString &password)=0
 Log in user. More...
 
virtual bool Logout ()=0
 Log in user. More...
 

Detailed Description

Definition at line 19 of file ILogin.h.

Member Enumeration Documentation

Data model change notification flags.

Enumerator
CF_LOGIN 
CF_LOGOUT 

Definition at line 25 of file ILogin.h.

Member Function Documentation

virtual CUser* iauth::ILogin::GetLoggedUser ( ) const
pure virtual

Returns the currently logged on user.

Returns
user is currently logged on, or NULL, if no user is logged.

Implemented in iauth::CSimpleLoginComp, and iauth::CUserLoginComp.

virtual bool iauth::ILogin::Login ( const QString &  userName,
const QString &  password 
)
pure virtual

Log in user.

Returns
true, if user is accepted.

Implemented in iauth::CSimpleLoginComp, and iauth::CUserLoginComp.

virtual bool iauth::ILogin::Logout ( )
pure virtual

Log in user.

Returns
true, if logout successful.

Implemented in iauth::CSimpleLoginComp, and iauth::CUserLoginComp.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy