Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

w32log.h

Go to the documentation of this file.
00001 #ifndef W32LOG_H_INCLUDED
00002 #define W32LOG_H_INCLUDED
00003 #define W32LOG_H_VERSION "$Id: w32log.h,v 2.0 2002/06/04 14:34:21 jongfoster Exp $"
00004 /* ******************************************************************
00005  * $Source: /cvsroot/ijbswa/current/src/w32log.h,v $
00006  * ******************************************************************
00007  *
00008  * Written by and Copyright (C) 2001-2002 members of
00009  * the Privoxy team.  http://www.privoxy.org/
00010  * 
00011  * Written by and Copyright (C) 1999 Adam Lock
00012  * <locka@iol.ie>
00013  * 
00014  * This program is free software; you can redistribute it
00015  * and/or modify it under the terms of the GNU General
00016  * Public License as published by the Free Software
00017  * Foundation; either version 2 of the License, or (at
00018  * your option) any later version.
00019  * 
00020  * This program is distributed in the hope that it will
00021  * be useful, but WITHOUT ANY WARRANTY; without even the
00022  * implied warranty of MERCHANTABILITY or FITNESS FOR A
00023  * PARTICULAR PURPOSE.  See the GNU General Public
00024  * License for more details.
00025  * 
00026  * The GNU General Public License should be included with
00027  * this file.  If not, you can view it at
00028  * http://www.gnu.org/copyleft/gpl.html
00029  * or write to the Free Software Foundation, Inc., 59
00030  * Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00031  * 
00032  * *****************************************************************/
00033 /**
00034  * @file
00035  *
00036  * Functions for creating and destroying the log window,
00037  * ouputting strings, processing messages and so on.
00038  * 
00039  *
00040  * $Log: w32log.h,v $
00041  * Revision 2.0  2002/06/04 14:34:21  jongfoster
00042  * Moving source files to src/
00043  * 
00044  * Revision 1.10  2002/03/26 22:57:10  jongfoster
00045  * Web server name should begin www.
00046  * 
00047  * Revision 1.9  2002/03/24 12:03:47  jongfoster
00048  * Name change
00049  * 
00050  * Revision 1.8  2001/07/30 22:08:36  jongfoster
00051  * Tidying up #defines:
00052  * - All feature #defines are now of the form FEATURE_xxx
00053  * - Permanently turned off WIN_GUI_EDIT
00054  * - Permanently turned on WEBDAV and SPLIT_PROXY_ARGS
00055  * 
00056  * Revision 1.7  2001/07/29 18:43:08  jongfoster
00057  * Changing #ifdef _FILENAME_H to FILENAME_H_INCLUDED, to conform to
00058  * ANSI C rules.
00059  * 
00060  * Revision 1.6  2001/07/13 14:04:59  oes
00061  * Removed all #ifdef PCRS
00062  * 
00063  * Revision 1.5  2001/06/07 23:08:12  jongfoster
00064  * Forward and ACL edit options removed.
00065  * 
00066  * Revision 1.4  2001/05/31 21:37:11  jongfoster
00067  * GUI changes to rename "permissions file" to "actions file".
00068  * 
00069  * Revision 1.3  2001/05/29 09:50:24  jongfoster
00070  * Unified blocklist/imagelist/permissionslist.
00071  * File format is still under discussion, but the internal changes
00072  * are (mostly) done.
00073  * 
00074  * Also modified interceptor behaviour:
00075  * - We now intercept all URLs beginning with one of the following
00076  *   prefixes (and *only* these prefixes):
00077  *     * http://i.j.b/
00078  *     * http://ijbswa.sf.net/config/
00079  *     * http://ijbswa.sourceforge.net/config/
00080  * - New interceptors "home page" - go to http://i.j.b/ to see it.
00081  * - Internal changes so that intercepted and fast redirect pages
00082  *   are not replaced with an image.
00083  * - Interceptors now have the option to send a binary page direct
00084  *   to the client. (i.e. ijb-send-banner uses this)
00085  * - Implemented show-url-info interceptor.  (Which is why I needed
00086  *   the above interceptors changes - a typical URL is
00087  *   "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
00088  *   The previous mechanism would not have intercepted that, and
00089  *   if it had been intercepted then it then it would have replaced
00090  *   it with an image.)
00091  * 
00092  * Revision 1.2  2001/05/26 00:28:36  jongfoster
00093  * Automatic reloading of config file.
00094  * Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
00095  * Most of the global variables have been moved to a new
00096  * struct configuration_spec, accessed through csp->config->globalname
00097  * Most of the globals remaining are used by the Win32 GUI.
00098  * 
00099  * Revision 1.1.1.1  2001/05/15 13:59:07  oes
00100  * Initial import of version 2.9.3 source tree
00101  * 
00102  * 
00103  */
00104 /* *****************************************************************/
00105 
00106 
00107 #ifdef __cplusplus
00108 extern "C" {
00109 #endif
00110 
00111 extern HWND g_hwndLogFrame;
00112 
00113 /* Indicates whether task bar shows activity animation */
00114 extern BOOL g_bShowActivityAnimation;
00115 
00116 /* Indicates if the log window appears on the task bar */
00117 extern BOOL g_bShowOnTaskBar;
00118 
00119 /* Indicates whether closing the log window really just hides it */
00120 extern BOOL g_bCloseHidesWindow;
00121 
00122 /* Indicates if messages are logged at all */
00123 extern BOOL g_bLogMessages;
00124 
00125 /* Indicates whether log messages are highlighted */
00126 extern BOOL g_bHighlightMessages;
00127 
00128 /* Indicates if buffer is limited in size */
00129 extern BOOL g_bLimitBufferSize;
00130 
00131 /* Maximum number of lines allowed in buffer when limited */
00132 extern int g_nMaxBufferLines;
00133 
00134 /* Font to use */
00135 extern char g_szFontFaceName[255];
00136 
00137 /* Size of font to use */
00138 extern int g_nFontSize;
00139 
00140 
00141 /* FIXME: this is a kludge */
00142 
00143 extern const char * g_actions_file;
00144 extern const char * g_re_filterfile;
00145 #ifdef FEATURE_TRUST
00146 extern const char * g_trustfile;
00147 #endif /* def FEATURE_TRUST */
00148 
00149 /* FIXME: end kludge */
00150 
00151 extern int LogPutString(const char *pszText);
00152 extern BOOL InitLogWindow(void);
00153 extern void TermLogWindow(void);
00154 extern void ShowLogWindow(BOOL bShow);
00155 extern void LogShowActivity(void);
00156 
00157 /* Revision control strings from this header and associated .c file */
00158 
00159 /** Version information about w32log.c. */
00160 extern const char w32log_rcs[];
00161 
00162 /** Version information about w32log.h. */
00163 extern const char w32log_h_rcs[];
00164 
00165 #ifdef __cplusplus
00166 } /* extern "C" */
00167 #endif
00168 
00169 #endif /* ndef W32LOG_H_INCLUDED */
00170 
00171 
00172 /*
00173   Local Variables:
00174   tab-width: 3
00175   end:
00176 */

Generated on Tue Jun 4 18:54:48 2002 for Privoxy 3.1.1 by doxygen1.2.15