[folks] Bug 652425 — Failure codes for removing personas needed in PersonaStoreError



commit 7ca922ad06ca2ff9b46e4d8f745a7dd42e2668cd
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Jul 10 18:41:25 2011 +0100

    Bug 652425 â Failure codes for removing personas needed in PersonaStoreError
    
    Add PersonaStoreError.PERMISSION_DENIED and PersonaStoreError.REMOVE_FAILED,
    which will be useful for the e-d-s backend.
    
    Closes: bgo#652425

 NEWS                     |    2 ++
 folks/persona-store.vala |   16 ++++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 78c3bfe..dad778f 100644
--- a/NEWS
+++ b/NEWS
@@ -17,12 +17,14 @@ Bugs fixed:
 * Bug 638281 â Add an EDS backend
 * Bug 654509 â Folks master not building
 * Bug 652048 â Make nickname writable
+* Bug 652425 â Failure codes for removing personas needed in PersonaStoreError
 
 API changes:
 * Swf.Persona retains and exposes its libsocialweb Contact
 * Add a PresenceDetails.presence_status property
 * Make NameDetails.nickname settable
 * Drop AliasDetails support from Trf.Persona
+* Add PersonaStoreError.PERMISSION_DENIED and PersonaStoreError.REMOVE_FAILED
 
 Overview of changes from libfolks 0.5.1 to libfolks 0.5.2
 =========================================================
diff --git a/folks/persona-store.vala b/folks/persona-store.vala
index 3bbf8b9..4f4b04f 100644
--- a/folks/persona-store.vala
+++ b/folks/persona-store.vala
@@ -99,6 +99,22 @@ public errordomain Folks.PersonaStoreError
    * @since 0.3.4
    */
   READ_ONLY,
+
+  /**
+   * The operation was denied due to not having sufficient permissions.
+   *
+   * @since UNRELEASED
+   */
+  PERMISSION_DENIED,
+
+  /**
+   * Removal of a { link Persona} failed. This is a generic error which is used
+   * if no other error code (such as, e.g.,
+   * { link PersonaStoreError.PERMISSION_DENIED}) is applicable.
+   *
+   * @since UNRELEASED
+   */
+  REMOVE_FAILED,
 }
 
 /**



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