~thomas-voss/unity-system-compositor/fallback-gracefully-if-hw-api-is-missing-take-2

« back to all changes in this revision

Viewing changes to tests/integration-tests/unity_screen_dbus_client.h

  • Committer: CI Train Bot
  • Author(s): CI Train Bot, Kevin DuBois, Alexandros Frantzis
  • Date: 2016-01-21 17:58:56 UTC
  • mfrom: (200.45.12 0.3)
  • Revision ID: ci-train-bot@canonical.com-20160121175856-m9rosowob03a105o
Release 0.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2015 Canonical Ltd.
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 *
 
16
 * Authored by: Andreas Pokorny <andreas.pokorny@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef USC_TEST_UNITY_SCREEN_DBUS_CLIENT_H_
 
20
#define USC_TEST_UNITY_SCREEN_DBUS_CLIENT_H_
 
21
 
 
22
#include "dbus_client.h"
 
23
 
 
24
namespace usc
 
25
{
 
26
namespace test
 
27
{
 
28
 
 
29
class UnityScreenDBusClient : public DBusClient
 
30
{
 
31
public:
 
32
    UnityScreenDBusClient(std::string const& address);
 
33
 
 
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);
 
42
 
 
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";
 
49
};
 
50
 
 
51
}
 
52
}
 
53
 
 
54
#endif