-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlowres_greeter.h
79 lines (67 loc) · 2.08 KB
/
lowres_greeter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/**
* ogon - Free Remote Desktop Services
* Qt Greeter - Low-Res Greeter Window
*
* Copyright (c) 2013-2018 Thincast Technologies GmbH
*
* Authors:
* David Fort <contact@hardening-consulting.com>
* Martin Haimberger <martin.haimberger@thincast.com>
*
* This file may be used under the terms of the GNU Affero General
* Public License version 3 as published by the Free Software Foundation
* and appearing in the file LICENSE-AGPL included in the distribution
* of this file.
*
* Under the GNU Affero General Public License version 3 section 7 the
* copyright holders grant the additional permissions set forth in the
* ogon Core AGPL Exceptions version 1 as published by
* Thincast Technologies GmbH.
*
* For more information see the file LICENSE in the distribution of this file.
*/
#ifndef __QOGON_LOWRES_GREETER_H__
#define __QOGON_LOWRES_GREETER_H__
#include <QObject>
#include "abstract_greeter.h"
#include "ui_small_greeter.h"
struct QOgonInterface;
class AbstractGreeter;
/** @brief */
class LowResGreeterWindow : public QMainWindow, public GreeterUi, private Ui_lowResWindow {
Q_OBJECT
public:
/**
*
* @param controller
* @param user
* @param domain
*/
LowResGreeterWindow(AbstractGreeter *controller, const QString &user, const QString &domain);
/** dtor */
virtual ~LowResGreeterWindow();
/** @overload GreeterUi
* @{ */
virtual void setStatus(const QString &toSet, bool visible);
virtual QLineEdit *getPasswordWidget();
virtual void setupEffects();
virtual void setCurrentLanguage(const QString &lang);
virtual void show();
virtual void hide();
virtual void close();
virtual void onConnectionEstablished();
virtual void onConnectionLost();
virtual void onLoginSuccessful();
virtual void onLoginFailed();
/** @} */
public slots:
void on_loginButton_clicked();
void on_cancelButton_clicked();
protected:
void handleAuthResponse(const QByteArray &reply);
void handleEndResponse(const QByteArray &reply);
virtual void changeEvent(QEvent *e);
virtual void keyPressEvent(QKeyEvent* event);
AbstractGreeter *mGreeter;
};
#endif //__QOGON_NICE_GREETER_H__