1/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4 -*- */
3 * Copyright (C) 2014 Canonical, Ltd.
5 * This program is free software: you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License version 3, as published by
7 * the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
11 * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19#include "dbusunitysessionservice.h"
22#include <QDBusConnection>
24DBusUnitySessionService::DBusUnitySessionService() : QObject()
26 QDBusConnection connection = QDBusConnection::sessionBus();
28 connection.registerService("com.canonical.Unity.Session");
29 connection.registerObject("/com/canonical/Unity/Session", this,
30 QDBusConnection::ExportScriptableSignals
31 | QDBusConnection::ExportScriptableSlots
32 | QDBusConnection::ExportScriptableInvokables);
35DBusUnitySessionService::DBusUnitySessionService(QObject *parent) : QObject(parent)
37 QDBusConnection connection = QDBusConnection::sessionBus();
39 connection.registerService("com.canonical.Unity.Session");
40 connection.registerObject("/com/canonical/Unity/Session", this,
41 QDBusConnection::ExportScriptableSignals
42 | QDBusConnection::ExportScriptableSlots
43 | QDBusConnection::ExportScriptableInvokables);
46DBusUnitySessionService::~DBusUnitySessionService()
50void DBusUnitySessionService::Logout()
55void DBusUnitySessionService::RequestLogout()
57 Q_EMIT logoutRequested(false);
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list