Annotation of libwww/Library/src/HTAlert.html, revision 2.7

2.6       timbl       1: <HTML>
                      2: <HEAD>
                      3: <TITLE>/Net/dxcern/userd/timbl/hypertext/WWW/Library/Implementation/HTAlert.html</TITLE>
                      4: <NEXTID N="z3">
                      5: </HEAD>
                      6: <BODY>
                      7: <H1>Displaying messages and getting input
                      8: for <A
                      9: NAME="z0" HREF="Overview.html">WWW Library</A></H1>This module may be overridden for
                     10: GUI clients.    It allows progress
                     11: indications and warning messages
                     12: to be communicated to the user in
                     13: a portable way.  It should be used
                     14: for this purpose throughout the library
                     15: but isn't yet (July 93)
                     16: <UL>
                     17: <LI>May 92 Created By C.T. Barker
                     18: <LI>Feb 93 Portablized etc TBL
                     19: </UL>
                     20: <PRE>#include <A
                     21: NAME="z1" HREF="HTUtils.html">"HTUtils.h"</A>
                     22: #include <A
                     23: NAME="z2" HREF="tcp.html">"tcp.h"</A>
                     24: 
                     25: </PRE>
2.7     ! luotonen   26: <H2>HTPrompt and HTPromptPassword: Display a message and get
2.6       timbl      27: the input</H2>
2.7     ! luotonen   28: HTPromptPassword() doesn't echo reply on the screen.
2.6       timbl      29: <H3>On entry,</H3>
                     30: <DL>
                     31: <DT>Msg
                     32: <DD> String to be displayed.
2.7     ! luotonen   33: <DT>deflt
        !            34: <DD> If NULL the default value (only for HTPrompt())
2.6       timbl      35: </DL>
                     36: 
                     37: <H3>On exit,</H3>
                     38: <DL>
                     39: <DT>Return value
                     40: <DD> is malloc'd string which
                     41: must be freed.
                     42: </DL>
                     43: 
                     44: <PRE>          
1.1       timbl      45: extern char * HTPrompt PARAMS((CONST char * Msg, CONST char * deflt));
2.7     ! luotonen   46: extern char * HTPromptPassword PARAMS((CONST char * Msg));
1.1       timbl      47: 
                     48: 
2.6       timbl      49: </PRE>
                     50: <H2>Display a message, don't wait for
                     51: input</H2>
                     52: <H3>On entry,</H3>
                     53: <DL>
                     54: <DT>Msg
                     55: <DD> String to be displayed.
                     56: </DL>
                     57: 
                     58: <PRE>
1.1       timbl      59: extern void HTAlert PARAMS((CONST char * Msg));
                     60: 
                     61: 
2.6       timbl      62: </PRE>
                     63: <H2>Display a progress message for information
                     64: (and diagnostics) only</H2>
                     65: <H3>On entry,</H3>The input is a list of parameters
                     66: for printf.
                     67: <PRE>extern void HTProgress PARAMS((CONST char * Msg));
                     68: 
                     69: 
                     70: </PRE>
                     71: <H2>Display a message, then wait for
                     72: 'yes' or 'no'.</H2>
                     73: <H3>On entry,</H3>
                     74: <DL>
                     75: <DT>Msg
                     76: <DD> String to be displayed
                     77: </DL>
                     78: 
                     79: <H3>On exit,</H3>
                     80: <DL>
                     81: <DT>Returns
                     82: <DD> If the user reacts in the
                     83: affirmative, returns TRUE, returns
                     84: FALSE otherwise.
                     85: </DL>
                     86: 
                     87: <PRE>
1.1       timbl      88: extern BOOL HTConfirm PARAMS ((CONST char * Msg));
2.6       timbl      89: 
                     90: 
                     91: 
                     92: 
                     93: </PRE></BODY>
                     94: </HTML>

Webmaster