diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-02 17:14:39 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-02 17:16:31 +0200 |
commit | 2e856e7f61acba9beed83f80e1304252baad2e98 (patch) | |
tree | e552e96ed63cb99b04ffc31f1e2a656282d675e8 /src/bookmarks.h | |
parent | 58df7a9d4878a4bea820ef576da7f049e28e8c21 (diff) |
Bookmarks: Remote bookmarks grouped under source
Rather than mix remote bookmarks with local ones, group them under the source bookmark in "pseudo-folder" fashion. The source is shown as bold.
Diffstat (limited to 'src/bookmarks.h')
-rw-r--r-- | src/bookmarks.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bookmarks.h b/src/bookmarks.h index 26bd9a47..be2a4cfd 100644 --- a/src/bookmarks.h +++ b/src/bookmarks.h | |||
@@ -39,6 +39,7 @@ struct Impl_Bookmark { | |||
39 | iString tags; | 39 | iString tags; |
40 | iChar icon; | 40 | iChar icon; |
41 | iTime when; | 41 | iTime when; |
42 | uint32_t sourceId; /* remote */ | ||
42 | }; | 43 | }; |
43 | 44 | ||
44 | iLocalDef uint32_t id_Bookmark (const iBookmark *d) { return d->node.key; } | 45 | iLocalDef uint32_t id_Bookmark (const iBookmark *d) { return d->node.key; } |
@@ -59,7 +60,7 @@ void save_Bookmarks (const iBookmarks *, const char *dirPath); | |||
59 | void fetchRemote_Bookmarks (iBookmarks *); | 60 | void fetchRemote_Bookmarks (iBookmarks *); |
60 | void requestFinished_Bookmarks (iBookmarks *, iGmRequest *req); | 61 | void requestFinished_Bookmarks (iBookmarks *, iGmRequest *req); |
61 | 62 | ||
62 | void add_Bookmarks (iBookmarks *, const iString *url, const iString *title, | 63 | uint32_t add_Bookmarks (iBookmarks *, const iString *url, const iString *title, |
63 | const iString *tags, iChar icon); | 64 | const iString *tags, iChar icon); |
64 | iBool remove_Bookmarks (iBookmarks *, uint32_t id); | 65 | iBool remove_Bookmarks (iBookmarks *, uint32_t id); |
65 | iBool updateBookmarkIcon_Bookmarks (iBookmarks *, const iString *url, iChar icon); | 66 | iBool updateBookmarkIcon_Bookmarks (iBookmarks *, const iString *url, iChar icon); |