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 TQt TQMOC ($Id: qt/tqmoc_yacc.cpp 3.3.8 edited Feb 2 14:59 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#undef TQT_NO_COMPAT
#include "kvi_http.h"
#include <tqmetaobject.h>
#include <tqapplication.h>
#include <private/tqucomextra_p.h>
#if !defined(TQ_TQMOC_OUTPUT_REVISION) || (TQ_TQMOC_OUTPUT_REVISION != 26)
#error "This file was generated using the tqmoc from 3.3.8. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The tqmoc has changed too much.)"
#endif
const char *KviHttpRequest::className() const
{
return "KviHttpRequest";
}
TQMetaObject *KviHttpRequest::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KviHttpRequest( "KviHttpRequest", &KviHttpRequest::staticMetaObject );
#ifndef TQT_NO_TRANSLATION
TQString KviHttpRequest::tr( const char *s, const char *c )
{
if ( tqApp )
return tqApp->translate( "KviHttpRequest", s, c, TQApplication::DefaultCodec );
else
return TQString::tqfromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString KviHttpRequest::trUtf8( const char *s, const char *c )
{
if ( tqApp )
return tqApp->translate( "KviHttpRequest", s, c, TQApplication::UnicodeUTF8 );
else
return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8
#endif // TQT_NO_TRANSLATION
TQMetaObject* KviHttpRequest::staticMetaObject()
{
if ( metaObj )
return metaObj;
TQMetaObject* tqparentObject = TQObject::staticMetaObject();
static const TQUParameter param_slot_0[] = {
{ "d", &static_TQUType_ptr, "KviDns", TQUParameter::In }
};
static const TQUMethod slot_0 = {"dnsLookupDone", 1, param_slot_0 };
static const TQUMethod slot_1 = {"haveServerIp", 0, 0 };
static const TQMetaData slot_tbl[] = {
{ "dnsLookupDone(KviDns*)", &slot_0, TQMetaData::Protected },
{ "haveServerIp()", &slot_1, TQMetaData::Protected }
};
static const TQUParameter param_signal_0[] = {
{ "hostname", &static_TQUType_TQString, 0, TQUParameter::In }
};
static const TQUMethod signal_0 = {"resolvingHost", 1, param_signal_0 };
static const TQUParameter param_signal_1[] = {
{ "ipandport", &static_TQUType_TQString, 0, TQUParameter::In }
};
static const TQUMethod signal_1 = {"contactingHost", 1, param_signal_1 };
static const TQUMethod signal_2 = {"connectionEstabilished", 0, 0 };
static const TQUParameter param_signal_3[] = {
{ "response", &static_TQUType_TQString, 0, TQUParameter::In }
};
static const TQUMethod signal_3 = {"receivedResponse", 1, param_signal_3 };
static const TQUParameter param_signal_4[] = {
{ "bSuccess", &static_TQUType_bool, 0, TQUParameter::In }
};
static const TQUMethod signal_4 = {"terminated", 1, param_signal_4 };
static const TQUParameter param_signal_5[] = {
{ "message", &static_TQUType_TQString, 0, TQUParameter::In }
};
static const TQUMethod signal_5 = {"status", 1, param_signal_5 };
static const TQUParameter param_signal_6[] = {
{ "data", &static_TQUType_ptr, "KviStr", TQUParameter::In }
};
static const TQUMethod signal_6 = {"data", 1, param_signal_6 };
static const TQUParameter param_signal_7[] = {
{ "data", &static_TQUType_ptr, "KviDataBuffer", TQUParameter::In }
};
static const TQUMethod signal_7 = {"binaryData", 1, param_signal_7 };
static const TQUParameter param_signal_8[] = {
{ "hdr", &static_TQUType_ptr, "KviPointerHashTable<const char*,KviStr>", TQUParameter::In }
};
static const TQUMethod signal_8 = {"header", 1, param_signal_8 };
static const TQUParameter param_signal_9[] = {
{ "request", &static_TQUType_varptr, "\x04", TQUParameter::In }
};
static const TQUMethod signal_9 = {"requestSent", 1, param_signal_9 };
static const TQMetaData signal_tbl[] = {
{ "resolvingHost(const TQString&)", &signal_0, TQMetaData::Public },
{ "contactingHost(const TQString&)", &signal_1, TQMetaData::Public },
{ "connectionEstabilished()", &signal_2, TQMetaData::Public },
{ "receivedResponse(const TQString&)", &signal_3, TQMetaData::Public },
{ "terminated(bool)", &signal_4, TQMetaData::Public },
{ "status(const TQString&)", &signal_5, TQMetaData::Public },
{ "data(const KviStr&)", &signal_6, TQMetaData::Public },
{ "binaryData(const KviDataBuffer&)", &signal_7, TQMetaData::Public },
{ "header(KviPointerHashTable<const char*,KviStr>*)", &signal_8, TQMetaData::Public },
{ "requestSent(const TQStringList&)", &signal_9, TQMetaData::Public }
};
metaObj = TQMetaObject::new_metaobject(
"KviHttpRequest", tqparentObject,
slot_tbl, 2,
signal_tbl, 10,
#ifndef TQT_NO_PROPERTIES
0, 0,
0, 0,
#endif // TQT_NO_PROPERTIES
0, 0 );
cleanUp_KviHttpRequest.setMetaObject( metaObj );
return metaObj;
}
void* KviHttpRequest::tqqt_cast( const char* clname )
{
if ( !qstrcmp( clname, "KviHttpRequest" ) )
return this;
if ( !qstrcmp( clname, "KviHeapObject" ) )
return (KviHeapObject*)this;
return TQObject::tqqt_cast( clname );
}
// TQT_SIGNAL resolvingHost
void KviHttpRequest::resolvingHost( const TQString& t0 )
{
activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}
// TQT_SIGNAL contactingHost
void KviHttpRequest::contactingHost( const TQString& t0 )
{
activate_signal( staticMetaObject()->signalOffset() + 1, t0 );
}
// TQT_SIGNAL connectionEstabilished
void KviHttpRequest::connectionEstabilished()
{
activate_signal( staticMetaObject()->signalOffset() + 2 );
}
// TQT_SIGNAL receivedResponse
void KviHttpRequest::receivedResponse( const TQString& t0 )
{
activate_signal( staticMetaObject()->signalOffset() + 3, t0 );
}
// TQT_SIGNAL terminated
void KviHttpRequest::terminated( bool t0 )
{
activate_signal_bool( staticMetaObject()->signalOffset() + 4, t0 );
}
// TQT_SIGNAL status
void KviHttpRequest::status( const TQString& t0 )
{
activate_signal( staticMetaObject()->signalOffset() + 5, t0 );
}
#include <tqobjectdefs.h>
#include <tqtqsignalslotimp.h>
// TQT_SIGNAL data
void KviHttpRequest::data( const KviStr& t0 )
{
if ( signalsBlocked() )
return;
TQConnectionList *clist = tqreceivers( staticMetaObject()->signalOffset() + 6 );
if ( !clist )
return;
TQUObject o[2];
static_TQUType_ptr.set(o+1,&t0);
activate_signal( clist, o );
}
// TQT_SIGNAL binaryData
void KviHttpRequest::binaryData( const KviDataBuffer& t0 )
{
if ( signalsBlocked() )
return;
TQConnectionList *clist = tqreceivers( staticMetaObject()->signalOffset() + 7 );
if ( !clist )
return;
TQUObject o[2];
static_TQUType_ptr.set(o+1,&t0);
activate_signal( clist, o );
}
// TQT_SIGNAL header
void KviHttpRequest::header( KviPointerHashTable<const char*,KviStr>* t0 )
{
if ( signalsBlocked() )
return;
TQConnectionList *clist = tqreceivers( staticMetaObject()->signalOffset() + 8 );
if ( !clist )
return;
TQUObject o[2];
static_TQUType_ptr.set(o+1,t0);
activate_signal( clist, o );
}
// TQT_SIGNAL requestSent
void KviHttpRequest::requestSent( const TQStringList& t0 )
{
if ( signalsBlocked() )
return;
TQConnectionList *clist = tqreceivers( staticMetaObject()->signalOffset() + 9 );
if ( !clist )
return;
TQUObject o[2];
static_TQUType_varptr.set(o+1,&t0);
activate_signal( clist, o );
}
bool KviHttpRequest::qt_invoke( int _id, TQUObject* _o )
{
switch ( _id - staticMetaObject()->slotOffset() ) {
case 0: dnsLookupDone((KviDns*)static_TQUType_ptr.get(_o+1)); break;
case 1: haveServerIp(); break;
default:
return TQObject::qt_invoke( _id, _o );
}
return TRUE;
}
bool KviHttpRequest::qt_emit( int _id, TQUObject* _o )
{
switch ( _id - staticMetaObject()->signalOffset() ) {
case 0: resolvingHost((const TQString&)static_TQUType_TQString.get(_o+1)); break;
case 1: contactingHost((const TQString&)static_TQUType_TQString.get(_o+1)); break;
case 2: connectionEstabilished(); break;
case 3: receivedResponse((const TQString&)static_TQUType_TQString.get(_o+1)); break;
case 4: terminated((bool)static_TQUType_bool.get(_o+1)); break;
case 5: status((const TQString&)static_TQUType_TQString.get(_o+1)); break;
case 6: data((const KviStr&)*((const KviStr*)static_TQUType_ptr.get(_o+1))); break;
case 7: binaryData((const KviDataBuffer&)*((const KviDataBuffer*)static_TQUType_ptr.get(_o+1))); break;
case 8: header((KviPointerHashTable<const char*,KviStr>*)static_TQUType_ptr.get(_o+1)); break;
case 9: requestSent((const TQStringList&)*((const TQStringList*)static_TQUType_ptr.get(_o+1))); break;
default:
return TQObject::qt_emit(_id,_o);
}
return TRUE;
}
#ifndef TQT_NO_PROPERTIES
bool KviHttpRequest::qt_property( int id, int f, TQVariant* v)
{
return TQObject::qt_property( id, f, v);
}
bool KviHttpRequest::qt_static_property( TQObject* , int , int , TQVariant* ){ return FALSE; }
#endif // TQT_NO_PROPERTIES
|