summaryrefslogtreecommitdiff
path: root/src/lookup.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-06 09:27:14 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-06 09:27:14 +0300
commit6bd9fbffec920c103d27bf780d60de314316bbd5 (patch)
treed87aa9226a1a1ed7a6a77652266aae4bbd78cb14 /src/lookup.h
parent8d249e27e6dda6423af93aa4368a81b13cd3f451 (diff)
Added a LookupWidget with background thread
Diffstat (limited to 'src/lookup.h')
-rw-r--r--src/lookup.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/lookup.h b/src/lookup.h
new file mode 100644
index 00000000..ecbe0036
--- /dev/null
+++ b/src/lookup.h
@@ -0,0 +1,46 @@
1/* Copyright 2020 Jaakko Keränen <jaakko.keranen@iki.fi>
2
3Redistribution and use in source and binary forms, with or without
4modification, are permitted provided that the following conditions are met:
5
61. Redistributions of source code must retain the above copyright notice, this
7 list of conditions and the following disclaimer.
82. 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
12THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19ANY 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
21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
22
23#pragma once
24
25#include <the_Foundation/string.h>
26#include <the_Foundation/time.h>
27
28iDeclareType(LookupResult)
29
30enum iLookupResultType {
31 none_LookupResultType,
32 bookmark_LookupResultType,
33 history_LookupResultType, /* visited URLs */
34 content_LookupResultType, /* one of the pages in history, including current page */
35 identity_LookupResultType,
36};
37
38struct Impl_LookupResult {
39 enum iLookupResultType type;
40 iString label;
41 iString url;
42 iString meta;
43 iTime when;
44};
45
46iDeclareTypeConstruction(LookupResult)