Server.GetSessions(): return array of object paths (MB #10452)

Previously, plain strings were used. With DBusObject instead
the C++ bridge code recognizes the special meaning of those
and correctly sends them over D-Bus as object paths.
This commit is contained in:
Patrick Ohly 2010-04-01 14:20:05 +02:00
parent b4ebe0c5b0
commit 18c99352e1

View file

@ -1086,7 +1086,7 @@ class DBusServer : public DBusObjectHelper,
std::vector<std::string> &transports);
/** Server.GetSessions() */
void getSessions(std::vector<std::string> &sessions);
void getSessions(std::vector<DBusObject_t> &sessions);
/** Server.InfoResponse() */
void infoResponse(const Caller_t &caller,
@ -4645,7 +4645,7 @@ void DBusServer::checkPresence(const std::string &server,
return m_presence.checkPresence(server, status, transports);
}
void DBusServer::getSessions(std::vector<std::string> &sessions)
void DBusServer::getSessions(std::vector<DBusObject_t> &sessions)
{
sessions.reserve(m_workQueue.size() + 1);
if (m_activeSession) {