Lines 65-111
Link Here
|
65 |
|
65 |
|
66 |
//force |
66 |
//force |
67 |
%ConvertToSubClassCode |
67 |
%ConvertToSubClassCode |
68 |
if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemBool)) |
68 |
if (dynamic_cast<KConfigSkeleton::ItemBool*>(sipCpp)) |
69 |
sipClass = sipClass_KConfigSkeleton_ItemBool; |
69 |
sipClass = sipClass_KConfigSkeleton_ItemBool; |
70 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemColor)) |
70 |
else if (dynamic_cast<KConfigSkeleton::ItemColor*>(sipCpp)) |
71 |
sipClass = sipClass_KConfigSkeleton_ItemColor; |
71 |
sipClass = sipClass_KConfigSkeleton_ItemColor; |
72 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemDateTime)) |
72 |
else if (dynamic_cast<KConfigSkeleton::ItemDateTime*>(sipCpp)) |
73 |
sipClass = sipClass_KConfigSkeleton_ItemDateTime; |
73 |
sipClass = sipClass_KConfigSkeleton_ItemDateTime; |
74 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemDouble)) |
74 |
else if (dynamic_cast<KConfigSkeleton::ItemDouble*>(sipCpp)) |
75 |
sipClass = sipClass_KConfigSkeleton_ItemDouble; |
75 |
sipClass = sipClass_KConfigSkeleton_ItemDouble; |
76 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemEnum)) |
76 |
else if (dynamic_cast<KConfigSkeleton::ItemEnum*>(sipCpp)) |
77 |
sipClass = sipClass_KConfigSkeleton_ItemEnum; |
77 |
sipClass = sipClass_KConfigSkeleton_ItemEnum; |
78 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemFont)) |
78 |
else if (dynamic_cast<KConfigSkeleton::ItemFont*>(sipCpp)) |
79 |
sipClass = sipClass_KConfigSkeleton_ItemFont; |
79 |
sipClass = sipClass_KConfigSkeleton_ItemFont; |
80 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemInt)) |
80 |
else if (dynamic_cast<KConfigSkeleton::ItemInt*>(sipCpp)) |
81 |
sipClass = sipClass_KConfigSkeleton_ItemInt; |
81 |
sipClass = sipClass_KConfigSkeleton_ItemInt; |
82 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemInt64)) |
82 |
else if (dynamic_cast<KConfigSkeleton::ItemInt64*>(sipCpp)) |
83 |
sipClass = sipClass_KConfigSkeleton_ItemInt64; |
83 |
sipClass = sipClass_KConfigSkeleton_ItemInt64; |
84 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemIntList)) |
84 |
else if (dynamic_cast<KConfigSkeleton::ItemIntList*>(sipCpp)) |
85 |
sipClass = sipClass_KConfigSkeleton_ItemIntList; |
85 |
sipClass = sipClass_KConfigSkeleton_ItemIntList; |
86 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemLong)) |
86 |
else if (dynamic_cast<KConfigSkeleton::ItemLong*>(sipCpp)) |
87 |
sipClass = sipClass_KConfigSkeleton_ItemLong; |
87 |
sipClass = sipClass_KConfigSkeleton_ItemLong; |
88 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemPassword)) |
88 |
else if (dynamic_cast<KConfigSkeleton::ItemPassword*>(sipCpp)) |
89 |
sipClass = sipClass_KConfigSkeleton_ItemPassword; |
89 |
sipClass = sipClass_KConfigSkeleton_ItemPassword; |
90 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemPath)) |
90 |
else if (dynamic_cast<KConfigSkeleton::ItemPath*>(sipCpp)) |
91 |
sipClass = sipClass_KConfigSkeleton_ItemPath; |
91 |
sipClass = sipClass_KConfigSkeleton_ItemPath; |
92 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemPoint)) |
92 |
else if (dynamic_cast<KConfigSkeleton::ItemPoint*>(sipCpp)) |
93 |
sipClass = sipClass_KConfigSkeleton_ItemPoint; |
93 |
sipClass = sipClass_KConfigSkeleton_ItemPoint; |
94 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemProperty)) |
94 |
else if (dynamic_cast<KConfigSkeleton::ItemProperty*>(sipCpp)) |
95 |
sipClass = sipClass_KConfigSkeleton_ItemProperty; |
95 |
sipClass = sipClass_KConfigSkeleton_ItemProperty; |
96 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemRect)) |
96 |
else if (dynamic_cast<KConfigSkeleton::ItemRect*>(sipCpp)) |
97 |
sipClass = sipClass_KConfigSkeleton_ItemRect; |
97 |
sipClass = sipClass_KConfigSkeleton_ItemRect; |
98 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemSize)) |
98 |
else if (dynamic_cast<KConfigSkeleton::ItemSize*>(sipCpp)) |
99 |
sipClass = sipClass_KConfigSkeleton_ItemSize; |
99 |
sipClass = sipClass_KConfigSkeleton_ItemSize; |
100 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemString)) |
100 |
else if (dynamic_cast<KConfigSkeleton::ItemString*>(sipCpp)) |
101 |
sipClass = sipClass_KConfigSkeleton_ItemString; |
101 |
sipClass = sipClass_KConfigSkeleton_ItemString; |
102 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemStringList)) |
102 |
else if (dynamic_cast<KConfigSkeleton::ItemStringList*>(sipCpp)) |
103 |
sipClass = sipClass_KConfigSkeleton_ItemStringList; |
103 |
sipClass = sipClass_KConfigSkeleton_ItemStringList; |
104 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemUInt)) |
104 |
else if (dynamic_cast<KConfigSkeleton::ItemUInt*>(sipCpp)) |
105 |
sipClass = sipClass_KConfigSkeleton_ItemUInt; |
105 |
sipClass = sipClass_KConfigSkeleton_ItemUInt; |
106 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemUInt64)) |
106 |
else if (dynamic_cast<KConfigSkeleton::ItemUInt64*>(sipCpp)) |
107 |
sipClass = sipClass_KConfigSkeleton_ItemUInt64; |
107 |
sipClass = sipClass_KConfigSkeleton_ItemUInt64; |
108 |
else if (typeid (sipCpp) == typeid (KConfigSkeleton::ItemULong)) |
108 |
else if (dynamic_cast<KConfigSkeleton::ItemULong*>(sipCpp)) |
109 |
sipClass = sipClass_KConfigSkeleton_ItemULong; |
109 |
sipClass = sipClass_KConfigSkeleton_ItemULong; |
110 |
else |
110 |
else |
111 |
sipClass = NULL; |
111 |
sipClass = NULL; |
Lines 233-246
Link Here
|
233 |
KConfigSkeleton::ItemPassword* addItemPassword (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); |
233 |
KConfigSkeleton::ItemPassword* addItemPassword (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); |
234 |
KConfigSkeleton::ItemPath* addItemPath (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); |
234 |
KConfigSkeleton::ItemPath* addItemPath (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); |
235 |
ItemProperty* addItemProperty (const QString&, QVariant&, const QVariant& = QVariant (), const QString& = QString ::null ); |
235 |
ItemProperty* addItemProperty (const QString&, QVariant&, const QVariant& = QVariant (), const QString& = QString ::null ); |
236 |
ItemBool* addItemBool (const QString&, bool&, bool = 0, const QString& = QString ::null ); |
236 |
ItemBool* addItemBool (const QString&, bool = 0, const QString& = QString ::null ) [ItemBool* (const QString&, bool&, bool = 0, const QString& = QString ::null)]; |
237 |
ItemInt* addItemInt (const QString&, int&, int = 0, const QString& = QString ::null ); |
237 |
%MethodCode |
238 |
ItemUInt* addItemUInt (const QString&, uint&, uint = 0, const QString& = QString ::null ); |
238 |
//takes name | (QString) | defaultValue | (a bool) | key | (QString = QString::null) |
239 |
ItemLong* addItemLong (const QString&, long&, long = 0, const QString& = QString ::null ); |
239 |
|
240 |
ItemULong* addItemULong (const QString&, ulong&, ulong = 0, const QString& = QString ::null ); |
240 |
class PyItemBool : public KConfigSkeleton::ItemBool |
241 |
KConfigSkeleton::ItemInt64* addItemInt64 (const QString&, longlong&, longlong = 0, const QString& = QString ::null ); |
241 |
{ |
242 |
KConfigSkeleton::ItemUInt64* addItemUInt64 (const QString&, ulonglong&, ulonglong = 0, const QString& = QString ::null ); |
242 |
public: |
243 |
ItemDouble* addItemDouble (const QString&, double&, double = 0.0, const QString& = QString ::null ); |
243 |
PyItemBool(const QString &group, const QString &key, bool defaultValue=false) : |
|
|
244 |
KConfigSkeleton::ItemBool(group, key, this->value, defaultValue) {}; |
245 |
|
246 |
private: |
247 |
bool value; |
248 |
}; |
249 |
|
250 |
Py_BEGIN_ALLOW_THREADS |
251 |
sipRes = new PyItemBool(sipCpp->currentGroup(), a2->isNull() ? *a0 : *a2, a1); |
252 |
sipCpp->addItem(sipRes, *a0); |
253 |
Py_END_ALLOW_THREADS |
254 |
%End |
255 |
|
256 |
ItemInt* addItemInt (const QString&, int = 0, const QString& = QString ::null ) [ItemInt* (const QString&, int&, int = 0, const QString& = QString ::null)]; |
257 |
%MethodCode |
258 |
//takes name | (QString) | defaultValue | (an int) | key | (QString = QString::null) |
259 |
|
260 |
class PyItemInt : public KConfigSkeleton::ItemInt |
261 |
{ |
262 |
public: |
263 |
PyItemInt(const QString &group, const QString &key, unsigned int defaultValue=0) : |
264 |
KConfigSkeleton::ItemInt(group, key, this->value, defaultValue) {}; |
265 |
|
266 |
private: |
267 |
int value; |
268 |
}; |
269 |
|
270 |
Py_BEGIN_ALLOW_THREADS |
271 |
sipRes = new PyItemInt(sipCpp->currentGroup(), a2->isNull() ? *a0 : *a2, a1); |
272 |
sipCpp->addItem(sipRes, *a0); |
273 |
Py_END_ALLOW_THREADS |
274 |
%End |
275 |
|
276 |
ItemUInt* addItemUInt (const QString&, uint = 0, const QString& = QString ::null ) [ItemUInt* (const QString&, uint&, uint = 0, const QString& = QString ::null)]; |
277 |
%MethodCode |
278 |
//takes name | (QString) | defaultValue | (an unsigned int) | key | (QString = QString::null) |
279 |
|
280 |
class PyItemUInt : public KConfigSkeleton::ItemUInt |
281 |
{ |
282 |
public: |
283 |
PyItemUInt(const QString &group, const QString &key, unsigned int defaultValue=0) : |
284 |
KConfigSkeleton::ItemUInt(group, key, this->value, defaultValue) {}; |
285 |
|
286 |
private: |
287 |
uint value; |
288 |
}; |
289 |
|
290 |
Py_BEGIN_ALLOW_THREADS |
291 |
sipRes = new PyItemUInt(sipCpp->currentGroup(), a2->isNull() ? *a0 : *a2, a1); |
292 |
sipCpp->addItem(sipRes, *a0); |
293 |
Py_END_ALLOW_THREADS |
294 |
%End |
295 |
|
296 |
ItemLong* addItemLong (const QString&, long = 0, const QString& = QString ::null ) [ItemLong* (const QString&, long&, long = 0, const QString& = QString ::null)]; |
297 |
%MethodCode |
298 |
//takes name | (QString) | defaultValue | (a long) | key | (QString = QString::null) |
299 |
|
300 |
class PyItemLong : public KConfigSkeleton::ItemLong |
301 |
{ |
302 |
public: |
303 |
PyItemLong(const QString &group, const QString &key, long defaultValue=0) : |
304 |
KConfigSkeleton::ItemLong(group, key, this->value, defaultValue) {}; |
305 |
|
306 |
private: |
307 |
long value; |
308 |
}; |
309 |
|
310 |
Py_BEGIN_ALLOW_THREADS |
311 |
sipRes = new PyItemLong(sipCpp->currentGroup(), a2->isNull() ? *a0 : *a2, a1); |
312 |
sipCpp->addItem(sipRes, *a0); |
313 |
Py_END_ALLOW_THREADS |
314 |
%End |
315 |
|
316 |
ItemULong* addItemULong (const QString&, ulong = 0, const QString& = QString ::null ) [ItemULong* (const QString&, ulong&, ulong = 0, const QString& = QString ::null)]; |
317 |
%MethodCode |
318 |
//takes name | (QString) | defaultValue | (an unsigned long) | key | (QString = QString::null) |
319 |
|
320 |
class PyItemULong : public KConfigSkeleton::ItemULong |
321 |
{ |
322 |
public: |
323 |
PyItemULong(const QString &group, const QString &key, ulong defaultValue=0) : |
324 |
KConfigSkeleton::ItemULong(group, key, this->value, defaultValue) {}; |
325 |
|
326 |
private: |
327 |
ulong value; |
328 |
}; |
329 |
|
330 |
Py_BEGIN_ALLOW_THREADS |
331 |
sipRes = new PyItemULong(sipCpp->currentGroup(), a2->isNull() ? *a0 : *a2, a1); |
332 |
sipCpp->addItem(sipRes, *a0); |
333 |
Py_END_ALLOW_THREADS |
334 |
%End |
335 |
KConfigSkeleton::ItemInt64* addItemInt64 (const QString&, longlong = 0, const QString& = QString ::null ) [ItemInt64* (const QString&, longlong&, longlong = 0, const QString& = QString ::null)]; |
336 |
%MethodCode |
337 |
//takes name | (QString) | defaultValue | (a Q_INT64) | key | (QString = QString::null) |
338 |
|
339 |
class PyItemInt64 : public KConfigSkeleton::ItemInt64 |
340 |
{ |
341 |
public: |
342 |
PyItemInt64(const QString &group, const QString &key, Q_INT64 defaultValue=0) : |
343 |
KConfigSkeleton::ItemInt64(group, key, this->value, defaultValue) {}; |
344 |
|
345 |
private: |
346 |
Q_INT64 value; |
347 |
}; |
348 |
|
349 |
Py_BEGIN_ALLOW_THREADS |
350 |
sipRes = new PyItemInt64(sipCpp->currentGroup(), a2->isNull() ? *a0 : *a2, *a1); |
351 |
sipCpp->addItem(sipRes, *a0); |
352 |
Py_END_ALLOW_THREADS |
353 |
%End |
354 |
|
355 |
KConfigSkeleton::ItemUInt64* addItemUInt64 (const QString&, ulonglong = 0, const QString& = QString ::null ) [ItemUInt64* (const QString&, ulonglong&, ulonglong = 0, const QString& = QString ::null)]; |
356 |
%MethodCode |
357 |
//takes name | (QString) | defaultValue | (a Q_UINT64) | key | (QString = QString::null) |
358 |
|
359 |
class PyItemUInt64 : public KConfigSkeleton::ItemUInt64 |
360 |
{ |
361 |
public: |
362 |
PyItemUInt64(const QString &group, const QString &key, Q_UINT64 defaultValue=0) : |
363 |
KConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue) {}; |
364 |
|
365 |
private: |
366 |
Q_UINT64 value; |
367 |
}; |
368 |
|
369 |
Py_BEGIN_ALLOW_THREADS |
370 |
sipRes = new PyItemUInt64(sipCpp->currentGroup(), a2->isNull() ? *a0 : *a2, *a1); |
371 |
sipCpp->addItem(sipRes, *a0); |
372 |
Py_END_ALLOW_THREADS |
373 |
%End |
374 |
|
375 |
ItemDouble* addItemDouble (const QString&, double = 0.0, const QString& = QString ::null ) [ItemDouble* (const QString&, double&, double = 0.0, const QString& = QString ::null)]; |
376 |
%MethodCode |
377 |
//takes name | (QString) | defaultValue | (a double) | key | (QString = QString::null) |
378 |
|
379 |
class PyItemDouble : public KConfigSkeleton::ItemDouble |
380 |
{ |
381 |
public: |
382 |
PyItemDouble(const QString &group, const QString &key, double defaultValue=0.0) : |
383 |
KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) {}; |
384 |
|
385 |
private: |
386 |
double value; |
387 |
}; |
388 |
|
389 |
Py_BEGIN_ALLOW_THREADS |
390 |
sipRes = new PyItemDouble(sipCpp->currentGroup(), a2->isNull() ? *a0 : *a2, a1); |
391 |
sipCpp->addItem(sipRes, *a0); |
392 |
Py_END_ALLOW_THREADS |
393 |
%End |
244 |
ItemColor* addItemColor (const QString&, QColor&, const QColor& = QColor (128 ,128 ,128 ), const QString& = QString ::null ); |
394 |
ItemColor* addItemColor (const QString&, QColor&, const QColor& = QColor (128 ,128 ,128 ), const QString& = QString ::null ); |
245 |
ItemFont* addItemFont (const QString&, QFont&, const QFont& = KGlobalSettings ::generalFont (), const QString& = QString ::null ); |
395 |
ItemFont* addItemFont (const QString&, QFont&, const QFont& = KGlobalSettings ::generalFont (), const QString& = QString ::null ); |
246 |
ItemRect* addItemRect (const QString&, QRect&, const QRect& = QRect (), const QString& = QString ::null ); |
396 |
ItemRect* addItemRect (const QString&, QRect&, const QRect& = QRect (), const QString& = QString ::null ); |
Lines 356-366
Link Here
|
356 |
{ |
506 |
{ |
357 |
|
507 |
|
358 |
public: |
508 |
public: |
359 |
ItemBool (const QString&, const QString&, bool, bool = 1) [(const QString&, const QString&, bool&, bool = 1)]; |
509 |
ItemBool (const QString&, const QString&, bool = 1) [(const QString&, const QString&, bool&, bool = 1)]; |
360 |
%MethodCode |
510 |
%MethodCode |
361 |
//takes group | (QString) | key | (QString) | reference | (bool) | defaultValue | (bool = 1) |
511 |
//takes group | (QString) | key | (QString) | defaultValue | (bool = 1) |
|
|
512 |
|
513 |
class PyItemBool : public KConfigSkeleton::ItemBool |
514 |
{ |
515 |
public: |
516 |
PyItemBool(const QString &group, const QString &key, bool defaultValue=false) : |
517 |
KConfigSkeleton::ItemBool(group, key, this->value, defaultValue) {}; |
518 |
|
519 |
private: |
520 |
bool value; |
521 |
}; |
522 |
|
362 |
Py_BEGIN_ALLOW_THREADS |
523 |
Py_BEGIN_ALLOW_THREADS |
363 |
sipCpp = (sipKConfigSkeleton_ItemBool *) new KConfigSkeleton::ItemBool (*a0, *a1, a2, a3); |
524 |
sipCpp = (sipKConfigSkeleton_ItemBool *) new PyItemBool (*a0, *a1, a2); |
364 |
Py_END_ALLOW_THREADS |
525 |
Py_END_ALLOW_THREADS |
365 |
%End |
526 |
%End |
366 |
|
527 |
|
Lines 387-397
Link Here
|
387 |
{ |
548 |
{ |
388 |
|
549 |
|
389 |
public: |
550 |
public: |
390 |
ItemInt (const QString&, const QString&, int, int = 0) [(const QString&, const QString&, int&, int = 0)]; |
551 |
ItemInt (const QString&, const QString&, int = 0) [(const QString&, const QString&, int&, int = 0)]; |
391 |
%MethodCode |
552 |
%MethodCode |
392 |
//takes group | (QString) | key | (QString) | reference | (int) | defaultValue | (int = 0) |
553 |
//takes group | (QString) | key | (QString) | defaultValue | (int = 0) |
|
|
554 |
|
555 |
class PyItemInt : public KConfigSkeleton::ItemInt |
556 |
{ |
557 |
public: |
558 |
PyItemInt(const QString &group, const QString &key, unsigned int defaultValue=0) : |
559 |
KConfigSkeleton::ItemInt(group, key, this->value, defaultValue) {}; |
560 |
|
561 |
private: |
562 |
int value; |
563 |
}; |
564 |
|
393 |
Py_BEGIN_ALLOW_THREADS |
565 |
Py_BEGIN_ALLOW_THREADS |
394 |
sipCpp = (sipKConfigSkeleton_ItemInt *) new KConfigSkeleton::ItemInt (*a0, *a1, a2, (int)a3); |
566 |
sipCpp = (sipKConfigSkeleton_ItemInt *) new PyItemInt (*a0, *a1, a2); |
395 |
Py_END_ALLOW_THREADS |
567 |
Py_END_ALLOW_THREADS |
396 |
%End |
568 |
%End |
397 |
|
569 |
|
Lines 422-428
Link Here
|
422 |
{ |
594 |
{ |
423 |
|
595 |
|
424 |
public: |
596 |
public: |
425 |
ItemInt64 (const QString&, const QString&, longlong&, longlong = 0); |
597 |
ItemInt64 (const QString&, const QString&, longlong = 0) [(const QString&, const QString&, longlong&, longlong = 0)]; |
|
|
598 |
%MethodCode |
599 |
//takes group | (QString) | key | (QString) | defaultValue | (longlong = 0) |
600 |
|
601 |
class PyItemInt64 : public KConfigSkeleton::ItemInt64 |
602 |
{ |
603 |
public: |
604 |
PyItemInt64(const QString &group, const QString &key, Q_INT64 defaultValue=0) : |
605 |
KConfigSkeleton::ItemInt64(group, key, this->value, defaultValue) {}; |
606 |
|
607 |
private: |
608 |
Q_INT64 value; |
609 |
}; |
610 |
|
611 |
Py_BEGIN_ALLOW_THREADS |
612 |
sipCpp = (sipKConfigSkeleton_ItemInt64 *) new PyItemInt64 (*a0, *a1, *a2); |
613 |
Py_END_ALLOW_THREADS |
614 |
%End |
615 |
|
426 |
void setValue (const longlong&); |
616 |
void setValue (const longlong&); |
427 |
longlong& value (); |
617 |
longlong& value (); |
428 |
virtual void setDefaultValue (const longlong&); |
618 |
virtual void setDefaultValue (const longlong&); |
Lines 450-460
Link Here
|
450 |
{ |
640 |
{ |
451 |
|
641 |
|
452 |
public: |
642 |
public: |
453 |
ItemUInt (const QString&, const QString&, uint, uint = 0) [(const QString&, const QString&, uint&, uint = 0)]; |
643 |
ItemUInt (const QString&, const QString&, uint = 0) [(const QString&, const QString&, uint, uint = 0)]; |
454 |
%MethodCode |
644 |
%MethodCode |
455 |
//takes group | (QString) | key | (QString) | reference | (uint) | defaultValue | (uint = 0) |
645 |
//takes group | (QString) | key | (QString) | defaultValue | (uint = 0) |
|
|
646 |
|
647 |
class PyItemUInt : public KConfigSkeleton::ItemUInt |
648 |
{ |
649 |
public: |
650 |
PyItemUInt(const QString &group, const QString &key, unsigned int defaultValue=0) : |
651 |
KConfigSkeleton::ItemUInt(group, key, this->value, defaultValue) {}; |
652 |
|
653 |
private: |
654 |
uint value; |
655 |
}; |
656 |
|
456 |
Py_BEGIN_ALLOW_THREADS |
657 |
Py_BEGIN_ALLOW_THREADS |
457 |
sipCpp = (sipKConfigSkeleton_ItemUInt *) new KConfigSkeleton::ItemUInt (*a0, *a1, a2, a3); |
658 |
sipCpp = (sipKConfigSkeleton_ItemUInt *) new PyItemUInt (*a0, *a1, a2); |
458 |
Py_END_ALLOW_THREADS |
659 |
Py_END_ALLOW_THREADS |
459 |
%End |
660 |
%End |
460 |
|
661 |
|
Lines 485-495
Link Here
|
485 |
{ |
686 |
{ |
486 |
|
687 |
|
487 |
public: |
688 |
public: |
488 |
ItemLong (const QString&, const QString&, long&, long = 0) [(const QString&, const QString&, long&, long = 0)]; |
689 |
ItemLong (const QString&, const QString&, long = 0) [(const QString&, const QString&, long&, long = 0)]; |
489 |
%MethodCode |
690 |
%MethodCode |
490 |
//takes group | (QString) | key | (QString) | reference | (long) | defaultValue | (long = 0) |
691 |
//takes group | (QString) | key | (QString) | defaultValue | (long = 0) |
|
|
692 |
|
693 |
class PyItemLong : public KConfigSkeleton::ItemLong |
694 |
{ |
695 |
public: |
696 |
PyItemLong(const QString &group, const QString &key, long defaultValue=0) : |
697 |
KConfigSkeleton::ItemLong(group, key, this->value, defaultValue) {}; |
698 |
|
699 |
private: |
700 |
long value; |
701 |
}; |
702 |
|
491 |
Py_BEGIN_ALLOW_THREADS |
703 |
Py_BEGIN_ALLOW_THREADS |
492 |
sipCpp = (sipKConfigSkeleton_ItemLong *) new KConfigSkeleton::ItemLong (*a0, *a1, a2, a3); |
704 |
sipCpp = (sipKConfigSkeleton_ItemLong *) new PyItemLong (*a0, *a1, a2); |
493 |
Py_END_ALLOW_THREADS |
705 |
Py_END_ALLOW_THREADS |
494 |
%End |
706 |
%End |
495 |
|
707 |
|
Lines 520-530
Link Here
|
520 |
{ |
732 |
{ |
521 |
|
733 |
|
522 |
public: |
734 |
public: |
523 |
ItemULong (const QString&, const QString&, ulong, ulong = 0) [(const QString&, const QString&, ulong&, ulong = 0)]; |
735 |
ItemULong (const QString&, const QString&, ulong = 0) [(const QString&, const QString&, ulong&, ulong = 0)]; |
524 |
%MethodCode |
736 |
%MethodCode |
525 |
//takes group | (QString) | key | (QString) | reference | (ulong) | defaultValue | (ulong = 0) |
737 |
//takes group | (QString) | key | (QString) | defaultValue | (ulong = 0) |
|
|
738 |
|
739 |
class PyItemULong : public KConfigSkeleton::ItemULong |
740 |
{ |
741 |
public: |
742 |
PyItemULong(const QString &group, const QString &key, ulong defaultValue=0) : |
743 |
KConfigSkeleton::ItemULong(group, key, this->value, defaultValue) {}; |
744 |
|
745 |
private: |
746 |
ulong value; |
747 |
}; |
748 |
|
526 |
Py_BEGIN_ALLOW_THREADS |
749 |
Py_BEGIN_ALLOW_THREADS |
527 |
sipCpp = (sipKConfigSkeleton_ItemULong *) new KConfigSkeleton::ItemULong (*a0, *a1, a2, a3); |
750 |
sipCpp = (sipKConfigSkeleton_ItemULong *) new PyItemULong (*a0, *a1, a2); |
528 |
Py_END_ALLOW_THREADS |
751 |
Py_END_ALLOW_THREADS |
529 |
%End |
752 |
%End |
530 |
|
753 |
|
Lines 555-561
Link Here
|
555 |
{ |
778 |
{ |
556 |
|
779 |
|
557 |
public: |
780 |
public: |
558 |
ItemUInt64 (const QString&, const QString&, ulonglong&, ulonglong = 0); |
781 |
ItemUInt64 (const QString&, const QString&, ulonglong = 0) [(const QString&, const QString&, ulonglong&, ulonglong = 0)]; |
|
|
782 |
%MethodCode |
783 |
//takes group | (QString) | key | (QString) | defaultValue | (ulonglong = 0) |
784 |
|
785 |
class PyItemUInt64 : public KConfigSkeleton::ItemUInt64 |
786 |
{ |
787 |
public: |
788 |
PyItemUInt64(const QString &group, const QString &key, Q_UINT64 defaultValue=0) : |
789 |
KConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue) {}; |
790 |
|
791 |
private: |
792 |
Q_UINT64 value; |
793 |
}; |
794 |
|
795 |
Py_BEGIN_ALLOW_THREADS |
796 |
sipCpp = (sipKConfigSkeleton_ItemUInt64 *) new PyItemUInt64 (*a0, *a1, *a2); |
797 |
Py_END_ALLOW_THREADS |
798 |
%End |
799 |
|
559 |
void setValue (const ulonglong&); |
800 |
void setValue (const ulonglong&); |
560 |
ulonglong value (); |
801 |
ulonglong value (); |
561 |
virtual void setDefaultValue (const ulonglong&); |
802 |
virtual void setDefaultValue (const ulonglong&); |
Lines 583-594
Link Here
|
583 |
{ |
824 |
{ |
584 |
|
825 |
|
585 |
public: |
826 |
public: |
586 |
ItemDouble (const QString&, const QString&, double, double = 0) [(const QString&, const QString&, double&, double = 0)]; |
827 |
ItemDouble (const QString&, const QString&, double = 0) [(const QString&, const QString&, double&, double = 0)]; |
587 |
%MethodCode |
828 |
%MethodCode |
588 |
//takes group | (QString) | key | (QString) | reference | (doulbe) | defaultValue | (double = 0) |
829 |
//takes group | (QString) | key | (QString) | defaultValue | (double = 0) |
|
|
830 |
|
831 |
class PyItemDouble : public KConfigSkeleton::ItemDouble |
832 |
{ |
833 |
public: |
834 |
PyItemDouble(const QString &group, const QString &key, double defaultValue=0.0) : |
835 |
KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) {}; |
836 |
|
837 |
private: |
838 |
double value; |
839 |
}; |
840 |
|
589 |
Py_BEGIN_ALLOW_THREADS |
841 |
Py_BEGIN_ALLOW_THREADS |
590 |
sipCpp = (sipKConfigSkeleton_ItemDouble *) new KConfigSkeleton::ItemDouble (*a0, *a1, a2, a3); |
842 |
sipCpp = (sipKConfigSkeleton_ItemDouble *) new PyItemDouble (*a0, *a1, a2); |
591 |
Py_END_ALLOW_THREADS |
843 |
Py_END_ALLOW_THREADS |
592 |
%End |
844 |
%End |