blam r607 - trunk/src



Author: atoker
Date: Tue Jun 17 04:38:42 2008
New Revision: 607
URL: http://svn.gnome.org/viewvc/blam?rev=607&view=rev

Log:
Move ShowWindow() out of the org.gnome.feed.Reader D-Bus interface

It's specific to Blam and not part of the standardised API.

Modified:
   trunk/src/Application.cs

Modified: trunk/src/Application.cs
==============================================================================
--- trunk/src/Application.cs	(original)
+++ trunk/src/Application.cs	Tue Jun 17 04:38:42 2008
@@ -31,10 +31,17 @@
 #endif
     public interface IFeedReader {
         bool Subscribe(string url);
+        void SetOnline(bool value);
+    }
+
+#if ENABLE_DBUS
+    [NDesk.DBus.Interface("org.gnome.Blam.Reader")]
+#endif
+    public interface IBlamReader {
         void ShowWindow();
     }
 
-    public class Application : Program, IFeedReader {
+    public class Application : Program, IBlamReader, IFeedReader {
 
 #if ENABLE_DBUS
         static string bus_name = "org.gnome.feed.Reader";
@@ -259,6 +266,13 @@
             return true;
         }
 
+        // Exposed by D-Bus
+        public void SetOnline(bool value)
+        {
+          // This is here to match Liferea.
+          // Not yet implemented.
+        }
+
 #if ENABLE_DBUS
         private void SetupDBus()
         {
@@ -269,7 +283,7 @@
                 if (bus.RequestName(bus_name) == RequestNameReply.PrimaryOwner) {
                     bus.Register(obj_path, this);
                 } else {
-                    IFeedReader reader = bus.GetObject<IFeedReader>(bus_name, obj_path);
+                    IBlamReader reader = bus.GetObject<IBlamReader>(bus_name, obj_path);
                     reader.ShowWindow();
                     Gdk.Global.NotifyStartupComplete ();
                     Environment.Exit(0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]