aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-21 15:39:32 -0600
committerTed Gould <ted@gould.cx>2014-02-21 15:39:32 -0600
commitb00962daf23fe43c7409dbcc735b19d7f74e7241 (patch)
treef21b8556750128efd85cea9b95bf6bc9eca32c7a /src
parent129467f4faccdfd852584bb26da4011d01955239 (diff)
downloadayatana-indicator-sound-b00962daf23fe43c7409dbcc735b19d7f74e7241.tar.gz
ayatana-indicator-sound-b00962daf23fe43c7409dbcc735b19d7f74e7241.tar.bz2
ayatana-indicator-sound-b00962daf23fe43c7409dbcc735b19d7f74e7241.zip
Split out the sound settings interface
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
-rw-r--r--src/accounts-service-sound-settings.vala33
-rw-r--r--src/accounts-service-user.vala14
3 files changed, 37 insertions, 14 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7d58afb..280e89a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -83,6 +83,10 @@ vala_add(indicator-sound-service
DEPENDS
media-player
mpris2-interfaces
+ accounts-service-sound-settings
+)
+vala_add(indicator-sound-service
+ accounts-service-sound-settings.vala
)
vala_finish(indicator-sound-service
diff --git a/src/accounts-service-sound-settings.vala b/src/accounts-service-sound-settings.vala
new file mode 100644
index 0000000..7e27bd5
--- /dev/null
+++ b/src/accounts-service-sound-settings.vala
@@ -0,0 +1,33 @@
+/*
+ * 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.indicator.sound.AccountsService")]
+public interface AccountsServiceSoundSettings : Object {
+ // properties
+ public abstract uint64 timestamp {owned get; set;}
+ public abstract string player_name {owned get; set;}
+ public abstract Variant player_icon {owned get; set;}
+ public abstract bool running {owned get; set;}
+ public abstract string state {owned get; set;}
+ public abstract string title {owned get; set;}
+ public abstract string artist {owned get; set;}
+ public abstract string album {owned get; set;}
+ public abstract string art_url {owned get; set;}
+}
+
diff --git a/src/accounts-service-user.vala b/src/accounts-service-user.vala
index 47189a5..03aeb25 100644
--- a/src/accounts-service-user.vala
+++ b/src/accounts-service-user.vala
@@ -17,20 +17,6 @@
* Ted Gould <ted@canonical.com>
*/
-[DBus (name = "com.canonical.indicator.sound.AccountsService")]
-public interface AccountsServiceSoundSettings : Object {
- // properties
- public abstract uint64 timestamp {owned get; set;}
- public abstract string player_name {owned get; set;}
- public abstract Variant player_icon {owned get; set;}
- public abstract bool running {owned get; set;}
- public abstract string state {owned get; set;}
- public abstract string title {owned get; set;}
- public abstract string artist {owned get; set;}
- public abstract string album {owned get; set;}
- public abstract string art_url {owned get; set;}
-}
-
public class AccountsServiceUser : Object {
Act.UserManager accounts_manager = Act.UserManager.get_default();
Act.User? user = null;