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

« back to all changes in this revision

Viewing changes to sip/kparts/konsole_part.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:
1
1
//
2
 
//     Copyright 2005 Jim Bublitz <jbublitz@nwinternet.com>
3
 
 
4
 
 
5
 
//            module kparts  version KDE_3_4_1
 
2
//     Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
 
3
//     Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
 
4
//     may also apply
 
5
 
 
6
 
 
7
//                 Generated by preSip
 
8
//            module kparts  version KDE 3.5.3
6
9
 
7
10
 
8
11
// This software is free software; you can redistribute it and/or
20
23
// If not, write to the Free Software Foundation, Inc.,
21
24
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
25
 
 
26
 
 
27
class konsoleFactory : KParts::Factory
 
28
{
 
29
%TypeHeaderCode
 
30
#include <kprocess.h>
 
31
#include <konsole_part.h>
 
32
%End
 
33
 
 
34
 
 
35
public:
 
36
                         konsoleFactory ();
 
37
    virtual KParts::Part* createPartObject (QWidget* = 0, const char* = 0, QObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const QStringList& = QStringList ());
 
38
    static KInstance*    instance ();
 
39
 
 
40
};  // class konsoleFactory
 
41
 
 
42
 
 
43
%If ( KDE_3_5_0 -  )
 
44
 
 
45
class konsolePart : KParts::ReadOnlyPart, TerminalInterface, ExtTerminalInterface
 
46
{
 
47
%TypeHeaderCode
 
48
#include <kprocess.h>
 
49
#include <konsole_part.h>
 
50
%End
 
51
 
 
52
 
 
53
public:
 
54
                         konsolePart (QWidget*, const char*, QObject* /TransferThis/, const char*, const char* = 0);
 
55
 
 
56
signals:
 
57
    void                 processExited (KProcess*);
 
58
    void                 receivedData (const QString&);
 
59
    void                 forkedChild ();
 
60
 
 
61
protected:
 
62
    virtual bool         openURL (const KURL&);
 
63
    virtual bool         openFile ();
 
64
    virtual bool         closeURL ();
 
65
    virtual void         guiActivateEvent (KParts::GUIActivateEvent*);
 
66
 
 
67
protected slots:
 
68
    void                 showShell ();
 
69
    void                 sessionDestroyed ();
 
70
    void                 enableMasterModeConnections ();
 
71
 
 
72
public:
 
73
    void                 startProgram (const QString&, const QStrList&);
 
74
    void                 newSession ();
 
75
    void                 showShellInDir (const QString&);
 
76
    void                 sendInput (const QString&);
 
77
    void                 setAutoDestroy (bool);
 
78
    void                 setAutoStartShell (bool);
 
79
 
 
80
};  // class konsolePart
 
81
 
 
82
%End
 
83
 
 
84
 
 
85
class konsoleBrowserExtension : KParts::BrowserExtension
 
86
{
 
87
%TypeHeaderCode
 
88
#include <kprocess.h>
 
89
#include <konsole_part.h>
 
90
%End
 
91
 
 
92
 
 
93
public:
 
94
                         konsoleBrowserExtension (konsolePart*);
 
95
    void                 emitOpenURLRequest (const KURL&);
 
96
 
 
97
};  // class konsoleBrowserExtension
 
98
 
 
99
 
 
100
%If (  - KDE_3_5_0 )
 
101
 
 
102
class konsolePart : KParts::ReadOnlyPart, TerminalInterface
 
