~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to liblightdm-qt/QLightDM/greeter.h

  • Committer: David Edmundson
  • Date: 2011-05-22 11:19:24 UTC
  • mto: This revision was merged to the branch mainline in revision 461.
  • Revision ID: david@davidedmundson.co.uk-20110522111924-aar5y8f75tm9q9xh
Added a users model

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
namespace QLightDM
14
14
{
15
 
  class SessionsModel;
 
15
  class Config;
16
16
  
17
17
  class Q_DECL_EXPORT Greeter : public QObject
18
18
  {
37
37
        QString timedLoginUser() const;
38
38
        int timedLoginDelay() const;
39
39
 
40
 
        QList<QLightDM::User*> users();
41
 
 
42
40
        QList<QLightDM::Language> languages() const;
43
41
        QString defaultLanguage() const;
44
42
 
46
44
        QString defaultLayout() const;
47
45
        QString layout() const;
48
46
 
49
 
        //TODO why did I make this? the clients can just create a session model when they need to
50
 
        QLightDM::SessionsModel *sessionsModel() const;
 
47
        QLightDM::Config *config() const;
 
48
 
51
49
        QString defaultSession() const;
52
50
 
53
51
        bool inAuthentication() const;
80
78
        void showError(QString message);
81
79
        void authenticationComplete(bool isAuthenticated);
82
80
        void timedLogin(QString username);
83
 
        void userAdded(User *user);
84
 
        void userChanged(User *user);
85
 
        void userRemoved(User *user);
86
81
        void quit();
87
82
    
88
83
    private slots:  
97
92
        int getPacketLength();
98
93
        int readInt(int *offset);
99
94
        QString readString(int *offset);
100
 
        void loadUsers();
101
 
        void updateUsers();
102
95
    };
103
96
 
104
97
};//end namespace