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

« back to all changes in this revision

Viewing changes to sip/kdeprint/kmmanager.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 kdeprint  version KDE_3_5_2
 
8
//            module kdeprint  version KDE 3.5.3
9
9
 
10
10
 
11
11
// This software is free software; you can redistribute it and/or
77
77
    bool                 createSpecialPrinter (KMPrinter*);
78
78
    bool                 removeSpecialPrinter (KMPrinter*);
79
79
    KMPrinter*           findPrinter (const QString&);
80
 
    KPrinterList*        printerList (bool = 1);
81
 
    KPrinterList*        printerListComplete (bool = 1);
 
80
    QPtrList<KMPrinter>* printerList (bool = 1);
 
81
    QPtrList<KMPrinter>* printerListComplete (bool = 1);
82
82
    KMPrinter*           defaultPrinter ();
83
83
    void                 enableFilter (bool);
84
84
    bool                 isFilterEnabled () const;
142
142
 
143
143
 
144
144
 
145
 
%MappedType KPrinterList
 
145
%MappedType QPtrList<KMPrinter>
146
146
//converts a Python list of KMPrinter
147
147
{
148
148
%TypeHeaderCode
150
150
#include <kmmanager.h>
151
151
#include <kmprinter.h>
152
152
#include <sipkdeprintKMPrinter.h>
153
 
typedef QPtrList<KMPrinter> KPrinterList;
154
153
%End
155
154
 
156
155
%ConvertFromTypeCode
168
167
 
169
168
    // Get it.
170
169
 
171
 
    KPrinterList *kpList = (KPrinterList *)sipCpp;
 
170
    QPtrList<KMPrinter> *kpList = (QPtrList<KMPrinter> *)sipCpp;
172
171
    PyObject *inst;
173
172
    KMPrinter *p;
174
173
 
187
186
%End
188
187
 
189
188
%ConvertToTypeCode
190
 
    // Convert a Python list to KPrinterList on the heap.
 
189
    // Convert a Python list to QPtrList<KMPrinter> on the heap.
191
190
 
192
191
    if (sipIsErr == NULL)
193
192
    return PyList_Check(sipPy);
194
193
 
195
 
    KPrinterList *kpList = new KPrinterList;
 
194
    QPtrList<KMPrinter> *kpList = new QPtrList<KMPrinter>;
196
195
 
197
196
    PyObject *elem;
198
197
    KMPrinter *p;