~ubuntu-branches/ubuntu/karmic/python-kde3/karmic

« back to all changes in this revision

Viewing changes to sip/kio/kmimetype.sip

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-11-22 19:03:34 UTC
  • mfrom: (1.1.5 upstream) (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061122190334-z7nhzu4dca926iam
Tags: 3.16.0-0ubuntu1
* New upstream release
* Build-depend on pyqt 3.17 and sip 4.5
* Add build-depends on /usr/lib/kde3/libkonsolepart.so
* Don't build for python 2.5, it fails to build
* Merge with Debian, remaining change:
  - kubuntu_01_dcop.diff patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
 
7
7
//                 Generated by preSip
8
 
//            module kio  version KDE_3_5_2
 
8
//            module kio  version KDE 3.5.3
9
9
 
10
10
 
11
11
// This software is free software; you can redistribute it and/or
28
28
{
29
29
%TypeHeaderCode
30
30
#include <kmimetype.h>
31
 
#include <sipkioStringVarTypeMap.h>
32
31
%End
33
32
 
34
33
 
35
34
public:
36
35
 
37
 
%If ( KDE_3_4_2 -  )
38
 
//ig     typedef KSharedPtr<KMimeType> Ptr;
39
 
//ig     typedef QValueList<Ptr> List;
40
 
%End
41
 
 
 
36
    typedef KSharedPtr<KMimeType> Ptr;
 
37
    typedef QValueList<KMimeType::Ptr> List;
42
38
 
43
39
public:
44
40
                         KMimeType (const QString&, const QString&, const QString&, const QString&, const QStringList&);
79
75
    public:
80
76
        bool                 text;
81
77
 
82
 
        enum 
 
78
        enum
83
79
        {
84
 
            NoCompression, 
 
80
            NoCompression,
85
81
            GZipCompression
86
82
        };
87
83
 
134
130
{
135
131
%TypeHeaderCode
136
132
#include <kmimetype.h>
137
 
#include <sipkioStringVarTypeMap.h>
138
133
%End
139
134
 
140
135
 
156
151
{
157
152
%TypeHeaderCode
158
153
#include <kmimetype.h>
159
 
#include <sipkioStringVarTypeMap.h>
160
154
%End
161
155
 
162
156
 
197
191
    virtual QPixmap      pixmap (const KURL&, KIcon::Group, int = 0, int = 0, QString* = 0) const;
198
192
    virtual QString      comment (const QString&, bool) const;
199
193
    virtual QString      comment (const KURL&, bool) const;
200
 
    static DMTService    builtinServices (const KURL&);
201
 
    static DMTService    userDefinedServices (const QString&, bool);
 
194
    static QValueList<KDEDesktopMimeType::Service> builtinServices (const KURL&);
 
195
    static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, bool);
202
196
 
203
197
%If ( KDE_3_4_0 -  )
204
 
    static DMTService    userDefinedServices (const QString&, KConfig&, bool);
 
198
    static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, KConfig&, bool);
205
199
 
206
200
%If ( KDE_3_5_0 -  )
207
 
    static DMTService    userDefinedServices (const QString&, KConfig&, bool, const KURL::List&);
 
201
    static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, KConfig&, bool, const KURL::List&);
208
202
%End
209
203
 
210
204
%End
230
224
{
231
225
%TypeHeaderCode
232
226
#include <kmimetype.h>
233
 
#include <sipkioStringVarTypeMap.h>
234
227
%End
235
228
 
236
229
 
289
282
};
290
283
 
291
284
 
292
 
%MappedType DMTService
 
285
%MappedType QValueList<KDEDesktopMimeType::Service>
293
286
//converts a Python list of KDEDesktopMimeType.Service
294
287
{
295
288
%TypeHeaderCode
297
290
#include <sipkioKDEDesktopMimeType.h>
298
291
#include <sipkioKDEDesktopMimeTypeService.h>
299
292
#include <kmimetype.h>
300
 
typedef QValueList<KDEDesktopMimeType::Service> DMTService;
301
293
%End
302
294
 
303
295
%ConvertFromTypeCode
360
352
};
361
353
 
362
354
 
363
 
%MappedType KMimeType::List
 
355
%MappedType QValueList<KMimeType::Ptr>
364
356
//converts a Python list of KMimeType
365
357
{
366
358
%TypeHeaderCode
383
375
 
384
376
    // Get it.
385
377
 
386
 
    KMimeType::List *cList = (KMimeType::List *)sipCpp;
 
378
    QValueList<KMimeType::Ptr> *cList = (QValueList<KMimeType::Ptr> *)sipCpp;
387
379
    PyObject *inst;
388
380
    KMimeType *svc;
389
381
 
390
 
    KMimeType::List::Iterator it;
 
382
    QValueList<KMimeType::Ptr>::Iterator it;
391
383
    for( it = cList->begin(); it != cList->end(); ++it )
392
384
    {
393
385
        svc  = new KMimeType (*(KMimeType *)((KMimeType::Ptr)(*it)).data ());
409
401
    if (sipIsErr == NULL)
410
402
        return PyList_Check(sipPy);
411
403
 
412
 
    KMimeType::List *cList = new KMimeType::List;
 
404
    QValueList<KMimeType::Ptr> *cList = new QValueList<KMimeType::Ptr>;
413
405
    PyObject *elem;
414
406
    KMimeType *service;
415
407
    int iserr = 0;