[epiphany/wip/ephy-sync: 94/126] bookmarks: Add 'id' and 'modified' fields needed for the Storage Server
- From: Gabriel - Cristian Ivascu <gabrielivascu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/ephy-sync: 94/126] bookmarks: Add 'id' and 'modified' fields needed for the Storage Server
- Date: Fri, 19 Aug 2016 17:39:28 +0000 (UTC)
commit 88fc165086b6b768f79b1cd2d7e2a5a1cbb16f52
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date: Sat Jul 30 18:14:05 2016 +0300
bookmarks: Add 'id' and 'modified' fields needed for the Storage Server
src/ephy-bookmark.c | 17 +++++++++++++++++
src/ephy-bookmark.h | 4 ++++
2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-bookmark.c b/src/ephy-bookmark.c
index 3c280f0..004eba4 100644
--- a/src/ephy-bookmark.c
+++ b/src/ephy-bookmark.c
@@ -35,6 +35,7 @@ struct _EphyBookmark {
gint64 time_added;
char *id;
+ float modified;
};
static JsonSerializableIface *serializable_iface = NULL;
@@ -328,6 +329,22 @@ ephy_bookmark_get_title (EphyBookmark *bookmark)
return bookmark->title;
}
+const char *
+ephy_bookmark_get_id (EphyBookmark *self)
+{
+ g_return_val_if_fail (EPHY_IS_BOOKMARK (self), NULL);
+
+ return self->id;
+}
+
+float
+ephy_bookmark_get_modified (EphyBookmark *self)
+{
+ g_return_val_if_fail (EPHY_IS_BOOKMARK (self), -1);
+
+ return self->modified;
+}
+
void
ephy_bookmark_add_tag (EphyBookmark *self,
const char *tag)
diff --git a/src/ephy-bookmark.h b/src/ephy-bookmark.h
index 93df545..3b985d4 100644
--- a/src/ephy-bookmark.h
+++ b/src/ephy-bookmark.h
@@ -42,6 +42,10 @@ void ephy_bookmark_set_title (EphyBookmark *self,
const char *title);
const char *ephy_bookmark_get_title (EphyBookmark *self);
+const char *ephy_bookmark_get_id (EphyBookmark *self);
+
+float ephy_bookmark_get_modified (EphyBookmark *self);
+
void ephy_bookmark_add_tag (EphyBookmark *self,
const char *tag);
void ephy_bookmark_remove_tag (EphyBookmark *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]