summaryrefslogtreecommitdiffstats
path: root/sip/tdecore/tdeconfigskeleton.sip
blob: 4ebd3372450fa4aef0823666a16fd259f4985084 (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
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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
//
//     Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
//     Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
//     may also apply


//                 Generated by preSip
//            module tdecore  version KDE 3.5.3


// This software 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 software 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 library; see the file COPYING.
// If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


%If ( KDE_3_2_0 -  )

class TDEConfigSkeletonItem
{
%TypeHeaderCode
#include <typeinfo>
#include <tdeconfigskeleton.h>
%End


public:
    typedef TQValueList<TDEConfigSkeletonItem*> List;
//ig     typedef TQDict<TDEConfigSkeletonItem> Dict;
//ig     typedef TQDictIterator<TDEConfigSkeletonItem> DictIterator;
                         TDEConfigSkeletonItem (const TQString&, const TQString&);
    void                 setGroup (const TQString&);
    TQString              group () const;
    void                 setKey (const TQString&);
    TQString              key () const;
    void                 setName (const TQString&);
    TQString              name () const;
    void                 setLabel (const TQString&);
    TQString              label () const;
    void                 setWhatsThis (const TQString&);
    TQString              whatsThis () const;
    virtual void         readConfig (TDEConfig*)  = 0;
    virtual void         writeConfig (TDEConfig*)  = 0;
    virtual void         readDefault (TDEConfig*)  = 0;
    virtual void         setProperty (const TQVariant&)  = 0;
    virtual TQVariant     property () const = 0;
    virtual TQVariant     minValue () const;
    virtual TQVariant     maxValue () const;
    virtual void         setDefault ()  = 0;
    virtual void         swapDefault ()  = 0;
    bool                 isImmutable () const;

protected:
    void                 readImmutability (TDEConfig*);

//force
%ConvertToSubClassCode
    if (dynamic_cast<TDEConfigSkeleton::ItemBool*>(sipCpp))
        sipClass =  sipClass_TDEConfigSkeleton_ItemBool;
    else if (dynamic_cast<TDEConfigSkeleton::ItemColor*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemColor;
    else if (dynamic_cast<TDEConfigSkeleton::ItemDateTime*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemDateTime;
    else if (dynamic_cast<TDEConfigSkeleton::ItemDouble*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemDouble;
    else if (dynamic_cast<TDEConfigSkeleton::ItemEnum*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemEnum;
    else if (dynamic_cast<TDEConfigSkeleton::ItemFont*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemFont;
    else if (dynamic_cast<TDEConfigSkeleton::ItemInt*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemInt;
    else if (dynamic_cast<TDEConfigSkeleton::ItemInt64*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemInt64;
    else if (dynamic_cast<TDEConfigSkeleton::ItemIntList*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemIntList;
    else if (dynamic_cast<TDEConfigSkeleton::ItemLong*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemLong;
    else if (dynamic_cast<TDEConfigSkeleton::ItemPassword*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemPassword;
    else if (dynamic_cast<TDEConfigSkeleton::ItemPath*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemPath;
    else if (dynamic_cast<TDEConfigSkeleton::ItemPoint*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemPoint;
    else if (dynamic_cast<TDEConfigSkeleton::ItemProperty*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemProperty;
    else if (dynamic_cast<TDEConfigSkeleton::ItemRect*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemRect;
    else if (dynamic_cast<TDEConfigSkeleton::ItemSize*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemSize;
    else if (dynamic_cast<TDEConfigSkeleton::ItemString*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemString;
    else if (dynamic_cast<TDEConfigSkeleton::ItemStringList*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemStringList;
    else if (dynamic_cast<TDEConfigSkeleton::ItemUInt*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemUInt;
    else if (dynamic_cast<TDEConfigSkeleton::ItemUInt64*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemUInt64;
    else if (dynamic_cast<TDEConfigSkeleton::ItemULong*>(sipCpp))
        sipClass = sipClass_TDEConfigSkeleton_ItemULong;
    else
        sipClass = NULL;
%End
//end

};  // class TDEConfigSkeletonItem

%End


%If ( KDE_3_2_0 -  )

class TDEConfigSkeleton
{
%TypeHeaderCode
#include <tdeconfigskeleton.h>
typedef TQValueList<int> IntList;
%End


public:

    class ItemPassword : TDEConfigSkeleton::ItemString
    {

    public:
                             ItemPassword (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ));

    };  // class ItemPassword


public:

    class ItemPath : TDEConfigSkeleton::ItemString
    {

    public:
                             ItemPath (const TQString&, const TQString&, TQString&, const TQString& = TQString ::null );

    };  // class ItemPath


public:

    class ItemEnum : TDEConfigSkeleton::ItemInt
    {

    public:

        class Choice
        {

        public:
            TQString              name;
            TQString              label;
            TQString              whatsThis;

        };  // class Choice


    public:
                             ItemEnum (const TQString&, const TQString&, int, const TQValueList<TDEConfigSkeleton::ItemEnum::Choice>&, int = 0) [(const TQString&, const TQString&, int&, const TQValueList<TDEConfigSkeleton::ItemEnum::Choice>&, int = 0)];
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (int) | choices | (TQValueList<TDEConfigSkeleton::ItemEnum::Choice>) |defaultValue | (int = 1)

    class PyItemEnum : public TDEConfigSkeleton::ItemEnum
    {
    public:
        PyItemEnum (const TQString& group, const TQString& key, int& val, const TQValueList<TDEConfigSkeleton::ItemEnum::Choice>& choices, int defaultValue = 0) :
            TDEConfigSkeleton::ItemEnum(group, key, this->value, choices, defaultValue)
        {
            value = val;
        };

    private:
        int value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemEnum *) new PyItemEnum (*a0, *a1, a2, *a3, a4);
    Py_END_ALLOW_THREADS
%End

        TQValueList<TDEConfigSkeleton::ItemEnum::Choice> choices () const;
        void                 readConfig (TDEConfig*);
        void                 writeConfig (TDEConfig*);

    public:
//force
        void                 setValue (const int&);
        int                  value ();
        virtual void         setDefaultValue (const int&);
        virtual void         setDefault ();
        void                 swapDefault ();
//end

    };  // class ItemEnum


public:

%If ( KDE_3_4_0 -  )

    class ItemPathList : TDEConfigSkeleton::ItemStringList
    {

    public:
                             ItemPathList (const TQString&, const TQString&, TQStringList&, const TQStringList& = TQStringList ());
        void                 readConfig (TDEConfig*);
        void                 writeConfig (TDEConfig*);

    };  // class ItemPathList


public:
%End


public:
                         TDEConfigSkeleton (const TQString& = TQString ::null );
                         TDEConfigSkeleton (TDESharedConfig::Ptr);
    void                 setDefaults ();
    void                 readConfig ();
    void                 writeConfig ();
    void                 setCurrentGroup (const TQString&);
    TQString              currentGroup ();
    void                 addItem (TDEConfigSkeletonItem*, const TQString& = TQString ::null );
    ItemString*          addItemString (const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ), const TQString& = TQString ::null );
    TDEConfigSkeleton::ItemPassword* addItemPassword (const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ), const TQString& = TQString ::null );
    TDEConfigSkeleton::ItemPath* addItemPath (const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ), const TQString& = TQString ::null );
    ItemProperty*        addItemProperty (const TQString&, TQVariant&, const TQVariant& = TQVariant (), const TQString& = TQString ::null );
    ItemBool*            addItemBool (const TQString&, bool&, bool = 0, const TQString& = TQString ::null );
%MethodCode
//takes name | (TQString) | value | (bool) | defaultValue | (bool) | key | (TQString = TQString::null)

    class PyItemBool : public TDEConfigSkeleton::ItemBool
    {
    public:
        PyItemBool (const TQString &group, const TQString &key, bool val, bool defaultValue = 0) :
            TDEConfigSkeleton::ItemBool (group, key, this->value, defaultValue)
        {
            value = val;
        }

    private:
        bool value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipRes = new PyItemBool (sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2);
    sipCpp->addItem(sipRes, *a0);
    Py_END_ALLOW_THREADS
%End

    ItemInt*             addItemInt (const TQString&, int&, int = 0, const TQString& = TQString ::null );
%MethodCode
//takes name | (TQString) | value | (int) | defaultValue | (int) | key | (TQString = TQString::null)

    class PyItemInt : public TDEConfigSkeleton::ItemInt
    {
    public:
        PyItemInt(const TQString &group, const TQString &key, int val, int defaultValue=0) :
            TDEConfigSkeleton::ItemInt (group, key, this->value, defaultValue)
        {
            value = val;
        }

    private:
        int value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipRes = new PyItemInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2);
    sipCpp->addItem(sipRes, *a0);
    Py_END_ALLOW_THREADS
%End

    ItemUInt*            addItemUInt (const TQString&, uint&, uint = 0, const TQString& = TQString ::null );
%MethodCode
//takes name | (TQString) | value | (uint) | defaultValue | (uint) | key | (TQString = TQString::null)

    class PyItemUInt : public TDEConfigSkeleton::ItemUInt
    {
    public:
        PyItemUInt(const TQString &group, const TQString &key, uint val, uint defaultValue = 0) :
            TDEConfigSkeleton::ItemUInt (group, key, this->value, defaultValue)
        {
            value = val;
        }

    private:
        uint value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipRes = new PyItemUInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2);
    sipCpp->addItem(sipRes, *a0);
    Py_END_ALLOW_THREADS
%End

    ItemLong*            addItemLong (const TQString&, long&, long = 0, const TQString& = TQString ::null );
%MethodCode
//takes name | (TQString) | value | (long) | defaultValue | (long) | key | (TQString = TQString::null)

    class PyItemLong : public TDEConfigSkeleton::ItemLong
    {
    public:
        PyItemLong(const TQString &group, const TQString &key, long val, long defaultValue=0) :
            TDEConfigSkeleton::ItemLong (group, key, this->value, defaultValue)
        {
            value = val;
        }

    private:
        long value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipRes = new PyItemLong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2);
    sipCpp->addItem(sipRes, *a0);
    Py_END_ALLOW_THREADS
%End

    ItemULong*           addItemULong (const TQString&, ulong&, ulong = 0, const TQString& = TQString ::null );
%MethodCode
//takes name | (TQString) | value | (ulong) | defaultValue | (ulong) | key | (TQString = TQString::null)

    class PyItemULong : public TDEConfigSkeleton::ItemULong
    {
    public:
        PyItemULong(const TQString &group, const TQString &key, ulong val, ulong defaultValue = 0) :
            TDEConfigSkeleton::ItemULong (group, key, this->value, defaultValue)
        {
            value = val;
        }

    private:
        ulong value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipRes = new PyItemULong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2);
    sipCpp->addItem(sipRes, *a0);
    Py_END_ALLOW_THREADS
%End

    TDEConfigSkeleton::ItemInt64* addItemInt64 (const TQString&, longlong&, longlong = 0, const TQString& = TQString ::null );
    TDEConfigSkeleton::ItemUInt64* addItemUInt64 (const TQString&, ulonglong&, ulonglong = 0, const TQString& = TQString ::null );
    ItemDouble*          addItemDouble (const TQString&, double&, double = 0.0, const TQString& = TQString ::null );
%MethodCode
//takes name | (TQString) | value | (double) | defaultValue | (double) | key | (TQString = TQString::null)

    class PyItemDouble : public TDEConfigSkeleton::ItemDouble
    {
    public:
        PyItemDouble(const TQString &group, const TQString &key, double val, double defaultValue=0.0) :
            TDEConfigSkeleton::ItemDouble(group, key, this->value, defaultValue)
        {
            value = val;
        };

    private:
        double value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipRes = new PyItemDouble(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2);
    sipCpp->addItem(sipRes, *a0);
    Py_END_ALLOW_THREADS
%End

    ItemColor*           addItemColor (const TQString&, TQColor&, const TQColor& = TQColor (128 ,128 ,128 ), const TQString& = TQString ::null );
    ItemFont*            addItemFont (const TQString&, TQFont&, const TQFont& = TDEGlobalSettings ::generalFont (), const TQString& = TQString ::null );
    ItemRect*            addItemRect (const TQString&, TQRect&, const TQRect& = TQRect (), const TQString& = TQString ::null );
    ItemPoint*           addItemPoint (const TQString&, TQPoint&, const TQPoint& = TQPoint (), const TQString& = TQString ::null );
    ItemSize*            addItemSize (const TQString&, TQSize&, const TQSize& = TQSize (), const TQString& = TQString ::null );
    ItemDateTime*        addItemDateTime (const TQString&, TQDateTime&, const TQDateTime& = TQDateTime (), const TQString& = TQString ::null );
    TDEConfigSkeleton::ItemStringList* addItemStringList (const TQString&, TQStringList&, const TQStringList& = TQStringList (), const TQString& = TQString ::null );
    TDEConfigSkeleton::ItemIntList* addItemIntList (const TQString&, TQValueList<int>&, const TQValueList<int>& = IntList (), const TQString& = TQString ::null );
%MethodCode
//returns a Python list of int
//takes name | (TQString) | reference | (a Python list of int) | defaultValue | (a Python list of int = []) | key | (TQString = TQString::null)
    if (a2 == NULL) *(TQValueList<int> *)a2 = TQValueList<int>();
    Py_BEGIN_ALLOW_THREADS
    sipRes = sipCpp->addItemIntList (*a0, *a1, *a2, *a3);
    Py_END_ALLOW_THREADS
%End

    TDEConfig*             config () const;
    SIP_PYLIST           items () const [TDEConfigSkeletonItem::List ()];
%MethodCode
//returns (a Python list of Items)

    TDEConfigSkeletonItem::List list;

    Py_BEGIN_ALLOW_THREADS
    list = sipCpp->items ();
    Py_END_ALLOW_THREADS

    int n = list.count ();
    if (n > 0)
        for (int i = 0; i < n; i++)
            PyList_Append (sipRes, sipConvertFromInstance (&(list [i]), sipClass_TDEConfigSkeletonItem, NULL));
%End

    bool                 isImmutable (const TQString&);
    TDEConfigSkeletonItem* findItem (const TQString&);
    bool                 useDefaults (bool);

protected:
    virtual void         usrUseDefaults (bool);
    virtual void         usrSetDefaults ();
    virtual void         usrReadConfig ();
    virtual void         usrWriteConfig ();

public:
//force

    class ItemString : TDEConfigSkeletonItem
    {

    public:

        enum Type
        {
            Normal, 
            Password, 
            Path
        };

                             ItemString (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ), TDEConfigSkeleton::ItemString::Type = TDEConfigSkeleton ::ItemString ::Normal );
        void                 setValue (const TQString&);
        TQString&             value ();
        virtual void         setDefaultValue (const TQString&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemString


public:
//end

public:
//force

    class ItemProperty : TDEConfigSkeletonItem
    {

    public:
                             ItemProperty (const TQString&, const TQString&, TQVariant, TQVariant = 0) [(const TQString&, const TQString&, TQVariant&, TQVariant = 0)];
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (TQVariant) | defaultValue | (TQVariant = 0)
    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemProperty *) new TDEConfigSkeleton::ItemProperty (*a0, *a1, *a2, *a3);
    Py_END_ALLOW_THREADS
%End

        void                 setValue (const TQVariant&);
        TQVariant&            value ();
        virtual void         setDefaultValue (const TQVariant&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemProperty


public:
//end

public:
//force

    class ItemBool : TDEConfigSkeletonItem
    {

    public:
                             ItemBool (const TQString&, const TQString&, bool, bool = 1) [(const TQString&, const TQString&, bool&, bool = 1)];
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (bool) | defaultValue | (bool = 1)

    class PyItemBool : public TDEConfigSkeleton::ItemBool
    {
    public:
        PyItemBool(const TQString &group, const TQString &key, bool val, bool defaultValue = false) :
            TDEConfigSkeleton::ItemBool(group, key, this->value, defaultValue)
        {
            value = val;
        };

    private:
        bool value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemBool *) new PyItemBool (*a0, *a1, a2);
    Py_END_ALLOW_THREADS
%End

        void                 setValue (const bool&);
        bool                 value ();
        virtual void         setDefaultValue (const bool&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemBool


public:
//end

public:
//force

    class ItemInt : TDEConfigSkeletonItem
    {

    public:
                             ItemInt (const TQString&, const TQString&, int, int = 1) [(const TQString&, const TQString&, int&, int = 1)];
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (int) | defaultValue | (int = 1)

    class PyItemInt : public TDEConfigSkeleton::ItemInt
    {
    public:
        PyItemInt(const TQString &group, const TQString &key, int val, int defaultValue = 0) :
            TDEConfigSkeleton::ItemInt(group, key, this->value, defaultValue)
        {
            value = val;
        };

    private:
        int value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemInt *) new PyItemInt (*a0, *a1, a2);
    Py_END_ALLOW_THREADS
%End

        void                 setValue (const int&);
        int                  value ();
        virtual void         setDefaultValue (const int&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;
        TQVariant             minValue () const;
        TQVariant             maxValue () const;
        void                 setMinValue (int);
        void                 setMaxValue (int);

    };  // class ItemInt


public:
//end

public:
//force

    class ItemInt64 : TDEConfigSkeletonItem
    {

    public:
                             ItemInt64 (const TQString&, const TQString&, longlong&, longlong = 0);
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (longlong) | defaultValue | (longlong = 0)

    class PyItemInt64 : public TDEConfigSkeleton::ItemInt64
    {
    public:
        PyItemInt64(const TQString &group, const TQString &key, TQ_INT64 val, TQ_INT64 defaultValue=0) :
            TDEConfigSkeleton::ItemInt64(group, key, this->value, defaultValue)
        {
            value = val;
        };

    private:
        TQ_INT64 value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemInt64 *) new PyItemInt64 (*a0, *a1, *a2, *a3);
    Py_END_ALLOW_THREADS
%End

        void                 setValue (const longlong&);
        longlong&            value ();
        virtual void         setDefaultValue (const longlong&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;
        TQVariant             minValue () const;
        TQVariant             maxValue () const;
        void                 setMinValue (longlong);
        void                 setMaxValue (longlong);

    };  // class ItemInt64


public:
//end

public:
//force

    class ItemUInt : TDEConfigSkeletonItem
    {

    public:
                             ItemUInt (const TQString&, const TQString&, uint, uint = 0) [(const TQString&, const TQString&, uint&, uint = 0)];
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (uint) | defaultValue | (uint = 1)

    class PyItemUInt : public TDEConfigSkeleton::ItemUInt
    {
    public:
        PyItemUInt(const TQString &group, const TQString &key, uint val, uint defaultValue = 0) :
            TDEConfigSkeleton::ItemUInt(group, key, this->value, defaultValue)
        {
            value = val;
        };

    private:
        uint value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemUInt *) new PyItemUInt (*a0, *a1, a2);
    Py_END_ALLOW_THREADS
%End

        void                 setValue (const uint&);
        uint                 value ();
        virtual void         setDefaultValue (const uint&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;
        TQVariant             minValue () const;
        TQVariant             maxValue () const;
        void                 setMinValue (uint);
        void                 setMaxValue (uint);

    };  // class ItemUInt


public:

public:

    class ItemLong : TDEConfigSkeletonItem
    {

    public:
                             ItemLong (const TQString&, const TQString&, long&, long = 0) [(const TQString&, const TQString&, long&, long = 0)];
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (long) | defaultValue | (long = 1)

    class PyItemLong : public TDEConfigSkeleton::ItemLong
    {
    public:
        PyItemLong(const TQString &group, const TQString &key, long val, long defaultValue = 0) :
            TDEConfigSkeleton::ItemLong(group, key, this->value, defaultValue)
        {
            value = val;
        };

    private:
        long value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemLong *) new PyItemLong (*a0, *a1, a2);
    Py_END_ALLOW_THREADS
%End

        void                 setValue (const long&);
        long                 value ();
        virtual void         setDefaultValue (const long&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;
        TQVariant             minValue () const;
        TQVariant             maxValue () const;
        void                 setMinValue (long);
        void                 setMaxValue (long);

    };  // class ItemLong


public:
//end

public:
//force

    class ItemULong : TDEConfigSkeletonItem
    {

    public:
                             ItemULong (const TQString&, const TQString&, ulong, ulong = 0) [(const TQString&, const TQString&, ulong&, ulong = 0)];
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (ulong) | defaultValue | (ulong = 1)

    class PyItemULong : public TDEConfigSkeleton::ItemULong
    {
    public:
        PyItemULong(const TQString &group, const TQString &key, ulong val, ulong defaultValue = 0) :
            TDEConfigSkeleton::ItemULong(group, key, this->value, defaultValue)
        {
            value = val;
        };

    private:
        ulong value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemULong *) new PyItemULong (*a0, *a1, a2);
    Py_END_ALLOW_THREADS
%End

        void                 setValue (const ulong&);
        ulong                value ();
        virtual void         setDefaultValue (const ulong&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;
        TQVariant             minValue () const;
        TQVariant             maxValue () const;
        void                 setMinValue (ulong);
        void                 setMaxValue (ulong);

    };  // class ItemULong


public:
//end

public:
//force

    class ItemUInt64 : TDEConfigSkeletonItem
    {

    public:
                             ItemUInt64 (const TQString&, const TQString&, ulonglong&, ulonglong = 0);
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (ulonglong) | defaultValue | (ulonglong = 0)

    class PyItemUInt64 : public TDEConfigSkeleton::ItemUInt64
    {
    public:
        PyItemUInt64(const TQString &group, const TQString &key, TQ_UINT64 val, TQ_UINT64 defaultValue = 0) :
            TDEConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue)
        {
            value = val;
        };

    private:
        TQ_UINT64 value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemUInt64 *) new PyItemUInt64 (*a0, *a1, *a2, *a3);
    Py_END_ALLOW_THREADS
%End

        void                 setValue (const ulonglong&);
        ulonglong            value ();
        virtual void         setDefaultValue (const ulonglong&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;
        TQVariant             minValue () const;
        TQVariant             maxValue () const;
        void                 setMinValue (ulonglong);
        void                 setMaxValue (ulonglong);

    };  // class ItemUInt64


public:
//end

public:
//force

    class ItemDouble : TDEConfigSkeletonItem
    {

    public:
                             ItemDouble (const TQString&, const TQString&, double, double = 0) [(const TQString&, const TQString&, double&, double = 0)];
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (double) | defaultValue | (double = 0)
    class PyItemDouble : public TDEConfigSkeleton::ItemDouble
    {
    public:
        PyItemDouble(const TQString &group, const TQString &key, double val, double defaultValue=0.0) :
            TDEConfigSkeleton::ItemDouble(group, key, this->value, defaultValue)
        {
            value = val;
        };

    private:
        double value;
    };

    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemDouble *) new PyItemDouble (*a0, *a1, a2, a3);
    Py_END_ALLOW_THREADS
%End

        void                 setValue (const double&);
        double               value ();
        virtual void         setDefaultValue (const double&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;
        TQVariant             minValue () const;
        TQVariant             maxValue () const;
        void                 setMinValue (double);
        void                 setMaxValue (double);

    };  // class ItemDouble


public:
//end

public:
//force

    class ItemColor : TDEConfigSkeletonItem
    {

    public:
                             ItemColor (const TQString&, const TQString&, TQColor&, const TQColor& = TQColor (128 ,128 ,128 ));
        void                 setValue (const TQColor&);
        TQColor&              value ();
        virtual void         setDefaultValue (const TQColor&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemColor


public:
//end

public:
//force

    class ItemFont : TDEConfigSkeletonItem
    {

    public:
                             ItemFont (const TQString&, const TQString&, TQFont&, const TQFont& = TDEGlobalSettings ::generalFont ());
        void                 setValue (const TQFont&);
        TQFont&               value ();
        virtual void         setDefaultValue (const TQFont&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemFont


public:
//end

public:
//force

    class ItemRect : TDEConfigSkeletonItem
    {

    public:
                             ItemRect (const TQString&, const TQString&, TQRect&, const TQRect& = TQRect ());
        void                 setValue (const TQRect&);
        TQRect&               value ();
        virtual void         setDefaultValue (const TQRect&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemRect


public:
//end

public:
//force

    class ItemPoint : TDEConfigSkeletonItem
    {

    public:
                             ItemPoint (const TQString&, const TQString&, TQPoint&, const TQPoint& = TQPoint ());
        void                 setValue (const TQPoint&);
        TQPoint&              value ();
        virtual void         setDefaultValue (const TQPoint&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemPoint


public:
//end

public:
//force

    class ItemSize : TDEConfigSkeletonItem
    {

    public:
                             ItemSize (const TQString&, const TQString&, TQSize&, const TQSize& = TQSize ());
        void                 setValue (const TQSize&);
        TQSize&               value ();
        virtual void         setDefaultValue (const TQSize&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemSize


public:
//end

public:
//force

    class ItemDateTime : TDEConfigSkeletonItem
    {

    public:
                             ItemDateTime (const TQString&, const TQString&, TQDateTime&, const TQDateTime& = TQDateTime ());
        void                 setValue (const TQDateTime&);
        TQDateTime&           value ();
        virtual void         setDefaultValue (const TQDateTime&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemDateTime


public:
//end

public:
//force

    class ItemStringList : TDEConfigSkeletonItem
    {

    public:
                             ItemStringList (const TQString&, const TQString&, TQStringList&, const TQStringList& = TQStringList ());
        void                 setValue (const TQStringList&);
        TQStringList&         value ();
        virtual void         setDefaultValue (const TQStringList&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemStringList


public:
//end

public:
//force

    class ItemIntList : TDEConfigSkeletonItem
    {

    public:
                             ItemIntList (const TQString&, const TQString&, TQValueList<int>&, const TQValueList<int>& = IntList ());
%MethodCode
//takes group | (TQString) | key | (TQString) | reference | (a Python list of int) | defaultValue | (a Python list of int = 0)
    if (a3 == NULL) *(TQValueList<int> *)a3 = TQValueList<int>();
    Py_BEGIN_ALLOW_THREADS
    sipCpp = (sipTDEConfigSkeleton_ItemIntList *) new TDEConfigSkeleton::ItemIntList (*a0, *a1, *a2, *a3);
    Py_END_ALLOW_THREADS
%End

        void                 setValue (const TQValueList<int>&);
        TQValueList<int>&     value ();
        virtual void         setDefaultValue (const TQValueList<int>&);
        virtual void         setDefault ();
        void                 swapDefault ();
        void                 writeConfig (TDEConfig*);
        void                 readConfig (TDEConfig*);
        void                 setProperty (const TQVariant&);
        TQVariant             property () const;

    };  // class ItemIntList


public:
//end

};  // class TDEConfigSkeleton

%End



%If (KDE_3_2_0 - )
%MappedType TQValueList<TDEConfigSkeleton::ItemEnum::Choice>
{
%TypeHeaderCode
#include <tdeconfigskeleton.h>
%End

%ConvertFromTypeCode
    if (!sipCpp)
        return PyList_New(0);

    // Create the list
    PyObject *pylist;
    if ((pylist = PyList_New(0)) == NULL)
        return NULL;

    TQValueList<TDEConfigSkeleton::ItemEnum::Choice> *cpplist = (TQValueList<TDEConfigSkeleton::ItemEnum::Choice> *)sipCpp;
    PyObject *inst;

    // Get it.
    TQValueList<TDEConfigSkeleton::ItemEnum::Choice>::Iterator it;
    for( it = cpplist->begin(); it != cpplist->end(); ++it )
    {
        if (((inst = sipConvertFromNewType(new TDEConfigSkeleton::ItemEnum::Choice(*it), sipType_TDEConfigSkeleton_ItemEnum_Choice, NULL)) == NULL)
            || PyList_Append (pylist, inst) < 0)
        {
            Py_DECREF (pylist);
            return NULL;
        }
    }

    return pylist;
%End


%ConvertToTypeCode
    if (sipIsErr == NULL)
        return PyList_Check(sipPy);

    TQValueList<TDEConfigSkeleton::ItemEnum::Choice> *cpplist = new TQValueList<TDEConfigSkeleton::ItemEnum::Choice>;

    PyObject *elem;
    TDEConfigSkeleton::ItemEnum::Choice *cpp;
    int iserr = 0;

    for (int i = 0; i < PyList_Size (sipPy); i++)
    {
        elem = PyList_GET_ITEM (sipPy, i);
        cpp = (TDEConfigSkeleton::ItemEnum::Choice *)sipForceConvertToType(elem, sipType_TDEConfigSkeleton_ItemEnum_Choice, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);

        if (iserr)
        {
            *sipIsErr = 1;
            delete cpplist;
            return 0;
        }

        cpplist->append (*cpp);
    }

    *sipCppPtr = cpplist;

    return 1;
%End
};
%End