[folks] Hide setter for Backend.name



commit 24234a3c9797f066ea01005f00f67faf73359330
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Fri Sep 10 15:13:29 2010 +0100

    Hide setter for Backend.name

 backends/key-file/kf-backend.vala  |   10 +---------
 backends/telepathy/tp-backend.vala |   10 +---------
 folks/backend.vala                 |    2 +-
 3 files changed, 3 insertions(+), 19 deletions(-)
---
diff --git a/backends/key-file/kf-backend.vala b/backends/key-file/kf-backend.vala
index 32ca991..305ff5e 100644
--- a/backends/key-file/kf-backend.vala
+++ b/backends/key-file/kf-backend.vala
@@ -48,7 +48,7 @@ public class Folks.Backends.Kf.Backend : Folks.Backend
   /**
    * { inheritDoc}
    */
-  public override string name { get; private set; }
+  public override string name { get { return "key-file"; } }
 
   /**
    * { inheritDoc}
@@ -61,14 +61,6 @@ public class Folks.Backends.Kf.Backend : Folks.Backend
   /**
    * { inheritDoc}
    */
-  public Backend ()
-    {
-      Object (name: "key-file");
-    }
-
-  /**
-   * { inheritDoc}
-   */
   public override async void prepare () throws GLib.Error
     {
       lock (this._is_prepared)
diff --git a/backends/telepathy/tp-backend.vala b/backends/telepathy/tp-backend.vala
index 81ef4ab..81c6fd7 100644
--- a/backends/telepathy/tp-backend.vala
+++ b/backends/telepathy/tp-backend.vala
@@ -35,7 +35,7 @@ public class Folks.Backends.Tp.Backend : Folks.Backend
   /**
    * { inheritDoc}
    */
-  public override string name { get; private set; }
+  public override string name { get { return "telepathy"; } }
 
   /**
    * { inheritDoc}
@@ -46,14 +46,6 @@ public class Folks.Backends.Tp.Backend : Folks.Backend
     }
 
   /**
-   * { inheritDoc}
-   */
-  public Backend ()
-    {
-      Object (name: "telepathy");
-    }
-
-  /**
    * Whether this Backend has been prepared.
    *
    * See { link Folks.Backend.is_prepared}.
diff --git a/folks/backend.vala b/folks/backend.vala
index 5b73602..63310a9 100644
--- a/folks/backend.vala
+++ b/folks/backend.vala
@@ -52,7 +52,7 @@ public abstract class Folks.Backend : Object
    * This is guaranteed to always be available; even before
    * { link Backend.prepare} is called.
    */
-  public abstract string name { get; protected set; }
+  public abstract string name { get; }
 
   /**
    * The { link PersonaStore}s in use by the backend.



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