blob: 5178724188a3cda594758d13683048fbc037c98f [file] [log] [blame]
kthacker62e146c2006-04-17 15:11:35 +00001/**
2 * \file
3 * The Contiki web browser configuration file.
4 * \author Adam Dunkels <adam@dunkels.com>
5 *
6 */
7
8/*
9 * Copyright (c) 2002-2003, Adam Dunkels.
10 * All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above
18 * copyright notice, this list of conditions and the following
19 * disclaimer in the documentation and/or other materials provided
20 * with the distribution.
21 * 3. The name of the author may not be used to endorse or promote
22 * products derived from this software without specific prior
23 * written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
26 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
29 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
31 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * This file is part of the Contiki desktop environment
38 *
39 * $Id: www-conf.h,v 1.1 2006/04/17 15:11:47 kthacker Exp $
40 *
41 */
42#ifndef __WWW_CONF_H__
43#define __WWW_CONF_H__
44
45/**
46 * The width of the web page viewing area, measured in characters.
47 */
48#define WWW_CONF_WEBPAGE_WIDTH 36
49
50/**
51 * The height of the web page viewing area, measured in characters.
52 */
53#define WWW_CONF_WEBPAGE_HEIGHT 17
54
55/**
56 * The size of the "Back" history.
57 */
58#define WWW_CONF_HISTORY_SIZE 4
59
60/**
61 * The maximum length of the URLs the web browser will handle.
62 */
63#define WWW_CONF_MAX_URLLEN 100
64
65/**
66 * The maxiumum number of widgets (i.e., hyperlinks, form elements) on
67 * a single web page view.
68 *
69 * \note This does not limit the total number of widgets in a web
70 * page, only the number of widget that are visible simultaneously.
71 */
72#define WWW_CONF_MAX_NUMPAGEWIDGETS 20
73
74/**
75 * Turns support for the \<center\> tag on or off, and must be on for
76 * HTML forms to work.
77 */
78#define WWW_CONF_RENDERSTATE 1
79
80/**
81 * Toggles support for HTML forms.
82 */
83#define WWW_CONF_FORMS 1
84
85/**
86 * Maximum length of HTML form action URLs.
87 */
88#define WWW_CONF_MAX_FORMACTIONLEN 40
89
90/**
91 * Maximum length of HTML form name.
92 */
93#define WWW_CONF_MAX_FORMNAMELEN 20
94
95/**
96 * Maximum length of HTML form input name.
97 */
98#define WWW_CONF_MAX_INPUTNAMELEN 20
99
100/**
101 * Maximum length of HTML form input value.
102 */
103#define WWW_CONF_MAX_INPUTVALUELEN (WWW_CONF_WEBPAGE_WIDTH - 1)
104
105/**
106 * The defaule home page.
107 */
108#define WWW_CONF_HOMEPAGE "http://contiki.c64.org/"
109
110#endif /* __WWW_CONF_H__ */