3
3
* Ekiga -- A VoIP and Video-Conferencing application
4
* Copyright (C) 2000-2007 Damien Sandras
4
* Copyright (C) 2000-2009 Damien Sandras <dsandras@seconix.com>
6
6
* This program is free software; you can redistribute it and/or modify
7
7
* it under the terms of the GNU General Public License as published by
91
91
void boolean (const std::string name,
92
92
const std::string description,
94
bool advanced = false);
95
96
void text (const std::string text,
96
97
const std::string description,
97
const std::string value);
98
const std::string value,
99
const std::string tooltip,
100
bool advanced = false);
99
102
void private_text (const std::string text,
100
103
const std::string description,
101
const std::string value);
104
const std::string value,
105
const std::string tooltip,
106
bool advanced = false);
103
108
void multi_text (const std::string text,
104
109
const std::string description,
105
const std::string value);
110
const std::string value,
111
bool advanced = false);
107
113
void single_choice (const std::string name,
108
114
const std::string description,
109
115
const std::string value,
110
const std::map<std::string, std::string> choices);
116
const std::map<std::string, std::string> choices,
117
bool advanced = false);
112
119
void multiple_choice (const std::string name,
113
120
const std::string description,
114
121
const std::set<std::string> values,
115
const std::map<std::string, std::string> choices);
122
const std::map<std::string, std::string> choices,
123
bool advanced = false);
117
125
void editable_set (const std::string name,
118
126
const std::string description,
119
127
const std::set<std::string> values,
120
const std::set<std::string> proposed_values);
128
const std::set<std::string> proposed_values,
129
bool advanced = false);
123
132
struct HiddenField
129
138
const std::string name;
130
139
const std::string value;
133
143
struct BooleanField
135
145
BooleanField (const std::string _name,
136
146
const std::string _description,
137
bool _value): name(_name), description(_description),
148
bool _advanced): name(_name), description(_description),
149
value(_value), advanced(_advanced)
141
152
const std::string name;
142
153
const std::string description;
148
160
TextField (const std::string _name,
149
161
const std::string _description,
150
const std::string _value): name(_name),
151
description(_description),
162
const std::string _value,
163
const std::string _tooltip,
164
bool _advanced): name(_name),
165
description(_description),
166
value(_value), tooltip (_tooltip), advanced(_advanced)
155
169
const std::string name;
156
170
const std::string description;
157
171
const std::string value;
172
const std::string tooltip;
160
176
struct MultiTextField
162
178
MultiTextField (const std::string _name,
163
179
const std::string _description,
164
const std::string _value): name(_name),
165
description(_description),
180
const std::string _value,
181
bool _advanced): name(_name),
182
description(_description),
183
value(_value), advanced(_advanced)
169
186
const std::string name;
170
187
const std::string description;
171
188
const std::string value;
174
192
struct SingleChoiceField
176
194
SingleChoiceField (const std::string _name,
177
195
const std::string _description,
178
196
const std::string _value,
179
const std::map<std::string, std::string> _choices):
197
const std::map<std::string, std::string> _choices,
180
199
name(_name), description(_description),
181
value(_value), choices(_choices)
200
value(_value), choices(_choices), advanced(_advanced)
184
203
const std::string name;
185
204
const std::string description;
186
205
const std::string value;
187
206
const std::map<std::string, std::string> choices;
193
213
MultipleChoiceField (const std::string _name,
194
214
const std::string _description,
195
215
const std::set<std::string> _values,
196
const std::map<std::string, std::string> _choices):
216
const std::map<std::string, std::string> _choices,
197
218
name(_name), description(_description),
198
values(_values), choices(_choices)
219
values(_values), choices(_choices), advanced(_advanced)
201
222
const std::string name;
202
223
const std::string description;
203
224
const std::set<std::string> values;
204
225
const std::map<std::string, std::string> choices;
207
229
struct EditableSetField
209
231
EditableSetField (const std::string _name,
210
232
const std::string _description,
211
233
const std::set<std::string> _values,
212
const std::set<std::string> _proposed_values):
234
const std::set<std::string> _proposed_values,
213
236
name(_name), description(_description),
214
values(_values), proposed_values(_proposed_values)
237
values(_values), proposed_values(_proposed_values), advanced(_advanced)
217
240
const std::string name;
218
241
const std::string description;
219
242
const std::set<std::string> values;
220
243
const std::set<std::string> proposed_values;