6 class PowerManagementInterface;
7 class DisplayInterface;
8 class UserManagerInterface;
10 class LdmGreeterPrivate;
14 class QDBusPendingCallWatcher;
17 // all accessors need to be marked const.
18 // need to pass by reference where applicable.
19 // fix FIXME about authentication.
20 // decide async start - provide ready() signal(like Tp-Qt4)?
21 // quit is a rubbish name for a signal, it sounds too much like a slot.
22 // maybe modify defaultLayout to return the layout?(same for sesion) - or the modelIndex?
23 // document all the public methods.
25 class Q_DECL_EXPORT LdmGreeter : public QWidget
29 explicit LdmGreeter();
32 /** The hostname of the machine*/
34 QString defaultLanguage();
35 QString defaultLayout();
36 QString defaultSession();
37 QString defaultUsername();
39 QList<LdmUser> users();
41 QList<LdmSession> sessions();
43 //FIXME this is inconsistent - need to decide whether lib remembers username, or client needs to keep passing it.
44 void startAuthentication(QString username);
45 void provideSecret(QString secret);
46 void login(QString username, QString session, QString language);
48 //FIXME should probably mess about with Q_PROPERTY
58 //FIXME replace these signals with pure virtual
62 void showPrompt(QString prompt);
63 void showMessage(QString message);
64 void showError(QString message);
65 void authenticationComplete(bool success);
66 void timedLogin(QString username);
72 void onAuthFinished(QDBusPendingCallWatcher*);