Back to index

lightdm  1.3.2
Public Member Functions | Public Attributes | Protected Attributes
SessionsModelPrivate Class Reference

List of all members.

Public Member Functions

 SessionsModelPrivate (SessionsModel *parent)
void loadSessions ()

Public Attributes

QList< SessionItemitems

Protected Attributes

SessionsModel * q_ptr

Detailed Description

Definition at line 30 of file sessionsmodel.cpp.

Constructor & Destructor Documentation

SessionsModelPrivate::SessionsModelPrivate ( SessionsModel *  parent)

Definition at line 46 of file sessionsmodel.cpp.


Here is the call graph for this function:

Member Function Documentation

Definition at line 53 of file sessionsmodel.cpp.

    qDebug() << "loading sessions";

   GList *ldmSessions = lightdm_get_sessions();
   for (GList* item = ldmSessions; item; item = item->next) {
       LightDMSession *ldmSession = static_cast<LightDMSession*>(item->data);

       SessionItem session;
       session.key = QString::fromUtf8(lightdm_session_get_key(ldmSession)); = QString::fromUtf8(lightdm_session_get_name(ldmSession));
       session.comment = QString::fromUtf8(lightdm_session_get_comment(ldmSession));

       qDebug() << "adding session" << session.key;


   //this happens in the constructor so we don't need beginInsertRows() etc.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 34 of file sessionsmodel.cpp.

SessionsModel* SessionsModelPrivate::q_ptr [protected]

Definition at line 39 of file sessionsmodel.cpp.

The documentation for this class was generated from the following file: