~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to greeters/qt/lightdm-example-qt-greeter.h

  • Committer: David Edmundson
  • Date: 2011-05-21 00:53:56 UTC
  • mto: This revision was merged to the branch mainline in revision 456.
  • Revision ID: david@davidedmundson.co.uk-20110521005356-stabgjwhvgxzb4lp
Replaced Qt Demo greeter with something more extensive

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <QtGui/QDialog>
2
 
 
3
 
class QLabel;
4
 
class QLineEdit;
5
 
class LdmGreeter;
6
 
 
7
 
class LoginDialog : public QDialog
8
 
{
9
 
    Q_OBJECT
10
 
public:
11
 
    LoginDialog();
12
 
 
13
 
private:
14
 
    LdmGreeter *greeter;
15
 
    QLabel *label;
16
 
    QLineEdit *entry;
17
 
    bool inPrompt;
18
 
 
19
 
private slots:
20
 
    void onLogin();
21
 
    void showPrompt(QString text);
22
 
    void showMessage(QString text);
23
 
    void showError(QString text);
24
 
    void authenticationComplete();
25
 
    void quit();
26
 
};