1class pyqtSignal():
2 def connect(self, targetSignal): pass
3 def emit(self, *args): pass
4from QtCore import *
5
6class PolkitQt():
7    """"""
8    class ActionButton(PolkitQt.Action):
9        """"""
10        def __init__(self, button, actionId = QString(), parent = None):
11            '''void PolkitQt.ActionButton.__init__(QAbstractButton button, QString actionId = QString(), QObject parent = None)'''
12        clicked = pyqtSignal() # void clicked(QAbstractButton *,bool = 0) - signal
13        def activate(self):
14            '''bool PolkitQt.ActionButton.activate()'''
15            return bool()
16        def button(self):
17            '''QAbstractButton PolkitQt.ActionButton.button()'''
18            return QAbstractButton()
19        def setButton(self, button):
20            '''void PolkitQt.ActionButton.setButton(QAbstractButton button)'''
21    class Context(QObject):
22        """"""
23        def __init__(self):
24            '''void PolkitQt.Context.__init__()'''
25        consoleKitDBChanged = pyqtSignal() # void consoleKitDBChanged() - signal
26        configChanged = pyqtSignal() # void configChanged() - signal
27        def lastError(self):
28            '''QString PolkitQt.Context.lastError()'''
29            return QString()
30        def hasError(self):
31            '''bool PolkitQt.Context.hasError()'''
32            return bool()
33    class Auth():
34        """"""
35        # Enum PolkitQt.Auth.Result
36        Unknown = 0
37        Yes = 0
38        AdminAuthOneShot = 0
39        AdminAuth = 0
40        AdminAuthKeepSession = 0
41        AdminAuthKeepAlways = 0
42        SelfAuthOneShot = 0
43        SelfAuth = 0
44        SelfAuthKeepSession = 0
45        SelfAuthKeepAlways = 0
46        No = 0
47
48        def isCallerAuthorized(self, actionId, pid, revokeIfOneShot):
49            '''static PolkitQt.Auth.Result PolkitQt.Auth.isCallerAuthorized(QString actionId, int pid, bool revokeIfOneShot)'''
50            return PolkitQt.Auth.Result()
51        def isCallerAuthorized(self, actionId, dbusName, revokeIfOneShot):
52            '''static PolkitQt.Auth.Result PolkitQt.Auth.isCallerAuthorized(QString actionId, QString dbusName, bool revokeIfOneShot)'''
53            return PolkitQt.Auth.Result()
54        def obtainAuth(self, actionId, winId = 0, pid = None):
55            '''static bool PolkitQt.Auth.obtainAuth(QString actionId, int winId = 0, int pid = QCoreApplication.applicationPid())'''
56            return bool()
57        def computeAndObtainAuth(self, actionId, winId = 0, pid = None):
58            '''static bool PolkitQt.Auth.computeAndObtainAuth(QString actionId, int winId = 0, int pid = QCoreApplication.applicationPid())'''
59            return bool()
60    class ActionButtons(PolkitQt.ActionButton):
61        """"""
62        def __init__(self, buttons, actionId = QString(), parent = None):
63            '''void PolkitQt.ActionButtons.__init__(list-of-QAbstractButton buttons, QString actionId = QString(), QObject parent = None)'''
64        def removeButton(self, button):
65            '''void PolkitQt.ActionButtons.removeButton(QAbstractButton button)'''
66        def addButton(self, button):
67            '''void PolkitQt.ActionButtons.addButton(QAbstractButton button)'''
68        def buttons(self):
69            '''list-of-QAbstractButton PolkitQt.ActionButtons.buttons()'''
70            return [QAbstractButton()]
71        def setButtons(self, buttons):
72            '''void PolkitQt.ActionButtons.setButtons(list-of-QAbstractButton buttons)'''
73    class Action(QAction):
74        """"""
75        def __init__(self, actionId = QString(), parent = None):
76            '''void PolkitQt.Action.__init__(QString actionId = QString(), QObject parent = None)'''
77        def is_(self, actionId):
78            '''bool PolkitQt.Action.is_(QString actionId)'''
79            return bool()
80        def isAllowed(self):
81            '''bool PolkitQt.Action.isAllowed()'''
82            return bool()
83        def targetPID(self):
84            '''int PolkitQt.Action.targetPID()'''
85            return int()
86        def setTargetPID(self, pid):
87            '''void PolkitQt.Action.setTargetPID(int pid)'''
88        def yesIcon(self):
89            '''QIcon PolkitQt.Action.yesIcon()'''
90            return QIcon()
91        def setYesIcon(self, icon):
92            '''void PolkitQt.Action.setYesIcon(QIcon icon)'''
93        def yesWhatsThis(self):
94            '''QString PolkitQt.Action.yesWhatsThis()'''
95            return QString()
96        def setYesWhatsThis(self, whatsThis):
97            '''void PolkitQt.Action.setYesWhatsThis(QString whatsThis)'''
98        def yesToolTip(self):
99            '''QString PolkitQt.Action.yesToolTip()'''
100            return QString()
101        def setYesToolTip(self, toolTip):
102            '''void PolkitQt.Action.setYesToolTip(QString toolTip)'''
103        def yesText(self):
104            '''QString PolkitQt.Action.yesText()'''
105            return QString()
106        def setYesText(self, text):
107            '''void PolkitQt.Action.setYesText(QString text)'''
108        def yesEnabled(self):
109            '''bool PolkitQt.Action.yesEnabled()'''
110            return bool()
111        def setYesEnabled(self, value):
112            '''void PolkitQt.Action.setYesEnabled(bool value)'''
113        def yesVisible(self):
114            '''bool PolkitQt.Action.yesVisible()'''
115            return bool()
116        def setYesVisible(self, value):
117            '''void PolkitQt.Action.setYesVisible(bool value)'''
118        def authIcon(self):
119            '''QIcon PolkitQt.Action.authIcon()'''
120            return QIcon()
121        def setAuthIcon(self, icon):
122            '''void PolkitQt.Action.setAuthIcon(QIcon icon)'''
123        def authWhatsThis(self):
124            '''QString PolkitQt.Action.authWhatsThis()'''
125            return QString()
126        def setAuthWhatsThis(self, whatsThis):
127            '''void PolkitQt.Action.setAuthWhatsThis(QString whatsThis)'''
128        def authToolTip(self):
129            '''QString PolkitQt.Action.authToolTip()'''
130            return QString()
131        def setAuthToolTip(self, toolTip):
132            '''void PolkitQt.Action.setAuthToolTip(QString toolTip)'''
133        def authText(self):
134            '''QString PolkitQt.Action.authText()'''
135            return QString()
136        def setAuthText(self, text):
137            '''void PolkitQt.Action.setAuthText(QString text)'''
138        def authEnabled(self):
139            '''bool PolkitQt.Action.authEnabled()'''
140            return bool()
141        def setAuthEnabled(self, value):
142            '''void PolkitQt.Action.setAuthEnabled(bool value)'''
143        def authVisible(self):
144            '''bool PolkitQt.Action.authVisible()'''
145            return bool()
146        def setAuthVisible(self, value):
147            '''void PolkitQt.Action.setAuthVisible(bool value)'''
148        def noIcon(self):
149            '''QIcon PolkitQt.Action.noIcon()'''
150            return QIcon()
151        def setNoIcon(self, icon):
152            '''void PolkitQt.Action.setNoIcon(QIcon icon)'''
153        def noWhatsThis(self):
154            '''QString PolkitQt.Action.noWhatsThis()'''
155            return QString()
156        def setNoWhatsThis(self, whatsThis):
157            '''void PolkitQt.Action.setNoWhatsThis(QString whatsThis)'''
158        def noToolTip(self):
159            '''QString PolkitQt.Action.noToolTip()'''
160            return QString()
161        def setNoToolTip(self, toolTip):
162            '''void PolkitQt.Action.setNoToolTip(QString toolTip)'''
163        def noText(self):
164            '''QString PolkitQt.Action.noText()'''
165            return QString()
166        def setNoText(self, text):
167            '''void PolkitQt.Action.setNoText(QString text)'''
168        def noEnabled(self):
169            '''bool PolkitQt.Action.noEnabled()'''
170            return bool()
171        def setNoEnabled(self, value):
172            '''void PolkitQt.Action.setNoEnabled(bool value)'''
173        def noVisible(self):
174            '''bool PolkitQt.Action.noVisible()'''
175            return bool()
176        def setNoVisible(self, value):
177            '''void PolkitQt.Action.setNoVisible(bool value)'''
178        def selfBlockedIcon(self):
179            '''QIcon PolkitQt.Action.selfBlockedIcon()'''
180            return QIcon()
181        def setSelfBlockedIcon(self, icon):
182            '''void PolkitQt.Action.setSelfBlockedIcon(QIcon icon)'''
183        def selfBlockedWhatsThis(self):
184            '''QString PolkitQt.Action.selfBlockedWhatsThis()'''
185            return QString()
186        def setSelfBlockedWhatsThis(self, whatsThis):
187            '''void PolkitQt.Action.setSelfBlockedWhatsThis(QString whatsThis)'''
188        def selfBlockedToolTip(self):
189            '''QString PolkitQt.Action.selfBlockedToolTip()'''
190            return QString()
191        def setSelfBlockedToolTip(self, toolTip):
192            '''void PolkitQt.Action.setSelfBlockedToolTip(QString toolTip)'''
193        def selfBlockedText(self):
194            '''QString PolkitQt.Action.selfBlockedText()'''
195            return QString()
196        def setSelfBlockedText(self, text):
197            '''void PolkitQt.Action.setSelfBlockedText(QString text)'''
198        def selfBlockedEnabled(self):
199            '''bool PolkitQt.Action.selfBlockedEnabled()'''
200            return bool()
201        def setSelfBlockedEnabled(self, value):
202            '''void PolkitQt.Action.setSelfBlockedEnabled(bool value)'''
203        def selfBlockedVisible(self):
204            '''bool PolkitQt.Action.selfBlockedVisible()'''
205            return bool()
206        def setSelfBlockedVisible(self, value):
207            '''void PolkitQt.Action.setSelfBlockedVisible(bool value)'''
208        def setIcon(self, icon):
209            '''void PolkitQt.Action.setIcon(QIcon icon)'''
210        def setWhatsThis(self, whatsThis):
211            '''void PolkitQt.Action.setWhatsThis(QString whatsThis)'''
212        def setToolTip(self, toolTip):
213            '''void PolkitQt.Action.setToolTip(QString toolTip)'''
214        def setText(self, text):
215            '''void PolkitQt.Action.setText(QString text)'''
216        def masterEnabled(self):
217            '''bool PolkitQt.Action.masterEnabled()'''
218            return bool()
219        def setMasterEnabled(self, value):
220            '''void PolkitQt.Action.setMasterEnabled(bool value)'''
221        def masterVisible(self):
222            '''bool PolkitQt.Action.masterVisible()'''
223            return bool()
224        def setMasterVisible(self, value):
225            '''void PolkitQt.Action.setMasterVisible(bool value)'''
226        def actionId(self):
227            '''QString PolkitQt.Action.actionId()'''
228            return QString()
229        def setPolkitAction(self, actionId = QString()):
230            '''void PolkitQt.Action.setPolkitAction(QString actionId = QString())'''
231        def revoke(self):
232            '''void PolkitQt.Action.revoke()'''
233        def setChecked(self, checked):
234            '''void PolkitQt.Action.setChecked(bool checked)'''
235        def activate(self, winId = 0):
236            '''bool PolkitQt.Action.activate(int winId = 0)'''
237            return bool()
238        activated = pyqtSignal() # void activated() - signal
239        dataChanged = pyqtSignal() # void dataChanged() - signal
240
241
242