[folks] Folks.PersonaStore: add is-primary-store and deprecate is-writeable



commit e857f5e159877aa47193f6dacb89367b7ac5aaf8
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Tue Sep 13 17:33:44 2011 +0100

    Folks.PersonaStore: add is-primary-store and deprecate is-writeable
    
    Helps: https://bugzilla.gnome.org/show_bug.cgi?id=658324

 NEWS                     |    2 ++
 folks/persona-store.vala |   10 ++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 94f52a0..4bde367 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,8 @@ API changes:
   API, but it no longer always returns an error)
 * We now use the FOLKS_PRIMARY_STORE env var instead of FOLKS_WRITEABLE_STORE
   to configure the primary store
+* Deprecate Folks.PersonaStore.is_writeable
+* Add Folks.PersonaStore.is_primary_store
 
 Overview of changes from libfolks 0.6.2 to libfolks 0.6.2.1
 ===========================================================
diff --git a/folks/persona-store.vala b/folks/persona-store.vala
index 1b9e32a..e7ad231 100644
--- a/folks/persona-store.vala
+++ b/folks/persona-store.vala
@@ -515,6 +515,8 @@ public abstract class Folks.PersonaStore : Object
    *
    * @since 0.1.13
    */
+  [Deprecated (since = "UNRELEASED",
+      replacement = "PersonaStore.is_primary_store")]
   public bool is_writeable { get; set; default = false; }
 
   /**
@@ -635,4 +637,12 @@ public abstract class Folks.PersonaStore : Object
    */
   public abstract async void remove_persona (Persona persona)
       throws Folks.PersonaStoreError;
+
+  /**
+   * Whether this { link PersonaStore} is the primary store which is
+   * to be used for linking { link Persona}s and such.
+   *
+   * @since UNRELEASED
+   */
+  public bool is_primary_store { get; internal set; default = false; }
 }



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