2003-01-03_settings.h

来自「JK Proxy Project - Version 0.1 --------」· C头文件 代码 · 共 48 行

H
48
字号
/*
+-----------------------------------------------------------------------------+
|                                                                             |
|   settings.h                                                                |
|   Last change: yyyy-mm-dd                                                   |
|                                                                             |
|   Author: Jan Krumsiek                                                      |
|   eMail:  proxy@krumsiek.com                                                |
|   Web:    http://www.krumsiek.com/proxy                                     |
|                                                                             |
|   Copyright 2003 - Jan Krumsiek                                             |
|   This source code can freely be modified and redistributed. No liability   |
|   whatsoever is taken by the author for any use of this software.           |
|                                                                             |
|   Description:                                                              |
|   Header file for settings.cpp. Contains declaration of settings struct     |
|                                                                             |
+-----------------------------------------------------------------------------+
*/

#ifndef _settings_h_
#define _settings_h_

#include "rulefile.h"

// Main settings struct - this struct holds all settings
typedef struct s_MAINSETTINGS
{
	struct s_emailsettings
	{
		RULEFILE* rules;
		CHARPTR rulefile;
		USHORT port;
		CHARPTR archivedir;
		CHARPTR trashdir;

	} emailsettings;

} MAINSETTINGS;

// Variable for settings
extern MAINSETTINGS mainset;

// Enumeration for types of main setting commands
enum MAINSETTYPE {MS_EMAILRULES, MS_EMAILPORT, MS_EMAILTRASH, 
				MS_UNKNOWN};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?