aboutsummaryrefslogtreecommitdiff
path: root/src/music-bridge.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-05-07 20:52:39 +0200
committerConor Curran <conor.curran@canonical.com>2010-05-07 20:52:39 +0200
commitd73292111b3c141f62508ffb28971e6c5b36d751 (patch)
tree8642b49e600c8cfc8a6a9fd3c725cae38f9cd8f7 /src/music-bridge.vala
parent3631b8ecce614d1bdd1f66e87f9ab20c85709cc3 (diff)
downloadayatana-indicator-sound-d73292111b3c141f62508ffb28971e6c5b36d751.tar.gz
ayatana-indicator-sound-d73292111b3c141f62508ffb28971e6c5b36d751.tar.bz2
ayatana-indicator-sound-d73292111b3c141f62508ffb28971e6c5b36d751.zip
oh my god
Diffstat (limited to 'src/music-bridge.vala')
-rw-r--r--src/music-bridge.vala26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/music-bridge.vala b/src/music-bridge.vala
index 55c115a..cef9d02 100644
--- a/src/music-bridge.vala
+++ b/src/music-bridge.vala
@@ -5,18 +5,20 @@ public class BridgeServer : GLib.Object{
private Listener listener;
-// private static const int LISTENING_MODE = 0;
-// private static const int MASTER_MODE = 0;
-// private int current_mode = LISTENING_MODE;
-
+ private static const int LISTENING_MODE = 0;
+ private static const int MASTER_MODE = 0;
+ private int current_mode = LISTENING_MODE;
+ private RhythmboxController rb;
+
public BridgeServer(){
- listener = Listener.ref_default();
- listener.indicator_added.connect(on_indicator_added);
- listener.indicator_removed.connect(on_indicator_removed);
- listener.indicator_modified.connect(on_indicator_modified);
- listener.server_added.connect(on_server_added);
- listener.server_removed.connect(on_server_removed);
- listener.server_count_changed.connect(on_server_count_changed);
+ listener = Listener.ref_default();
+ listener.indicator_added.connect(on_indicator_added);
+ listener.indicator_removed.connect(on_indicator_removed);
+ listener.indicator_modified.connect(on_indicator_modified);
+ listener.server_added.connect(on_server_added);
+ listener.server_removed.connect(on_server_removed);
+ listener.server_count_changed.connect(on_server_count_changed);
+ //rb = new RhythmboxController();
}
public void test_me(){
@@ -45,7 +47,7 @@ public class BridgeServer : GLib.Object{
else{
debug("client of type %s has registered with us", type);
if (type.contains("rhythmbox") == true){
- new RhythmboxController();
+ rb = new RhythmboxController();
}
}
}