From 948e2a727ebd214752a7b9ecc863ed613cc110d2 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 27 Feb 2014 09:26:42 -0600 Subject: Adding the greeter broadcast DBus API --- src/CMakeLists.txt | 4 ++++ src/greeter-broadcast.vala | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/greeter-broadcast.vala (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 436a154..c3ff2ae 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -103,10 +103,14 @@ vala_add(indicator-sound-service media-player mpris2-interfaces accounts-service-sound-settings + greeter-broadcast ) vala_add(indicator-sound-service accounts-service-sound-settings.vala ) +vala_add(indicator-sound-service + greeter-broadcast.vala +) vala_finish(indicator-sound-service SOURCES diff --git a/src/greeter-broadcast.vala b/src/greeter-broadcast.vala new file mode 100644 index 0000000..e1a2793 --- /dev/null +++ b/src/greeter-broadcast.vala @@ -0,0 +1,34 @@ +/* + * Copyright 2014 © Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * Authors: + * Ted Gould + */ + +[DBus (name = "com.canonical.Unity.Greeter.Broadcast")] +public interface GreeterBroadcast : Object { + // methods + public abstract async void RequestApplicationStart(string name, string appid) throws IOError; + public abstract async void RequestHomeShown(string name) throws IOError; + public abstract async void RequestSoundPlayPause(string name) throws IOError; + public abstract async void RequestSoundNext(string name) throws IOError; + public abstract async void RequestSoundPrev(string name) throws IOError; + // signals + public signal void StartApplication(string username, string appid); + public signal void ShowHome(string username); + public signal void SoundPlayPause(string username); + public signal void SoundNext(string username); + public signal void SoundPrev(string username); +} -- cgit v1.2.3