Changeset View
Changeset View
Standalone View
Standalone View
src/lib/usersessions.cpp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | |||||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | void UserSession::listUsersSlot(QDBusPendingCallWatcher *watcher) | 63 | void UserSession::listUsersSlot(QDBusPendingCallWatcher *watcher) | ||
64 | { | 64 | { | ||
65 | QDBusPendingReply<UserInfoList> reply = *watcher; | 65 | QDBusPendingReply<UserInfoList> reply = *watcher; | ||
66 | if (reply.isError()) { | 66 | if (reply.isError()) { | ||
67 | qCWarning(USER_MANAGER_LOG) << reply.error().name() << reply.error().message(); | 67 | qCWarning(USER_MANAGER_LOG) << reply.error().name() << reply.error().message(); | ||
68 | } else { | 68 | } else { | ||
69 | UserInfoList userList = reply.value(); | 69 | const UserInfoList userList = reply.value(); | ||
70 | Q_FOREACH(const UserInfo &userInfo, userList) { | 70 | for (const UserInfo &userInfo : userList) { | ||
71 | UserNew(userInfo.id); | 71 | UserNew(userInfo.id); | ||
72 | } | 72 | } | ||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | watcher->deleteLater(); | 75 | watcher->deleteLater(); | ||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | void UserSession::UserNew(uint id) | 78 | void UserSession::UserNew(uint id) | ||
Show All 10 Lines |