ICF 3.1.1.10
Technical documentation of ICF Libraries
ILogin.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// Qt includes
10#include <QtCore/QString>
11
12// ICF includes
13#include <iauth/CUser.h>
14
15
16namespace iauth
17{
18
19
20/*
21 Interface supporting login operation.
22*/
23class ILogin: virtual public istd::IChangeable
24{
25public:
30 {
31 CF_LOGIN = 0x36e7b62,
33 };
34
39 virtual CUser* GetLoggedUser() const = 0;
40
45 virtual bool Login(const QString& userName, const QString& password) = 0;
46
51 virtual bool Logout() = 0;
52};
53
54
55} // namespace iauth
56
57
virtual CUser * GetLoggedUser() const =0
Returns the currently logged on user.
ChangeFlags
Data model change notification flags.
Definition ILogin.h:30
virtual bool Login(const QString &userName, const QString &password)=0
Log in user.
virtual bool Logout()=0
Log in user.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
Contains implementations of interfaces and components related to right management.

© Witold Gantzke and Kirill Lepskiy