File indexing completed on 2024-05-12 16:08:39
0001 class pyqtSignal(): 0002 def connect(self, targetSignal): pass 0003 def emit(self, *args): pass 0004 from QtCore import * 0005 0006 class PolkitQt(): 0007 """""" 0008 class ActionButton(PolkitQt.Action): 0009 """""" 0010 def __init__(self, button, actionId = QString(), parent = None): 0011 '''void PolkitQt.ActionButton.__init__(QAbstractButton button, QString actionId = QString(), QObject parent = None)''' 0012 clicked = pyqtSignal() # void clicked(QAbstractButton *,bool = 0) - signal 0013 def activate(self): 0014 '''bool PolkitQt.ActionButton.activate()''' 0015 return bool() 0016 def button(self): 0017 '''QAbstractButton PolkitQt.ActionButton.button()''' 0018 return QAbstractButton() 0019 def setButton(self, button): 0020 '''void PolkitQt.ActionButton.setButton(QAbstractButton button)''' 0021 class Context(QObject): 0022 """""" 0023 def __init__(self): 0024 '''void PolkitQt.Context.__init__()''' 0025 consoleKitDBChanged = pyqtSignal() # void consoleKitDBChanged() - signal 0026 configChanged = pyqtSignal() # void configChanged() - signal 0027 def lastError(self): 0028 '''QString PolkitQt.Context.lastError()''' 0029 return QString() 0030 def hasError(self): 0031 '''bool PolkitQt.Context.hasError()''' 0032 return bool() 0033 class Auth(): 0034 """""" 0035 # Enum PolkitQt.Auth.Result 0036 Unknown = 0 0037 Yes = 0 0038 AdminAuthOneShot = 0 0039 AdminAuth = 0 0040 AdminAuthKeepSession = 0 0041 AdminAuthKeepAlways = 0 0042 SelfAuthOneShot = 0 0043 SelfAuth = 0 0044 SelfAuthKeepSession = 0 0045 SelfAuthKeepAlways = 0 0046 No = 0 0047 0048 def isCallerAuthorized(self, actionId, pid, revokeIfOneShot): 0049 '''static PolkitQt.Auth.Result PolkitQt.Auth.isCallerAuthorized(QString actionId, int pid, bool revokeIfOneShot)''' 0050 return PolkitQt.Auth.Result() 0051 def isCallerAuthorized(self, actionId, dbusName, revokeIfOneShot): 0052 '''static PolkitQt.Auth.Result PolkitQt.Auth.isCallerAuthorized(QString actionId, QString dbusName, bool revokeIfOneShot)''' 0053 return PolkitQt.Auth.Result() 0054 def obtainAuth(self, actionId, winId = 0, pid = None): 0055 '''static bool PolkitQt.Auth.obtainAuth(QString actionId, int winId = 0, int pid = QCoreApplication.applicationPid())''' 0056 return bool() 0057 def computeAndObtainAuth(self, actionId, winId = 0, pid = None): 0058 '''static bool PolkitQt.Auth.computeAndObtainAuth(QString actionId, int winId = 0, int pid = QCoreApplication.applicationPid())''' 0059 return bool() 0060 class ActionButtons(PolkitQt.ActionButton): 0061 """""" 0062 def __init__(self, buttons, actionId = QString(), parent = None): 0063 '''void PolkitQt.ActionButtons.__init__(list-of-QAbstractButton buttons, QString actionId = QString(), QObject parent = None)''' 0064 def removeButton(self, button): 0065 '''void PolkitQt.ActionButtons.removeButton(QAbstractButton button)''' 0066 def addButton(self, button): 0067 '''void PolkitQt.ActionButtons.addButton(QAbstractButton button)''' 0068 def buttons(self): 0069 '''list-of-QAbstractButton PolkitQt.ActionButtons.buttons()''' 0070 return [QAbstractButton()] 0071 def setButtons(self, buttons): 0072 '''void PolkitQt.ActionButtons.setButtons(list-of-QAbstractButton buttons)''' 0073 class Action(QAction): 0074 """""" 0075 def __init__(self, actionId = QString(), parent = None): 0076 '''void PolkitQt.Action.__init__(QString actionId = QString(), QObject parent = None)''' 0077 def is_(self, actionId): 0078 '''bool PolkitQt.Action.is_(QString actionId)''' 0079 return bool() 0080 def isAllowed(self): 0081 '''bool PolkitQt.Action.isAllowed()''' 0082 return bool() 0083 def targetPID(self): 0084 '''int PolkitQt.Action.targetPID()''' 0085 return int() 0086 def setTargetPID(self, pid): 0087 '''void PolkitQt.Action.setTargetPID(int pid)''' 0088 def yesIcon(self): 0089 '''QIcon PolkitQt.Action.yesIcon()''' 0090 return QIcon() 0091 def setYesIcon(self, icon): 0092 '''void PolkitQt.Action.setYesIcon(QIcon icon)''' 0093 def yesWhatsThis(self): 0094 '''QString PolkitQt.Action.yesWhatsThis()''' 0095 return QString() 0096 def setYesWhatsThis(self, whatsThis): 0097 '''void PolkitQt.Action.setYesWhatsThis(QString whatsThis)''' 0098 def yesToolTip(self): 0099 '''QString PolkitQt.Action.yesToolTip()''' 0100 return QString() 0101 def setYesToolTip(self, toolTip): 0102 '''void PolkitQt.Action.setYesToolTip(QString toolTip)''' 0103 def yesText(self): 0104 '''QString PolkitQt.Action.yesText()''' 0105 return QString() 0106 def setYesText(self, text): 0107 '''void PolkitQt.Action.setYesText(QString text)''' 0108 def yesEnabled(self): 0109 '''bool PolkitQt.Action.yesEnabled()''' 0110 return bool() 0111 def setYesEnabled(self, value): 0112 '''void PolkitQt.Action.setYesEnabled(bool value)''' 0113 def yesVisible(self): 0114 '''bool PolkitQt.Action.yesVisible()''' 0115 return bool() 0116 def setYesVisible(self, value): 0117 '''void PolkitQt.Action.setYesVisible(bool value)''' 0118 def authIcon(self): 0119 '''QIcon PolkitQt.Action.authIcon()''' 0120 return QIcon() 0121 def setAuthIcon(self, icon): 0122 '''void PolkitQt.Action.setAuthIcon(QIcon icon)''' 0123 def authWhatsThis(self): 0124 '''QString PolkitQt.Action.authWhatsThis()''' 0125 return QString() 0126 def setAuthWhatsThis(self, whatsThis): 0127 '''void PolkitQt.Action.setAuthWhatsThis(QString whatsThis)''' 0128 def authToolTip(self): 0129 '''QString PolkitQt.Action.authToolTip()''' 0130 return QString() 0131 def setAuthToolTip(self, toolTip): 0132 '''void PolkitQt.Action.setAuthToolTip(QString toolTip)''' 0133 def authText(self): 0134 '''QString PolkitQt.Action.authText()''' 0135 return QString() 0136 def setAuthText(self, text): 0137 '''void PolkitQt.Action.setAuthText(QString text)''' 0138 def authEnabled(self): 0139 '''bool PolkitQt.Action.authEnabled()''' 0140 return bool() 0141 def setAuthEnabled(self, value): 0142 '''void PolkitQt.Action.setAuthEnabled(bool value)''' 0143 def authVisible(self): 0144 '''bool PolkitQt.Action.authVisible()''' 0145 return bool() 0146 def setAuthVisible(self, value): 0147 '''void PolkitQt.Action.setAuthVisible(bool value)''' 0148 def noIcon(self): 0149 '''QIcon PolkitQt.Action.noIcon()''' 0150 return QIcon() 0151 def setNoIcon(self, icon): 0152 '''void PolkitQt.Action.setNoIcon(QIcon icon)''' 0153 def noWhatsThis(self): 0154 '''QString PolkitQt.Action.noWhatsThis()''' 0155 return QString() 0156 def setNoWhatsThis(self, whatsThis): 0157 '''void PolkitQt.Action.setNoWhatsThis(QString whatsThis)''' 0158 def noToolTip(self): 0159 '''QString PolkitQt.Action.noToolTip()''' 0160 return QString() 0161 def setNoToolTip(self, toolTip): 0162 '''void PolkitQt.Action.setNoToolTip(QString toolTip)''' 0163 def noText(self): 0164 '''QString PolkitQt.Action.noText()''' 0165 return QString() 0166 def setNoText(self, text): 0167 '''void PolkitQt.Action.setNoText(QString text)''' 0168 def noEnabled(self): 0169 '''bool PolkitQt.Action.noEnabled()''' 0170 return bool() 0171 def setNoEnabled(self, value): 0172 '''void PolkitQt.Action.setNoEnabled(bool value)''' 0173 def noVisible(self): 0174 '''bool PolkitQt.Action.noVisible()''' 0175 return bool() 0176 def setNoVisible(self, value): 0177 '''void PolkitQt.Action.setNoVisible(bool value)''' 0178 def selfBlockedIcon(self): 0179 '''QIcon PolkitQt.Action.selfBlockedIcon()''' 0180 return QIcon() 0181 def setSelfBlockedIcon(self, icon): 0182 '''void PolkitQt.Action.setSelfBlockedIcon(QIcon icon)''' 0183 def selfBlockedWhatsThis(self): 0184 '''QString PolkitQt.Action.selfBlockedWhatsThis()''' 0185 return QString() 0186 def setSelfBlockedWhatsThis(self, whatsThis): 0187 '''void PolkitQt.Action.setSelfBlockedWhatsThis(QString whatsThis)''' 0188 def selfBlockedToolTip(self): 0189 '''QString PolkitQt.Action.selfBlockedToolTip()''' 0190 return QString() 0191 def setSelfBlockedToolTip(self, toolTip): 0192 '''void PolkitQt.Action.setSelfBlockedToolTip(QString toolTip)''' 0193 def selfBlockedText(self): 0194 '''QString PolkitQt.Action.selfBlockedText()''' 0195 return QString() 0196 def setSelfBlockedText(self, text): 0197 '''void PolkitQt.Action.setSelfBlockedText(QString text)''' 0198 def selfBlockedEnabled(self): 0199 '''bool PolkitQt.Action.selfBlockedEnabled()''' 0200 return bool() 0201 def setSelfBlockedEnabled(self, value): 0202 '''void PolkitQt.Action.setSelfBlockedEnabled(bool value)''' 0203 def selfBlockedVisible(self): 0204 '''bool PolkitQt.Action.selfBlockedVisible()''' 0205 return bool() 0206 def setSelfBlockedVisible(self, value): 0207 '''void PolkitQt.Action.setSelfBlockedVisible(bool value)''' 0208 def setIcon(self, icon): 0209 '''void PolkitQt.Action.setIcon(QIcon icon)''' 0210 def setWhatsThis(self, whatsThis): 0211 '''void PolkitQt.Action.setWhatsThis(QString whatsThis)''' 0212 def setToolTip(self, toolTip): 0213 '''void PolkitQt.Action.setToolTip(QString toolTip)''' 0214 def setText(self, text): 0215 '''void PolkitQt.Action.setText(QString text)''' 0216 def masterEnabled(self): 0217 '''bool PolkitQt.Action.masterEnabled()''' 0218 return bool() 0219 def setMasterEnabled(self, value): 0220 '''void PolkitQt.Action.setMasterEnabled(bool value)''' 0221 def masterVisible(self): 0222 '''bool PolkitQt.Action.masterVisible()''' 0223 return bool() 0224 def setMasterVisible(self, value): 0225 '''void PolkitQt.Action.setMasterVisible(bool value)''' 0226 def actionId(self): 0227 '''QString PolkitQt.Action.actionId()''' 0228 return QString() 0229 def setPolkitAction(self, actionId = QString()): 0230 '''void PolkitQt.Action.setPolkitAction(QString actionId = QString())''' 0231 def revoke(self): 0232 '''void PolkitQt.Action.revoke()''' 0233 def setChecked(self, checked): 0234 '''void PolkitQt.Action.setChecked(bool checked)''' 0235 def activate(self, winId = 0): 0236 '''bool PolkitQt.Action.activate(int winId = 0)''' 0237 return bool() 0238 activated = pyqtSignal() # void activated() - signal 0239 dataChanged = pyqtSignal() # void dataChanged() - signal 0240 0241