Annotation of libwww/Library/src/WWWApp.html, revision 2.9

2.1       frystyk     1: <HTML>
                      2: <HEAD>
2.9     ! frystyk     3: <TITLE>W3C Reference Library libwww APPLICATION</TITLE>
2.7       frystyk     4: <!-- Changed by: Henrik Frystyk Nielsen,  1-Feb-1996 -->
2.1       frystyk     5: <NEXTID N="z11">
                      6: </HEAD>
                      7: <BODY>
                      8: 
2.2       frystyk     9: <H1>Non-Mandatory Application Include File</H1>
2.1       frystyk    10: 
                     11: <PRE>
                     12: /*
                     13: **     (c) COPYRIGHT MIT 1995.
                     14: **     Please first read the full copyright statement in the file COPYRIGH.
                     15: */
                     16: </PRE>
                     17: 
                     18: In addition top the basic W3C Reference Library include file called <A
                     19: HREF="WWWLib.html">WWWLib.h</A> you <EM>can</EM> also include this
                     20: file called WWWApp.h depending on the needs of your
                     21: application. However, it is not required and none of the files
                     22: included below are ever used in the core part of the Library
                     23: itself. Only if this file is included, the extra modules will get
                     24: included in the linked object code. It is also possible to include
                     25: only a subset of the files below if the functionality you are after is
                     26: covered by them.
                     27: 
                     28: <PRE>
                     29: #ifndef WWWAPP_H
                     30: #define WWWAPP_H
                     31: </PRE>
                     32: 
                     33: <PRE>
                     34: #ifdef __cplusplus
                     35: extern "C" { 
                     36: #endif
                     37: </PRE>
                     38: 
2.7       frystyk    39: <H2>Generating the First Anchor</H2>
2.2       frystyk    40: 
                     41: This module provides some "make life easier" functions in order to get
                     42: the application going. They help you generate the first anchor, also
                     43: called the <EM>home anchor</EM>. It also contains a nice set of
                     44: default WWW addresses.
                     45: 
                     46: <PRE>
                     47: #include "<A HREF="HTHome.html">HTHome.h</A>"
2.1       frystyk    48: </PRE>
                     49: 
2.8       frystyk    50: <H2>User Dialogs and Messages</H2>
                     51: 
                     52: You can register a set of callback functions to handle user prompting,
                     53: error messages, confimations etc. Here we give a set of functions that
                     54: can be used on almost anu thinkable platform. If you want to provide
                     55: your own platform dependent implementation then fine :-)
                     56: 
                     57: <PRE>
                     58: #include "<A HREF="HTDialog.html">HTDialog.h</A>"
                     59: </PRE>
                     60: 
                     61: <H2>After Terminating a Request</H2>
2.3       frystyk    62: 
                     63: When a request is terminated, the application often has to do some
                     64: action as a result of the request (and of the result of the
                     65: request). The Application part of the Library provides two following
                     66: modules to handle <EM>logging</EM> and <EM>history
                     67: management</EM>. You can register a <EM>POST request handler</EM> in
                     68: the <A HREF="HTNet.html">Net Manager</A> as described in the <A
2.4       frystyk    69: HREF="../User/Using/Overview.html">User's Guide</A>. <P>
                     70: 
                     71: You can find a function called <CODE>HTLoadTerminate</CODE> in the <A
2.5       frystyk    72: HREF="HTHome.html">HTHome module</A> that enables all the functionality
2.4       frystyk    73: for handling a request result.
2.3       frystyk    74: 
                     75: <H3>Logging</H3>
2.1       frystyk    76: 
                     77: Often it is required to log the requests issued to the Library. This
                     78: can either be the case if the application is a server or it can also
                     79: be useful in a client application. This module provides a simple
                     80: logging mechanism which can be enabled if needed.
                     81: 
                     82: <PRE>
2.2       frystyk    83: #include "<A HREF="HTLog.html">HTLog.h</A>"
2.1       frystyk    84: </PRE>
                     85: 
2.3       frystyk    86: <H3>History Management</H3>
2.1       frystyk    87: 
                     88: Another type of logging is keeping track of which documents a user has
                     89: visited when browsing along on the Web. The Library history manager
                     90: provides a basic set of functionality to keep track of a linear
                     91: history list.
                     92: 
                     93: <PRE>
2.2       frystyk    94: #include "<A HREF="HTHist.html">HTHist.h</A>"
2.1       frystyk    95: </PRE>
                     96: 
                     97: End of application specific modules
                     98: 
                     99: <PRE>
                    100: #ifdef __cplusplus
                    101: } /* end extern C definitions */
                    102: #endif
                    103: 
                    104: #endif
                    105: </PRE>
                    106: 
                    107: End of WWWAPP definition
                    108: 
                    109: </BODY>
                    110: </HTML>

Webmaster