2
* Copyright © 2015 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 3 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by: Andreas Pokorny <andreas.pokorny@canonical.com>
19
#ifndef USC_TEST_UNITY_SCREEN_DBUS_CLIENT_H_
20
#define USC_TEST_UNITY_SCREEN_DBUS_CLIENT_H_
22
#include "dbus_client.h"
29
class UnityScreenDBusClient : public DBusClient
32
UnityScreenDBusClient(std::string const& address);
34
DBusAsyncReplyString request_introspection();
35
DBusAsyncReplyVoid request_set_user_brightness(int32_t brightness);
36
DBusAsyncReplyVoid request_user_auto_brightness_enable(bool enabled);
37
DBusAsyncReplyVoid request_set_inactivity_timeouts(
38
int32_t poweroff_timeout, int32_t dimmer_timeout);
39
DBusAsyncReplyVoid request_set_touch_visualization_enabled(bool enabled);
40
DBusAsyncReplyBool request_set_screen_power_mode(
41
std::string const& mode, int reason);
43
DBusAsyncReplyInt request_keep_display_on();
44
DBusAsyncReplyVoid request_remove_display_on_request(int id);
45
DBusAsyncReply request_invalid_method();
46
DBusAsyncReply request_method_with_invalid_arguments();
47
usc::DBusMessageHandle listen_for_power_state_change_signal();
48
char const* const unity_screen_interface = "com.canonical.Unity.Screen";