diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-19 10:26:23 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-19 10:26:23 +0200 |
commit | 3bde9d383a107760ee56ebc7f780154bfd3f3de7 (patch) | |
tree | 4703b0625c68a30be76251c5349659f3c9d14a21 /src/bookmarks.h | |
parent | 6e54b0b5449e607417b2bd5b68ac4292277bad4b (diff) |
Remote bookmark sources
Bookmarks tagged "remotesource" are fetched and all links are treated as remote bookmarks.
Remote bookmarks are not saved locally.
Diffstat (limited to 'src/bookmarks.h')
-rw-r--r-- | src/bookmarks.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bookmarks.h b/src/bookmarks.h index 8273d7bc..2975b082 100644 --- a/src/bookmarks.h +++ b/src/bookmarks.h | |||
@@ -27,6 +27,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
27 | #include <the_Foundation/string.h> | 27 | #include <the_Foundation/string.h> |
28 | #include <the_Foundation/time.h> | 28 | #include <the_Foundation/time.h> |
29 | 29 | ||
30 | iDeclareType(GmRequest) | ||
31 | |||
30 | iDeclareType(Bookmark) | 32 | iDeclareType(Bookmark) |
31 | iDeclareTypeConstruction(Bookmark) | 33 | iDeclareTypeConstruction(Bookmark) |
32 | 34 | ||
@@ -54,6 +56,9 @@ void clear_Bookmarks (iBookmarks *); | |||
54 | void load_Bookmarks (iBookmarks *, const char *dirPath); | 56 | void load_Bookmarks (iBookmarks *, const char *dirPath); |
55 | void save_Bookmarks (const iBookmarks *, const char *dirPath); | 57 | void save_Bookmarks (const iBookmarks *, const char *dirPath); |
56 | 58 | ||
59 | void fetchRemote_Bookmarks (iBookmarks *); | ||
60 | void requestFinished_Bookmarks (iBookmarks *, iGmRequest *req); | ||
61 | |||
57 | void add_Bookmarks (iBookmarks *, const iString *url, const iString *title, | 62 | void add_Bookmarks (iBookmarks *, const iString *url, const iString *title, |
58 | const iString *tags, iChar icon); | 63 | const iString *tags, iChar icon); |
59 | iBool remove_Bookmarks (iBookmarks *, uint32_t id); | 64 | iBool remove_Bookmarks (iBookmarks *, uint32_t id); |