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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
|
/****************************************************************************
** KviHttpRequest meta object code from reading C++ file 'kvi_http.h'
**
** Created: Sun Mar 23 20:56:22 2008
** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.3.8 edited Feb 2 14:59 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#undef QT_NO_COMPAT
#include "kvi_http.h"
#include <qmetaobject.h>
#include <qapplication.h>
#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.3.8. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
const char *KviHttpRequest::className() const
{
return "KviHttpRequest";
}
QMetaObject *KviHttpRequest::metaObj = 0;
static QMetaObjectCleanUp cleanUp_KviHttpRequest( "KviHttpRequest", &KviHttpRequest::staticMetaObject );
#ifndef QT_NO_TRANSLATION
QString KviHttpRequest::tr( const char *s, const char *c )
{
if ( qApp )
return qApp->translate( "KviHttpRequest", s, c, QApplication::DefaultCodec );
else
return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString KviHttpRequest::trUtf8( const char *s, const char *c )
{
if ( qApp )
return qApp->translate( "KviHttpRequest", s, c, QApplication::UnicodeUTF8 );
else
return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8
#endif // QT_NO_TRANSLATION
QMetaObject* KviHttpRequest::staticMetaObject()
{
if ( metaObj )
return metaObj;
QMetaObject* parentObject = QObject::staticMetaObject();
static const QUParameter param_slot_0[] = {
{ "d", &static_QUType_ptr, "KviDns", QUParameter::In }
};
static const QUMethod slot_0 = {"dnsLookupDone", 1, param_slot_0 };
static const QUMethod slot_1 = {"haveServerIp", 0, 0 };
static const QMetaData slot_tbl[] = {
{ "dnsLookupDone(KviDns*)", &slot_0, QMetaData::Protected },
{ "haveServerIp()", &slot_1, QMetaData::Protected }
};
static const QUParameter param_signal_0[] = {
{ "hostname", &static_QUType_QString, 0, QUParameter::In }
};
static const QUMethod signal_0 = {"resolvingHost", 1, param_signal_0 };
static const QUParameter param_signal_1[] = {
{ "ipandport", &static_QUType_QString, 0, QUParameter::In }
};
static const QUMethod signal_1 = {"contactingHost", 1, param_signal_1 };
static const QUMethod signal_2 = {"connectionEstabilished", 0, 0 };
static const QUParameter param_signal_3[] = {
{ "response", &static_QUType_QString, 0, QUParameter::In }
};
static const QUMethod signal_3 = {"receivedResponse", 1, param_signal_3 };
static const QUParameter param_signal_4[] = {
{ "bSuccess", &static_QUType_bool, 0, QUParameter::In }
};
static const QUMethod signal_4 = {"terminated", 1, param_signal_4 };
static const QUParameter param_signal_5[] = {
{ "message", &static_QUType_QString, 0, QUParameter::In }
};
static const QUMethod signal_5 = {"status", 1, param_signal_5 };
static const QUParameter param_signal_6[] = {
{ "data", &static_QUType_ptr, "KviStr", QUParameter::In }
};
static const QUMethod signal_6 = {"data", 1, param_signal_6 };
static const QUParameter param_signal_7[] = {
{ "data", &static_QUType_ptr, "KviDataBuffer", QUParameter::In }
};
static const QUMethod signal_7 = {"binaryData", 1, param_signal_7 };
static const QUParameter param_signal_8[] = {
{ "hdr", &static_QUType_ptr, "KviPointerHashTable<const char*,KviStr>", QUParameter::In }
};
static const QUMethod signal_8 = {"header", 1, param_signal_8 };
static const QUParameter param_signal_9[] = {
{ "request", &static_QUType_varptr, "\x04", QUParameter::In }
};
static const QUMethod signal_9 = {"requestSent", 1, param_signal_9 };
static const QMetaData signal_tbl[] = {
{ "resolvingHost(const QString&)", &signal_0, QMetaData::Public },
{ "contactingHost(const QString&)", &signal_1, QMetaData::Public },
{ "connectionEstabilished()", &signal_2, QMetaData::Public },
{ "receivedResponse(const QString&)", &signal_3, QMetaData::Public },
{ "terminated(bool)", &signal_4, QMetaData::Public },
{ "status(const QString&)", &signal_5, QMetaData::Public },
{ "data(const KviStr&)", &signal_6, QMetaData::Public },
{ "binaryData(const KviDataBuffer&)", &signal_7, QMetaData::Public },
{ "header(KviPointerHashTable<const char*,KviStr>*)", &signal_8, QMetaData::Public },
{ "requestSent(const QStringList&)", &signal_9, QMetaData::Public }
};
metaObj = QMetaObject::new_metaobject(
"KviHttpRequest", parentObject,
slot_tbl, 2,
signal_tbl, 10,
#ifndef QT_NO_PROPERTIES
0, 0,
0, 0,
#endif // QT_NO_PROPERTIES
0, 0 );
cleanUp_KviHttpRequest.setMetaObject( metaObj );
return metaObj;
}
void* KviHttpRequest::qt_cast( const char* clname )
{
if ( !qstrcmp( clname, "KviHttpRequest" ) )
return this;
if ( !qstrcmp( clname, "KviHeapObject" ) )
return (KviHeapObject*)this;
return QObject::qt_cast( clname );
}
// SIGNAL resolvingHost
void KviHttpRequest::resolvingHost( const QString& t0 )
{
activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}
// SIGNAL contactingHost
void KviHttpRequest::contactingHost( const QString& t0 )
{
activate_signal( staticMetaObject()->signalOffset() + 1, t0 );
}
// SIGNAL connectionEstabilished
void KviHttpRequest::connectionEstabilished()
{
activate_signal( staticMetaObject()->signalOffset() + 2 );
}
// SIGNAL receivedResponse
void KviHttpRequest::receivedResponse( const QString& t0 )
{
activate_signal( staticMetaObject()->signalOffset() + 3, t0 );
}
// SIGNAL terminated
void KviHttpRequest::terminated( bool t0 )
{
activate_signal_bool( staticMetaObject()->signalOffset() + 4, t0 );
}
// SIGNAL status
void KviHttpRequest::status( const QString& t0 )
{
activate_signal( staticMetaObject()->signalOffset() + 5, t0 );
}
#include <qobjectdefs.h>
#include <qsignalslotimp.h>
// SIGNAL data
void KviHttpRequest::data( const KviStr& t0 )
{
if ( signalsBlocked() )
return;
QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 6 );
if ( !clist )
return;
QUObject o[2];
static_QUType_ptr.set(o+1,&t0);
activate_signal( clist, o );
}
// SIGNAL binaryData
void KviHttpRequest::binaryData( const KviDataBuffer& t0 )
{
if ( signalsBlocked() )
return;
QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 7 );
if ( !clist )
return;
QUObject o[2];
static_QUType_ptr.set(o+1,&t0);
activate_signal( clist, o );
}
// SIGNAL header
void KviHttpRequest::header( KviPointerHashTable<const char*,KviStr>* t0 )
{
if ( signalsBlocked() )
return;
QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 8 );
if ( !clist )
return;
QUObject o[2];
static_QUType_ptr.set(o+1,t0);
activate_signal( clist, o );
}
// SIGNAL requestSent
void KviHttpRequest::requestSent( const QStringList& t0 )
{
if ( signalsBlocked() )
return;
QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 9 );
if ( !clist )
return;
QUObject o[2];
static_QUType_varptr.set(o+1,&t0);
activate_signal( clist, o );
}
bool KviHttpRequest::qt_invoke( int _id, QUObject* _o )
{
switch ( _id - staticMetaObject()->slotOffset() ) {
case 0: dnsLookupDone((KviDns*)static_QUType_ptr.get(_o+1)); break;
case 1: haveServerIp(); break;
default:
return QObject::qt_invoke( _id, _o );
}
return TRUE;
}
bool KviHttpRequest::qt_emit( int _id, QUObject* _o )
{
switch ( _id - staticMetaObject()->signalOffset() ) {
case 0: resolvingHost((const QString&)static_QUType_QString.get(_o+1)); break;
case 1: contactingHost((const QString&)static_QUType_QString.get(_o+1)); break;
case 2: connectionEstabilished(); break;
case 3: receivedResponse((const QString&)static_QUType_QString.get(_o+1)); break;
case 4: terminated((bool)static_QUType_bool.get(_o+1)); break;
case 5: status((const QString&)static_QUType_QString.get(_o+1)); break;
case 6: data((const KviStr&)*((const KviStr*)static_QUType_ptr.get(_o+1))); break;
case 7: binaryData((const KviDataBuffer&)*((const KviDataBuffer*)static_QUType_ptr.get(_o+1))); break;
case 8: header((KviPointerHashTable<const char*,KviStr>*)static_QUType_ptr.get(_o+1)); break;
case 9: requestSent((const QStringList&)*((const QStringList*)static_QUType_ptr.get(_o+1))); break;
default:
return QObject::qt_emit(_id,_o);
}
return TRUE;
}
#ifndef QT_NO_PROPERTIES
bool KviHttpRequest::qt_property( int id, int f, QVariant* v)
{
return QObject::qt_property( id, f, v);
}
bool KviHttpRequest::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
|