-
Notifications
You must be signed in to change notification settings - Fork 4
/
global.h
152 lines (139 loc) · 6.22 KB
/
global.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#ifndef GLOBAL_H
#define GLOBAL_H
#include <ptlib.h>
#include <ptlib/pprocess.h>
#if PTLIB_MAJOR <= 2 && PTLIB_MINOR < 10
#define PBoolean BOOL
#endif
//#include <h323pluginmgr.h>
const char strProgName[] = "QtH323Phone";
const int progMajorVersion = 0;
const int progMinorVersion = 1;
#define MF_RELEASE //*** Uncomment this when go out of "beta" versioning ***
const int progBuildVersion = 0;
const char strProgPostfix[]="";
const char strProgAuthor[]="H323plus project ([email protected])";
const char strProgWeb[]="https://www.h323plus.org/";
const char strProgWebHelp[]="https://h323plus.org/";
//
const char strProgRespects[]="\t~~~ Thanks goes to: ~~~\r\n\
* All OpenH323/H323plus developers and mailing list members\r\n\
* Franz J Ehrengruber (for testing and hardware support)\r\n\
* Guilhem Tardy (for help with the initial H.263 video codec)\r\n\
* Simon Horne (for incorporating in h323plus project)\r\n";
// Configuration Keys
const char AddressBookSection[] = "AddressBook";
const char AddressBookRescentKey[] = "RescentEntries";
const char RingSoundFileConfigKey[] = "RingSoundFile";
const char IpTosConfigKey[] = "IpTOS";
const char BandwidthTypeConfigKey[] = "BandwidthType";
const char BandwidthConfigKey[] = "Bandwidth";
const char ListenerInterfaceConfigKey[] = "ListenerInterface";
const char RouterConfigKey[] = "NATRouterAddress";
const char RTPPortBaseConfigKey[] = "RTPPortBase";
const char RTPPortMaxConfigKey[] = "RTPPortMax";
const char NoTunnelingConfigKey[] = "NoTunneling";
const char DtmfAsStringConfigKey[] = "DtmfAsString";
const char AutoAnswerConfigKey[] = "AutoAnswer";
const char UsernameConfigKey[] = "Username";
const char AliasConfigKey[] = "UserAliases";
const char UseGatekeeperConfigKey[] = "UseGatekeeper";
const char GatekeeperPassConfigKey[] = "GatekeeperPassword";
const char RequireGatekeeperConfigKey[] = "RequireGatekeeper";
const char GatekeeperHostConfigKey[] = "GatekeeperHost";
const char GatewayHostConfigKey[] = "GatewayHost";
const char DiscoverGatekeeperConfigKey[] = "DiscoverGatekeeper";
const char DiscoverGatewayConfigKey[] = "DiscoverGateway";
const char SoundPlayConfigKey[] = "SoundPlayDevice";
const char SoundRecordConfigKey[] = "SoundRecordDevice";
const char SilenceDetectConfigKey[] = "SilenceDetect";
const char JitterConfigKey[] = "Jitter";
const char CodecsConfigSection[] = "Codecs";
const char VideoCodecsConfigSection[] = "VideoCodecs";
const char NoFastStartConfigKey[] = "FastStart";
const char BufferCountConfigKey[] = "BufferCount";
const char AutoReceiveVideoConfigKey[] = "AutoReceiveVideo";
const char AutoTransmitVideoConfigKey[] = "AutoTransmitVideo";
const char VideoDeviceConfigKey[] = "VideoDevice";
const char VideoInSizeConfigKey[] = "VideoInSize";
const char VideoOutSizeConfigKey[] = "VideoOutSize";
const char VideoSourceConfigKey[] = "VideoSource";
const char VideoFormatConfigKey[] = "VideoFormat";
const char VideoQualityConfigKey[] = "VideoQuality";
const char VideoLocalConfigKey[] = "VideoLocal";
const char VideoFlipLocalConfigKey[] = "VideoFlipLocal";
const char VideoFPSKey[] = "VideoFramesPerSecond";
const char VideoInMaxbandWidthKey[] = "VideoInMaxbandwidth";
const char VideoOutMaxbandWidthKey[] = "VideoOutMaxbandwidth";
const char VideoPacketSizeConfigKey[] = "VideoPacketSize";
const char VideoInVFlipConfigKey[] = "VideoInVFlip";
const char VideoInHFlipConfigKey[] = "VideoInHFlip";
const char VideoOutVFlipConfigKey[] = "VideoOutVFlip";
const char VideoOutHFlipConfigKey[] = "VideoOutHFlip";
const char OutputVolumeConfigKey[] = "OutputVolume";
const char ColorInMessageConfigKey[] = "ColorInMessage";
const char ColorOutMessageConfigKey[] = "ColorOutMessage";
const char ColorSignalIndicatorConfigKey[] = "ColorActInd";
const char ColorSilentIndicatorConfigKey[] = "ColorSlntInd";
const char AutoVideoHideConfigKey[] = "AutoVidPanHide";
const char HideStatConfigKey[] = "HideStatistic";
const char SysLogMsgHideConfigKey[] = "HideSysLogMessages";
const char AutoAddCallersConfigKey[] = "AutoAddCallerAddr";
const char UserInputModeConfigKey[] = "UserInputMode";
const char OnCodecSuffix[] = " (On)";
const char OffCodecSuffix[] = " (Off)";
const char TimeToLiveConfigKey[] = "TimeToLive";
const char GatekeeperIdConfigKey[] = "GatekeeperId";
/*
class PluginLoaderStartup2 : public PProcessStartup
{
PCLASSINFO(PluginLoaderStartup2, PProcessStartup);
public:
void OnStartup()
{
// load the actual DLLs, which will also load the system plugins
PStringArray dirs = PPluginManager::GetPluginDirs();
PPluginManager & mgr = PPluginManager::GetPluginManager();
PINDEX i;
for (i = 0; i < dirs.GetSize(); i++)
mgr.LoadPluginDirectory(dirs[i]);
// now load the plugin module managers
PFactory<PPluginModuleManager>::KeyList_T keyList = PFactory<PPluginModuleManager>::GetKeyList();
PFactory<PPluginModuleManager>::KeyList_T::const_iterator r;
for (r = keyList.begin(); r != keyList.end(); ++r) {
PPluginModuleManager * mgr = PFactory<PPluginModuleManager>::CreateInstance(*r);
if (mgr == NULL) {
PTRACE(1, "PLUGIN\tCannot create manager for plugins of type " << *r);
} else {
PTRACE(3, "PLUGIN\tCreated manager for plugins of type " << *r);
managers.push_back(mgr);
}
}
}
void OnShutdown()
{
while (managers.begin() != managers.end()) {
std::vector<PPluginModuleManager *>::iterator r = managers.begin();
PPluginModuleManager * mgr = *r;
managers.erase(r);
mgr->OnShutdown();
}
}
protected:
std::vector<PPluginModuleManager *> managers;
};
/*
class PWLibProcess : public PProcess
{
PCLASSINFO(PWLibProcess, PProcess);
public:
PWLibProcess():PProcess(strProgName, strProgName, progMajorVersion, progMinorVersion, ReleaseCode, progBuildVersion) { }
void Main() { }
// This is to get the plugins to load in MFC applications
static void LoadPluginMgr() { plugmgr = new H323PluginCodecManager(); }
static void RemovePluginMgr() { delete plugmgr; }
static H323PluginCodecManager * plugmgr;
//static PluginLoaderStartup2 pluginLoader;
};
*/
#endif // GLOBAL_H