ReactOS 0.4.15-dev-6047-gb29e82d
config.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS HTTP Daemon
4 * FILE: include/config.h
5 */
6#ifndef __CONFIG_H
7#define __CONFIG_H
8
9#include <httpd.h>
10#include <list.h>
11
12// General constants
13#define APP_DESCRIPTION _T("ReactOS HTTP Daemon")
14
15// Default configuration
16#define dcfgDescription _T("Default configuration")
17#define dcfgMainBase _T("C:\\roshttpd\\")
18#define dcfgHttpBase _T("C:\\roshttpd\\HttpBase\\")
19#define dcfgDefaultResource _T("index.html")
20#define dcfgDefaultPort 80
21
22class CConfig {
23public:
24 CConfig();
25 ~CConfig();
26 VOID Default();
27 VOID Clear();
28 BOOL Load();
29 BOOL Save();
31 VOID SetMainBase(LPWSTR lpwsMainBase);
33 VOID SetHttpBase(LPSTR lpsHttpBase);
36 VOID SetPort(USHORT wPort);
37private:
38 VOID Reset();
43};
45
48
49#endif /* __CONFIG_H */
Definition: config.h:22
VOID SetMainBase(LPWSTR lpwsMainBase)
Definition: config.cpp:98
VOID Clear()
Definition: config.cpp:62
LPSTR HttpBase
Definition: config.h:40
VOID SetHttpBase(LPSTR lpsHttpBase)
Definition: config.cpp:110
BOOL Save()
Definition: config.cpp:86
LPSTR GetHttpBase()
Definition: config.cpp:104
VOID Default()
Definition: config.cpp:42
LPWSTR GetMainBase()
Definition: config.cpp:92
VOID Reset()
Definition: config.cpp:34
LPWSTR MainBase
Definition: config.h:39
CList< LPSTR > DefaultResources
Definition: config.h:41
USHORT Port
Definition: config.h:42
~CConfig()
Definition: config.cpp:28
BOOL Load()
Definition: config.cpp:79
CConfig()
Definition: config.cpp:22
USHORT GetPort()
Definition: config.cpp:122
CList< LPSTR > * GetDefaultResources()
Definition: config.cpp:116
Definition: list.h:34
unsigned int BOOL
Definition: ntddk_ex.h:94
LPCConfig pConfiguration
Definition: config.cpp:18
CConfig * LPCConfig
Definition: config.h:44
LPCHttpDaemonThread pDaemonThread
Definition: config.cpp:19
unsigned short USHORT
Definition: pedump.c:61
#define SetPort
Definition: winspool.h:1247
char * LPSTR
Definition: xmlstorage.h:182
WCHAR * LPWSTR
Definition: xmlstorage.h:184