forked from Blup1980/microsip_42
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.h
155 lines (135 loc) · 3.2 KB
/
settings.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
153
154
155
/*
* Copyright (C) 2011-2020 MicroSIP (http://www.microsip.org)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#pragma once
#include "global.h"
struct AccountSettings {
int accountId;
Account account;
Account accountLocal;
bool singleMode;
CString ringtone;
CString audioRingDevice;
CString audioOutputDevice;
CString audioInputDevice;
bool micAmplification;
bool swLevelAdjustment;
CString audioCodecs;
bool vad;
bool ec;
bool forceCodec;
CString recordingPath;
CString recordingFormat;
bool autoRecording;
CString videoCaptureDevice;
CString videoCodec;
bool videoH264;
bool videoH263;
bool videoVP8;
int videoBitrate;
bool rport;
int sourcePort;
int rtpPortMin;
int rtpPortMax;
bool dnsSrv;
CString dnsSrvNs;
CString stun;
bool enableSTUN;
int DTMFMethod;
bool AA;
bool AC;
bool DND;
CString autoAnswer;
int autoAnswerDelay;
CString denyIncoming;
CString usersDirectory;
CString defaultAction;
bool enableMediaButtons;
bool localDTMF;
bool enableLocalAccount;
bool crashReport;
bool enableLog;
bool bringToFrontOnIncoming;
bool randomAnswerBox;
CString userAgent;
CString portKnockerHost;
CString portKnockerPorts;
CString lastCallNumber;
bool lastCallHasVideo;
CString updatesInterval;
int activeTab;
bool alwaysOnTop;
int mainX;
int mainY;
int mainW;
int mainH;
bool noResize;
int messagesX;
int messagesY;
int messagesW;
int messagesH;
int ringinX;
int ringinY;
int callsWidth0;
int callsWidth1;
int callsWidth2;
int callsWidth3;
int callsWidth4;
int contactsWidth0;
int contactsWidth1;
int contactsWidth2;
int volumeRing;
int volumeOutput;
int volumeInput;
CString iniFile;
CString logFile;
CString exeFile;
CString pathRoaming;
CString pathLocal;
CString pathExe;
int checkUpdatesTime;
bool hidden;
bool silent;
int autoHangUpTime;
int maxConcurrentCalls;
bool callWaiting;
bool noIgnoreCall;
CString cmdOutgoingCall;
CString cmdIncomingCall;
CString cmdCallRing;
CString cmdCallAnswer;
CString cmdCallBusy;
CString cmdCallStart;
CString cmdCallEnd;
bool enableShortcuts;
bool shortcutsBottom;
AccountSettings();
void Init();
bool AccountLoad(int id, Account *account);
void AccountSave(int id, Account *account);
void AccountDelete(int id);
void SettingsSave();
};
extern AccountSettings accountSettings;
extern bool firstRun;
extern bool pj_ready;
extern CTime startTime;
CString ShortcutEncode(Shortcut *pShortcut);
void ShortcutDecode(CString str, Shortcut *pShortcut);
void ShortcutsLoad();
void ShortcutsSave();
extern CArray<Shortcut,Shortcut> shortcuts;