diff options
-rw-r--r-- | src/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/greeter-broadcast.vala | 34 |
2 files changed, 38 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. + * + * Authors: + * Ted Gould <ted@canonical.com> + */ + +[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); +} |