summaryrefslogtreecommitdiff
path: root/src/visited.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-08 08:06:22 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-08 08:06:22 +0300
commitd6875fba63cc674d2d9cac64a66c3b4c9f3eaba1 (patch)
treea12111a19b594fc17792a7a851d1526597470121 /src/visited.h
parent9abe27c63e088bf1e139d108cbc29ac39222d74c (diff)
Moved recent URLs history to DocumentWidget
App maintains the visited URLs database, but each DocumentWidget has its own stack of recent URLs for timeline navigation.
Diffstat (limited to 'src/visited.h')
-rw-r--r--src/visited.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/visited.h b/src/visited.h
new file mode 100644
index 00000000..2f8382c7
--- /dev/null
+++ b/src/visited.h
@@ -0,0 +1,25 @@
1#pragma once
2
3#include "gmrequest.h"
4
5#include <the_Foundation/array.h>
6#include <the_Foundation/string.h>
7#include <the_Foundation/time.h>
8
9iDeclareType(VisitedUrl)
10iDeclareTypeConstruction(VisitedUrl)
11
12struct Impl_VisitedUrl {
13 iString url;
14 iTime when;
15};
16
17iDeclareType(Visited)
18iDeclareTypeConstruction(Visited)
19
20void clear_Visited (iVisited *);
21void load_Visited (iVisited *, const char *dirPath);
22void save_Visited (const iVisited *, const char *dirPath);
23
24iTime urlVisitTime_Visited (const iVisited *, const iString *url);
25void visitUrl_Visited (iVisited *, const iString *url); /* adds URL to the visited URLs set */