blob: 374c78f7208ed0b15482c6a7a0a7945b6d45b39c [file] [log] [blame]
adamdunkels1e45c6d2003-09-02 21:47:27 +00001/**
2 * \file
3 * The Contiki web browser configuration file.
4 * \author Adam Dunkels <adam@dunkels.com>
5 *
6 */
7
adamdunkels0da04a82003-04-02 09:57:26 +00008/*
adamdunkels1e45c6d2003-09-02 21:47:27 +00009 * Copyright (c) 2002-2003, Adam Dunkels.
adamdunkels0da04a82003-04-02 09:57:26 +000010 * 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.
adamdunkels1e45c6d2003-09-02 21:47:27 +000021 * 3. The name of the author may not be used to endorse or promote
adamdunkels0da04a82003-04-02 09:57:26 +000022 * 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 *
adamdunkelsf8919f62004-07-04 11:37:34 +000039 * $Id: www-conf.h.example,v 1.4 2004/07/04 11:37:34 adamdunkels Exp $
adamdunkels0da04a82003-04-02 09:57:26 +000040 *
41 */
42#ifndef __WWW_CONF_H__
43#define __WWW_CONF_H__
44
adamdunkels1e45c6d2003-09-02 21:47:27 +000045/**
46 * The width of the web page viewing area, measured in characters.
47 */
adamdunkels0da04a82003-04-02 09:57:26 +000048#define WWW_CONF_WEBPAGE_WIDTH 36
adamdunkels1e45c6d2003-09-02 21:47:27 +000049
50/**
51 * The height of the web page viewing area, measured in characters.
52 */
adamdunkels0da04a82003-04-02 09:57:26 +000053#define WWW_CONF_WEBPAGE_HEIGHT 17
54
adamdunkels1e45c6d2003-09-02 21:47:27 +000055/**
56 * The size of the "Back" history.
57 */
adamdunkels0da04a82003-04-02 09:57:26 +000058#define WWW_CONF_HISTORY_SIZE 4
59
adamdunkels1e45c6d2003-09-02 21:47:27 +000060/**
61 * The maximum length of the URLs the web browser will handle.
62 */
adamdunkels0da04a82003-04-02 09:57:26 +000063#define WWW_CONF_MAX_URLLEN 100
64
adamdunkels1e45c6d2003-09-02 21:47:27 +000065/**
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 */
adamdunkels0da04a82003-04-02 09:57:26 +000072#define WWW_CONF_MAX_NUMPAGEWIDGETS 20
73
adamdunkels1e45c6d2003-09-02 21:47:27 +000074/**
adamdunkelse937ded2003-10-01 07:53:57 +000075 * Turns support for the \<center\> tag on or off, and must be on for
adamdunkels1e45c6d2003-09-02 21:47:27 +000076 * HTML forms to work.
77 */
adamdunkels0da04a82003-04-02 09:57:26 +000078#define WWW_CONF_RENDERSTATE 1
79
adamdunkels1e45c6d2003-09-02 21:47:27 +000080/**
81 * Toggles support for HTML forms.
82 */
adamdunkels0da04a82003-04-02 09:57:26 +000083#define WWW_CONF_FORMS 1
84
adamdunkels1e45c6d2003-09-02 21:47:27 +000085/**
86 * Maximum length of HTML form action URLs.
87 */
adamdunkels0da04a82003-04-02 09:57:26 +000088#define WWW_CONF_MAX_FORMACTIONLEN 40
adamdunkels1e45c6d2003-09-02 21:47:27 +000089
90/**
91 * Maximum length of HTML form name.
92 */
adamdunkels0da04a82003-04-02 09:57:26 +000093#define WWW_CONF_MAX_FORMNAMELEN 20
adamdunkels1e45c6d2003-09-02 21:47:27 +000094
95/**
96 * Maximum length of HTML form input name.
97 */
adamdunkels0da04a82003-04-02 09:57:26 +000098#define WWW_CONF_MAX_INPUTNAMELEN 20
adamdunkels1e45c6d2003-09-02 21:47:27 +000099
100/**
101 * Maximum length of HTML form input value.
102 */
adamdunkelsf8919f62004-07-04 11:37:34 +0000103#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/"
adamdunkels0da04a82003-04-02 09:57:26 +0000109
110#endif /* __WWW_CONF_H__ */