diff options
Diffstat (limited to 'src/visited.h')
-rw-r--r-- | src/visited.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/visited.h b/src/visited.h index 2f8382c7..5a34d008 100644 --- a/src/visited.h +++ b/src/visited.h | |||
@@ -1,8 +1,30 @@ | |||
1 | /* Copyright 2020 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
2 | |||
3 | Redistribution and use in source and binary forms, with or without | ||
4 | modification, are permitted provided that the following conditions are met: | ||
5 | |||
6 | 1. Redistributions of source code must retain the above copyright notice, this | ||
7 | list of conditions and the following disclaimer. | ||
8 | 2. Redistributions in binary form must reproduce the above copyright notice, | ||
9 | this list of conditions and the following disclaimer in the documentation | ||
10 | and/or other materials provided with the distribution. | ||
11 | |||
12 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
13 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
14 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
15 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
16 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
17 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
18 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
19 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
20 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
21 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | ||
22 | |||
1 | #pragma once | 23 | #pragma once |
2 | 24 | ||
3 | #include "gmrequest.h" | 25 | #include "gmrequest.h" |
4 | 26 | ||
5 | #include <the_Foundation/array.h> | 27 | #include <the_Foundation/ptrarray.h> |
6 | #include <the_Foundation/string.h> | 28 | #include <the_Foundation/string.h> |
7 | #include <the_Foundation/time.h> | 29 | #include <the_Foundation/time.h> |
8 | 30 | ||
@@ -23,3 +45,6 @@ void save_Visited (const iVisited *, const char *dirPath); | |||
23 | 45 | ||
24 | iTime urlVisitTime_Visited (const iVisited *, const iString *url); | 46 | iTime urlVisitTime_Visited (const iVisited *, const iString *url); |
25 | void visitUrl_Visited (iVisited *, const iString *url); /* adds URL to the visited URLs set */ | 47 | void visitUrl_Visited (iVisited *, const iString *url); /* adds URL to the visited URLs set */ |
48 | void removeUrl_Visited (iVisited *, const iString *url); | ||
49 | |||
50 | const iPtrArray * list_Visited (const iVisited *, size_t count); /* returns collected */ | ||