Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3584 sourcerer 1
/*
2
 * Copyright 2009 Mark Benjamin 
3
 *
4
 * This file is part of NetSurf, http://www.netsurf-browser.org/
5
 *
6
 * NetSurf is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation; version 2 of the License.
9
 *
10
 * NetSurf is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see .
17
 */
18
 
19
#ifndef _NETSURF_DESKTOP_SEARCH_WEB_H_
20
#define _NETSURF_DESKTOP_SEARCH_WEB_H_
21
 
22
#include 
23
#include 
24
#include 
25
 
26
struct browser_window;
27
struct hlcache_handle;
28
 
29
extern char *search_engines_file_location;
30
extern char *search_default_ico_location;
31
 
32
/**
33
 * open new tab/window for web search term
34
 */
35
bool search_web_new_window(struct browser_window *bw, const char *searchterm);
36
 
37
/**
38
 * retrieve full search url from unencoded search term
39
 */
40
char *search_web_from_term(const char *searchterm);
41
 
42
/**
43
 * retrieve full search url from encoded web search term
44
 */
45
char *search_web_get_url(const char *encsearchterm);
46
 
47
/**
48
 *  cache details of web search provider from file
49
 */
50
void search_web_provider_details(int reference);
51
 
52
/**
53
 * retrieve name of web search provider
54
 */
55
char *search_web_provider_name(void);
56
 
57
/**
58
 * retrieve hostname of web search provider
59
 */
60
char *search_web_provider_host(void);
61
 
62
/**
63
 * retrieve name of .ico for search bar
64
 */
65
char *search_web_ico_name(void);
66
 
67
/**
68
 * check whether an URL is in fact a search term
69
 * \param url the url being checked
70
 * \return true for url, false for search
71
 */
72
bool search_is_url(const char *url);
73
 
74
void search_web_retrieve_ico(bool localdefault);
75
 
76
struct hlcache_handle *search_web_ico(void);
77
 
78
void search_web_cleanup(void);
79
 
80
#endif