103
{
 
104
%TypeHeaderCode
 
105
#include <kprocess.h>
 
106
#include <konsole_part.h>
 
107
%End
 
108
 
 
109
 
 
110
public:
 
111
                         konsolePart (QWidget*, const char*, QObject* /TransferThis/, const char*, const char* = 0);
 
112
 
 
113
signals:
 
114
    void                 processExited ();
 
115
    void                 receivedData (const QString&);
 
116
 
 
117
protected:
 
118
    virtual bool         openURL (const KURL&);
 
119
    virtual bool         openFile ();
 
120
    virtual bool         closeURL ();
 
121
    virtual void         guiActivateEvent (KParts::GUIActivateEvent*);
 
122
 
 
123
protected slots:
 
124
    void                 showShell ();
 
125
    void                 slotProcessExited ();
 
126
    void                 slotReceivedData (const QString&);
 
127
    void                 sessionDestroyed ();
 
128
    void                 updateTitle ();
 
129
    void                 enableMasterModeConnections ();
 
130
 
 
131
public:
 
132
    void                 startProgram (const QString&, const QStrList&);
 
133
    void                 showShellInDir (const QString&);
 
134
    void                 sendInput (const QString&);
 
135
 
 
136
};  // class konsolePart
 
137
 
 
138
%End
 
139
 
 
140
//force
 
141
 
23
142
class TerminalInterface
24
143
{
25
144
%TypeHeaderCode
26
145
#include <kde_terminal_interface.h>
27
146
%End
28
147
 
29
 
public:
30
 
  virtual void startProgram (const QString&, const QStrList&) = 0;
31
 
  virtual void showShellInDir (const QString&) = 0;
32
 
  virtual void sendInput (const QString&) = 0;
33
 
};
34
 
 
35
 
 
36
 
class konsolePart: KParts::ReadOnlyPart, TerminalInterface
37
 
{
38
 
%TypeHeaderCode
39
 
#include <konsole_part.h>
40
 
%End
41
 
 
42
 
public:
43
 
    konsolePart (QWidget *, const char *, QObject */TransferThis/, const char *, const char * = 0);
44
 
 
45
 
signals:
46
 
    void processExited ();
47
 
    void receivedData (const QString&);
48
 
 protected:
49
 
    virtual bool openURL (const KURL &);
50
 
    virtual bool openFile ();
51
 
    virtual bool closeURL ();
52
 
    virtual void guiActivateEvent (KParts::GUIActivateEvent *);
53
 
 
54
 
 protected slots:
55
 
    void showShell ();
56
 
    void slotProcessExited ();
57
 
    void slotReceivedData (const QString&);
58
 
 
59
 
//ig    void doneSession (TESession*);
60
 
    void sessionDestroyed ();
61
 
//ig    void configureRequest (TEWidget*, int, int, int);
62
 
    void updateTitle ();
63
 
    void enableMasterModeConnections ();
64
 
 
65
 
 
66
 
public:
67
 
    void startProgram (const QString&, const QStrList&);
68
 
    void showShellInDir (const QString&);
69
 
    void sendInput (const QString&);
70
 
};
71
 
 
72
 
 
73
 
class konsoleBrowserExtension : KParts::BrowserExtension
74
 
{
75
 
%TypeHeaderCode
76
 
#include <konsole_part.h>
77
 
%End
78
 
 
79
 
public:
80
 
    konsoleBrowserExtension(konsolePart *);
81
 
    void emitOpenURLRequest(const KURL &);
82
 
};
83
 
 
 
148
 
 
149
public:
 
150
    virtual void         startProgram (const QString&, const QStrList&)  = 0;
 
151
    virtual void         showShellInDir (const QString&)  = 0;
 
152
    virtual void         sendInput (const QString&)  = 0;
 
153
 
 
154
};  // class TerminalInterface
 
155
 
 
156
 
 
157
%If ( KDE_3_5_0 -  )
 
158
 
 
159
class ExtTerminalInterface
 
160
{
 
161
%TypeHeaderCode
 
162
#include <kde_terminal_interface.h>
 
163
%End
 
164
 
 
165
 
 
166
public:
 
167
    virtual void         startProgram (const QString&, const QStrList&)  = 0;
 
168
    virtual void         showShellInDir (const QString&)  = 0;
 
169
    virtual void         sendInput (const QString&)  = 0;
 
170
    virtual void         setAutoStartShell (bool)  = 0;
 
171
    virtual void         setAutoDestroy (bool)  = 0;
 
172
 
 
173
};  // class ExtTerminalInterface
 
174
 
 
175
%End
 
176
 
 
177
//end