blob: 0c5b692bc8b1232e66a3846319ac8a590fee410b (
plain)
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
/* This file is part of the KDE project
Copyright (C) 2002 Carsten Pfeiffer <[email protected]>
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; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "mrml_shared.h"
// mrml stuff
const QString * MrmlShared::m_sessionId = 0L;
const QString * MrmlShared::m_transactionId = 0L;
const QString * MrmlShared::m_algorithm = 0L;
const QString * MrmlShared::m_algorithmId = 0L;
const QString * MrmlShared::m_algorithmName = 0L;
const QString * MrmlShared::m_algorithmList = 0L;
const QString * MrmlShared::m_algorithmType = 0L;
const QString * MrmlShared::m_collectionId = 0L;
const QString * MrmlShared::m_collectionList = 0L;
const QString * MrmlShared::m_collection = 0L;
const QString * MrmlShared::m_collectionName = 0L;
const QString * MrmlShared::m_queryParadigm = 0L;
const QString * MrmlShared::m_queryParadigmList = 0L;
const QString * MrmlShared::m_configureSession = 0L;
const QString * MrmlShared::m_propertySheet = 0L;
const QString * MrmlShared::m_propertySheetId = 0L;
const QString * MrmlShared::m_propertySheetType = 0L;
const QString * MrmlShared::m_sendName = 0L;
const QString * MrmlShared::m_sendType = 0L;
const QString * MrmlShared::m_sendValue = 0L;
const QString * MrmlShared::m_maxSubsetSize = 0L;
const QString * MrmlShared::m_minSubsetSize = 0L;
const QString * MrmlShared::m_caption = 0L;
const QString * MrmlShared::m_from = 0L;
const QString * MrmlShared::m_to = 0L;
const QString * MrmlShared::m_step = 0L;
const QString * MrmlShared::m_sendBooleanInverted = 0L;
const QString * MrmlShared::m_element = 0L;
const QString * MrmlShared::m_attribute = 0L;
const QString * MrmlShared::m_attributeName = 0L;
const QString * MrmlShared::m_attributeValue = 0L;
const QString * MrmlShared::m_children = 0L;
const QString * MrmlShared::m_none = 0L;
const QString * MrmlShared::m_multiSet = 0L;
const QString * MrmlShared::m_subset = 0L;
const QString * MrmlShared::m_setElement = 0L;
const QString * MrmlShared::m_boolean = 0L;
const QString * MrmlShared::m_numeric = 0L;
const QString * MrmlShared::m_textual = 0L;
const QString * MrmlShared::m_panel = 0L;
const QString * MrmlShared::m_clone = 0L;
const QString * MrmlShared::m_reference = 0L;
const QString * MrmlShared::m_visibility = 0L;
const QString * MrmlShared::m_visible = 0L;
const QString * MrmlShared::m_invisible = 0L;
const QString * MrmlShared::m_popup = 0L;
// const QString * MrmlShared::m_ = 0L;
// meta-data
const QString * MrmlShared::m_mrml_data = 0L;
// kio_mrml tasks
const QString * MrmlShared::m_kio_task = 0L;
const QString * MrmlShared::m_kio_initialize = 0L;
const QString * MrmlShared::m_kio_startQuery = 0L;
int MrmlShared::s_references = 0;
void MrmlShared::ref()
{
if ( s_references == 0 )
init();
s_references++;
}
bool MrmlShared::deref()
{
if ( s_references > 0 )
s_references--;
if ( s_references == 0 )
{
// ### delete all strings here...
return true;
}
return false;
}
void MrmlShared::init()
{
m_sessionId = new QString ( "session-id" ) ;
m_transactionId = new QString ( "transaction-id" ) ;
m_algorithm = new QString ( "algorithm" ) ;
m_algorithmId = new QString ( "algorithm-id" ) ;
m_algorithmName = new QString ( "algorithm-name" ) ;
m_algorithmList = new QString ( "algorithm-list" ) ;
m_algorithmType = new QString ( "algorithm-type" ) ;
m_collectionId = new QString ( "collection-id" ) ;
m_collectionList = new QString ( "collection-list" ) ;
m_collection = new QString ( "collection" ) ;
m_collectionName = new QString ( "collection-name" ) ;
m_queryParadigm = new QString ( "query-paradigm" ) ;
m_queryParadigmList = new QString ( "query-paradigm-list" ) ;
m_configureSession = new QString ( "configure-session" ) ;
m_propertySheet = new QString ( "property-sheet" ) ;
m_propertySheetId = new QString ( "property-sheet-id" ) ;
m_propertySheetType = new QString ( "property-sheet-type" ) ;
m_sendName = new QString ( "send-name" ) ;
m_sendType = new QString ( "send-type" ) ;
m_sendValue = new QString ( "send-value" ) ;
m_maxSubsetSize = new QString ( "maxsubsetsize" ) ;
m_minSubsetSize = new QString ( "minsubsetsize" ) ;
m_caption = new QString ( "caption" ) ;
m_from = new QString ( "from" ) ;
m_to = new QString ( "to" ) ;
m_step = new QString ( "step" ) ;
m_sendBooleanInverted = new QString ( "send-boolean-inverted" ) ;
m_element = new QString ( "element" ) ;
m_attribute = new QString ( "attribute" ) ;
m_attributeName = new QString ( "attribute-name" ) ;
m_attributeValue = new QString ( "attribute-value" ) ;
m_children = new QString ( "children" ) ;
m_none = new QString ( "none" ) ;
m_multiSet = new QString ( "multi-set" ) ;
m_subset = new QString ( "subset" ) ;
m_setElement = new QString ( "set-element" ) ;
m_boolean = new QString ( "boolean" ) ;
m_numeric = new QString ( "numeric" ) ;
m_textual = new QString ( "textual" ) ;
m_panel = new QString ( "panel" ) ;
m_clone = new QString ( "clone" ) ;
m_reference = new QString ( "reference" ) ;
m_visibility = new QString ( "visibility" ) ;
m_visible = new QString ( "visible" ) ;
m_invisible = new QString ( "invisible" ) ;
m_popup = new QString ( "popup" ) ;
// m_ = new QString ( "" ) ;
// meta-data
m_mrml_data = new QString ( "mrml_data" ) ;
// kio_mrml tasks
m_kio_task = new QString ( "kio_task" ) ;
m_kio_initialize = new QString ( "kio_initialize" ) ;
m_kio_startQuery = new QString ( "kio_startQuery" ) ;
}
void MrmlShared::cleanup()
{
delete m_sessionId;
delete m_transactionId;
delete m_algorithm;
delete m_algorithmId;
delete m_algorithmName;
delete m_algorithmList;
delete m_algorithmType;
delete m_collectionId;
delete m_collectionList;
delete m_collection;
delete m_collectionName;
delete m_queryParadigm;
delete m_queryParadigmList;
delete m_configureSession;
// property sheet stuff
delete m_propertySheet;
delete m_propertySheetId;
delete m_propertySheetType;
delete m_sendName;
delete m_sendType;
delete m_sendValue;
delete m_maxSubsetSize;
delete m_minSubsetSize;
delete m_caption;
delete m_from;
delete m_to;
delete m_step;
delete m_sendBooleanInverted;
delete m_multiSet;
delete m_subset;
delete m_setElement;
delete m_boolean;
delete m_numeric;
delete m_textual;
delete m_panel;
delete m_clone;
delete m_reference;
delete m_element;
delete m_attribute;
delete m_attributeName;
delete m_attributeValue;
delete m_children;
delete m_none;
delete m_visibility;
delete m_visible;
delete m_invisible;
delete m_popup;
// delete m_;
// meta-data
delete m_mrml_data;
// kio_mrml tasks
delete m_kio_task;
delete m_kio_initialize;
delete m_kio_startQuery;
}
|