File indexing completed on 2024-05-12 16:08:33
0001 class pyqtSignal(): 0002 def connect(self, targetSignal): pass 0003 def emit(self, *args): pass 0004 from QtCore import * 0005 0006 class KNS(): 0007 """""" 0008 def standardAction(self, what, receiver, slot, parent, name = None): 0009 '''static KAction KNS.standardAction(QString what, QObject receiver, str slot, KActionCollection parent, str name = None)''' 0010 return KAction() 0011 class KTranslatable(): 0012 """""" 0013 def __init__(self): 0014 '''void KNS.KTranslatable.__init__()''' 0015 def __init__(self, string): 0016 '''void KNS.KTranslatable.__init__(QString string)''' 0017 def __init__(self): 0018 '''KNS.KTranslatable KNS.KTranslatable.__init__()''' 0019 return KNS.KTranslatable() 0020 def isEmpty(self): 0021 '''bool KNS.KTranslatable.isEmpty()''' 0022 return bool() 0023 def isTranslated(self): 0024 '''bool KNS.KTranslatable.isTranslated()''' 0025 return bool() 0026 def stringmap(self): 0027 '''dict-of-QString-QString KNS.KTranslatable.stringmap()''' 0028 return dict-of-QString-QString() 0029 def language(self): 0030 '''QString KNS.KTranslatable.language()''' 0031 return QString() 0032 def languages(self): 0033 '''QStringList KNS.KTranslatable.languages()''' 0034 return QStringList() 0035 def strings(self): 0036 '''QStringList KNS.KTranslatable.strings()''' 0037 return QStringList() 0038 def translated(self, lang): 0039 '''QString KNS.KTranslatable.translated(QString lang)''' 0040 return QString() 0041 def representation(self): 0042 '''QString KNS.KTranslatable.representation()''' 0043 return QString() 0044 def addString(self, lang, string): 0045 '''void KNS.KTranslatable.addString(QString lang, QString string)''' 0046 class Author(): 0047 """""" 0048 def __init__(self): 0049 '''void KNS.Author.__init__()''' 0050 def __init__(self, other): 0051 '''void KNS.Author.__init__(KNS.Author other)''' 0052 def homepage(self): 0053 '''QString KNS.Author.homepage()''' 0054 return QString() 0055 def setHomepage(self, homepage): 0056 '''void KNS.Author.setHomepage(QString homepage)''' 0057 def jabber(self): 0058 '''QString KNS.Author.jabber()''' 0059 return QString() 0060 def setJabber(self, jabber): 0061 '''void KNS.Author.setJabber(QString jabber)''' 0062 def email(self): 0063 '''QString KNS.Author.email()''' 0064 return QString() 0065 def setEmail(self, email): 0066 '''void KNS.Author.setEmail(QString email)''' 0067 def name(self): 0068 '''QString KNS.Author.name()''' 0069 return QString() 0070 def setName(self, name): 0071 '''void KNS.Author.setName(QString name)''' 0072 class Category(): 0073 """""" 0074 def __init__(self): 0075 '''void KNS.Category.__init__()''' 0076 def icon(self): 0077 '''KUrl KNS.Category.icon()''' 0078 return KUrl() 0079 def setIcon(self, icon): 0080 '''void KNS.Category.setIcon(KUrl icon)''' 0081 def description(self): 0082 '''KNS.KTranslatable KNS.Category.description()''' 0083 return KNS.KTranslatable() 0084 def setDescription(self, type): 0085 '''void KNS.Category.setDescription(KNS.KTranslatable type)''' 0086 def name(self): 0087 '''KNS.KTranslatable KNS.Category.name()''' 0088 return KNS.KTranslatable() 0089 def setName(self, name): 0090 '''void KNS.Category.setName(KNS.KTranslatable name)''' 0091 def id(self): 0092 '''QString KNS.Category.id()''' 0093 return QString() 0094 def setId(self, id): 0095 '''void KNS.Category.setId(QString id)''' 0096 class Button(KPushButton): 0097 """""" 0098 def __init__(self, what, providerList, resourceType, parent): 0099 '''void KNS.Button.__init__(QString what, QString providerList, QString resourceType, QWidget parent)''' 0100 def __init__(self, parent): 0101 '''void KNS.Button.__init__(QWidget parent)''' 0102 def showDialog(self): 0103 '''void KNS.Button.showDialog()''' 0104 dialogFinished = pyqtSignal() # void dialogFinished() - signal 0105 aboutToShowDialog = pyqtSignal() # void aboutToShowDialog() - signal 0106 def setButtonText(self, what): 0107 '''void KNS.Button.setButtonText(QString what)''' 0108 def setResourceType(self, resourceType): 0109 '''void KNS.Button.setResourceType(QString resourceType)''' 0110 def setProviderList(self, providerList): 0111 '''void KNS.Button.setProviderList(QString providerList)''' 0112 class Installation(): 0113 """""" 0114 # Enum KNS.Installation.Scope 0115 ScopeUser = 0 0116 ScopeSystem = 0 0117 0118 # Enum KNS.Installation.Policy 0119 CheckNever = 0 0120 CheckIfPossible = 0 0121 CheckAlways = 0 0122 0123 def __init__(self): 0124 '''void KNS.Installation.__init__()''' 0125 def customName(self): 0126 '''bool KNS.Installation.customName()''' 0127 return bool() 0128 def scope(self): 0129 '''KNS.Installation.Scope KNS.Installation.scope()''' 0130 return KNS.Installation.Scope() 0131 def signaturePolicy(self): 0132 '''KNS.Installation.Policy KNS.Installation.signaturePolicy()''' 0133 return KNS.Installation.Policy() 0134 def checksumPolicy(self): 0135 '''KNS.Installation.Policy KNS.Installation.checksumPolicy()''' 0136 return KNS.Installation.Policy() 0137 def isRemote(self): 0138 '''bool KNS.Installation.isRemote()''' 0139 return bool() 0140 def absoluteInstallPath(self): 0141 '''QString KNS.Installation.absoluteInstallPath()''' 0142 return QString() 0143 def installPath(self): 0144 '''QString KNS.Installation.installPath()''' 0145 return QString() 0146 def targetDir(self): 0147 '''QString KNS.Installation.targetDir()''' 0148 return QString() 0149 def standardResourceDir(self): 0150 '''QString KNS.Installation.standardResourceDir()''' 0151 return QString() 0152 def uninstallCommand(self): 0153 '''QString KNS.Installation.uninstallCommand()''' 0154 return QString() 0155 def command(self): 0156 '''QString KNS.Installation.command()''' 0157 return QString() 0158 def uncompression(self): 0159 '''QString KNS.Installation.uncompression()''' 0160 return QString() 0161 def setCustomName(self, customname): 0162 '''void KNS.Installation.setCustomName(bool customname)''' 0163 def setSignaturePolicy(self, policy): 0164 '''void KNS.Installation.setSignaturePolicy(KNS.Installation.Policy policy)''' 0165 def setChecksumPolicy(self, policy): 0166 '''void KNS.Installation.setChecksumPolicy(KNS.Installation.Policy policy)''' 0167 def setScope(self, scope): 0168 '''void KNS.Installation.setScope(KNS.Installation.Scope scope)''' 0169 def setAbsoluteInstallPath(self, dir): 0170 '''void KNS.Installation.setAbsoluteInstallPath(QString dir)''' 0171 def setInstallPath(self, dir): 0172 '''void KNS.Installation.setInstallPath(QString dir)''' 0173 def setTargetDir(self, dir): 0174 '''void KNS.Installation.setTargetDir(QString dir)''' 0175 def setStandardResourceDir(self, dir): 0176 '''void KNS.Installation.setStandardResourceDir(QString dir)''' 0177 def setUninstallCommand(self, command): 0178 '''void KNS.Installation.setUninstallCommand(QString command)''' 0179 def setCommand(self, command): 0180 '''void KNS.Installation.setCommand(QString command)''' 0181 def setUncompression(self, uncompression): 0182 '''void KNS.Installation.setUncompression(QString uncompression)''' 0183 class Engine(): 0184 """""" 0185 def __init__(self, parent = None): 0186 '''void KNS.Engine.__init__(QWidget parent = None)''' 0187 def init(self, config): 0188 '''bool KNS.Engine.init(QString config)''' 0189 return bool() 0190 def uploadDialog(self, file): 0191 '''void KNS.Engine.uploadDialog(QString file)''' 0192 def downloadDialog(self): 0193 '''void KNS.Engine.downloadDialog()''' 0194 def downloadDialog(self, receiver, slot): 0195 '''void KNS.Engine.downloadDialog(QObject receiver, str slot)''' 0196 def upload(self, file): 0197 '''static KNS.Entry KNS.Engine.upload(QString file)''' 0198 return KNS.Entry() 0199 def uploadDialogModal(self, file): 0200 '''KNS.Entry KNS.Engine.uploadDialogModal(QString file)''' 0201 return KNS.Entry() 0202 def download(self): 0203 '''static list-of-KNS.Entry KNS.Engine.download()''' 0204 return [KNS.Entry()] 0205 def downloadDialogModal(self, parent = None): 0206 '''list-of-KNS.Entry KNS.Engine.downloadDialogModal(QWidget parent = None)''' 0207 return [KNS.Entry()] 0208 class Entry(): 0209 """""" 0210 # Enum KNS.Entry.Source 0211 Cache = 0 0212 Online = 0 0213 Registry = 0 0214 0215 # Enum KNS.Entry.Status 0216 Invalid = 0 0217 Downloadable = 0 0218 Installed = 0 0219 Updateable = 0 0220 Deleted = 0 0221 0222 def __init__(self): 0223 '''void KNS.Entry.__init__()''' 0224 def __init__(self, other): 0225 '''void KNS.Entry.__init__(KNS.Entry other)''' 0226 def idNumber(self): 0227 '''int KNS.Entry.idNumber()''' 0228 return int() 0229 def setIdNumber(self, number): 0230 '''void KNS.Entry.setIdNumber(int number)''' 0231 def source(self): 0232 '''KNS.Entry.Source KNS.Entry.source()''' 0233 return KNS.Entry.Source() 0234 def setSource(self, source): 0235 '''void KNS.Entry.setSource(KNS.Entry.Source source)''' 0236 def status(self): 0237 '''KNS.Entry.Status KNS.Entry.status()''' 0238 return KNS.Entry.Status() 0239 def setStatus(self, status): 0240 '''void KNS.Entry.setStatus(KNS.Entry.Status status)''' 0241 def signature(self): 0242 '''QString KNS.Entry.signature()''' 0243 return QString() 0244 def checksum(self): 0245 '''QString KNS.Entry.checksum()''' 0246 return QString() 0247 def setSignature(self, signature): 0248 '''void KNS.Entry.setSignature(QString signature)''' 0249 def setChecksum(self, checksum): 0250 '''void KNS.Entry.setChecksum(QString checksum)''' 0251 def downloads(self): 0252 '''int KNS.Entry.downloads()''' 0253 return int() 0254 def setDownloads(self, downloads): 0255 '''void KNS.Entry.setDownloads(int downloads)''' 0256 def rating(self): 0257 '''int KNS.Entry.rating()''' 0258 return int() 0259 def setRating(self, rating): 0260 '''void KNS.Entry.setRating(int rating)''' 0261 def uninstalledFiles(self): 0262 '''QStringList KNS.Entry.uninstalledFiles()''' 0263 return QStringList() 0264 def installedFiles(self): 0265 '''QStringList KNS.Entry.installedFiles()''' 0266 return QStringList() 0267 def setUnInstalledFiles(self, files): 0268 '''void KNS.Entry.setUnInstalledFiles(QStringList files)''' 0269 def setInstalledFiles(self, files): 0270 '''void KNS.Entry.setInstalledFiles(QStringList files)''' 0271 def preview(self): 0272 '''KNS.KTranslatable KNS.Entry.preview()''' 0273 return KNS.KTranslatable() 0274 def setPreview(self, url): 0275 '''void KNS.Entry.setPreview(KNS.KTranslatable url)''' 0276 def payload(self): 0277 '''KNS.KTranslatable KNS.Entry.payload()''' 0278 return KNS.KTranslatable() 0279 def setPayload(self, url): 0280 '''void KNS.Entry.setPayload(KNS.KTranslatable url)''' 0281 def releaseDate(self): 0282 '''QDate KNS.Entry.releaseDate()''' 0283 return QDate() 0284 def setReleaseDate(self, releasedate): 0285 '''void KNS.Entry.setReleaseDate(QDate releasedate)''' 0286 def release(self): 0287 '''int KNS.Entry.release()''' 0288 return int() 0289 def setRelease(self, release): 0290 '''void KNS.Entry.setRelease(int release)''' 0291 def version(self): 0292 '''QString KNS.Entry.version()''' 0293 return QString() 0294 def setVersion(self, version): 0295 '''void KNS.Entry.setVersion(QString version)''' 0296 def summary(self): 0297 '''KNS.KTranslatable KNS.Entry.summary()''' 0298 return KNS.KTranslatable() 0299 def setSummary(self, summary): 0300 '''void KNS.Entry.setSummary(KNS.KTranslatable summary)''' 0301 def license(self): 0302 '''QString KNS.Entry.license()''' 0303 return QString() 0304 def setLicense(self, license): 0305 '''void KNS.Entry.setLicense(QString license)''' 0306 def author(self): 0307 '''KNS.Author KNS.Entry.author()''' 0308 return KNS.Author() 0309 def setAuthor(self, author): 0310 '''void KNS.Entry.setAuthor(KNS.Author author)''' 0311 def category(self): 0312 '''QString KNS.Entry.category()''' 0313 return QString() 0314 def setCategory(self, category): 0315 '''void KNS.Entry.setCategory(QString category)''' 0316 def name(self): 0317 '''KNS.KTranslatable KNS.Entry.name()''' 0318 return KNS.KTranslatable() 0319 def setName(self, name): 0320 '''void KNS.Entry.setName(KNS.KTranslatable name)''' 0321 0322 0323 class KNS3(): 0324 """""" 0325 def standardActionUpload(self, what, parent, name = None): 0326 '''static SLOT() KNS3.standardActionUpload(QString what, KActionCollection parent, str name = None)''' 0327 return SLOT()() 0328 def standardActionUpload(self, what, parent, name = None): 0329 '''static callable KNS3.standardActionUpload(QString what, KActionCollection parent, str name = None)''' 0330 return callable() 0331 def standardAction(self, what, parent, name = None): 0332 '''static SLOT() KNS3.standardAction(QString what, KActionCollection parent, str name = None)''' 0333 return SLOT()() 0334 def standardAction(self, what, parent, name = None): 0335 '''static callable KNS3.standardAction(QString what, KActionCollection parent, str name = None)''' 0336 return callable() 0337 class DownloadManager(QObject): 0338 """""" 0339 # Enum KNS3.DownloadManager.SortOrder 0340 Newest = 0 0341 Alphabetical = 0 0342 Rating = 0 0343 Downloads = 0 0344 0345 def __init__(self, parent = None): 0346 '''void KNS3.DownloadManager.__init__(QObject parent = None)''' 0347 def __init__(self, configFile, parent = None): 0348 '''void KNS3.DownloadManager.__init__(QString configFile, QObject parent = None)''' 0349 def uninstallEntry(self, entry): 0350 '''void KNS3.DownloadManager.uninstallEntry(KNS3.Entry entry)''' 0351 entryStatusChanged = pyqtSignal() # void entryStatusChanged(const KNS3::Entryamp;) - signal 0352 searchResult = pyqtSignal() # void searchResult(const KNS3::Entry::Listamp;) - signal 0353 def setSearchOrder(self, order): 0354 '''void KNS3.DownloadManager.setSearchOrder(KNS3.DownloadManager.SortOrder order)''' 0355 def setSearchTerm(self, searchTerm): 0356 '''void KNS3.DownloadManager.setSearchTerm(QString searchTerm)''' 0357 def installEntry(self, entry): 0358 '''void KNS3.DownloadManager.installEntry(KNS3.Entry entry)''' 0359 def checkForUpdates(self): 0360 '''void KNS3.DownloadManager.checkForUpdates()''' 0361 def search(self, page = 0, pageSize = 100): 0362 '''void KNS3.DownloadManager.search(int page = 0, int pageSize = 100)''' 0363 class UploadDialog(KDialog): 0364 """""" 0365 def __init__(self, parent = None): 0366 '''void KNS3.UploadDialog.__init__(QWidget parent = None)''' 0367 def __init__(self, configFile, parent = None): 0368 '''void KNS3.UploadDialog.__init__(QString configFile, QWidget parent = None)''' 0369 def setPreviewImageFile(self, number, file): 0370 '''void KNS3.UploadDialog.setPreviewImageFile(int number, KUrl file)''' 0371 def setPriceEnabled(self, enabled): 0372 '''void KNS3.UploadDialog.setPriceEnabled(bool enabled)''' 0373 def selectCategory(self, category): 0374 '''void KNS3.UploadDialog.selectCategory(QString category)''' 0375 def setPriceReason(self, reason): 0376 '''void KNS3.UploadDialog.setPriceReason(QString reason)''' 0377 def setPrice(self, price): 0378 '''void KNS3.UploadDialog.setPrice(float price)''' 0379 def setChangelog(self, changelog): 0380 '''void KNS3.UploadDialog.setChangelog(QString changelog)''' 0381 def setDescription(self, description): 0382 '''void KNS3.UploadDialog.setDescription(QString description)''' 0383 def setVersion(self, version): 0384 '''void KNS3.UploadDialog.setVersion(QString version)''' 0385 def accept(self): 0386 '''void KNS3.UploadDialog.accept()''' 0387 def setUploadName(self, name): 0388 '''void KNS3.UploadDialog.setUploadName(QString name)''' 0389 def setUploadFile(self, payloadFile): 0390 '''void KNS3.UploadDialog.setUploadFile(KUrl payloadFile)''' 0391 class Button(KPushButton): 0392 """""" 0393 def __init__(self, text, configFile, parent): 0394 '''void KNS3.Button.__init__(QString text, QString configFile, QWidget parent)''' 0395 def __init__(self, parent): 0396 '''void KNS3.Button.__init__(QWidget parent)''' 0397 def showDialog(self): 0398 '''void KNS3.Button.showDialog()''' 0399 dialogFinished = pyqtSignal() # void dialogFinished(const KNS3::Entry::Listamp;) - signal 0400 aboutToShowDialog = pyqtSignal() # void aboutToShowDialog() - signal 0401 def setButtonText(self, text): 0402 '''void KNS3.Button.setButtonText(QString text)''' 0403 def setConfigFile(self, configFile): 0404 '''void KNS3.Button.setConfigFile(QString configFile)''' 0405 class Entry(): 0406 """""" 0407 # Enum KNS3.Entry.Status 0408 Invalid = 0 0409 Downloadable = 0 0410 Installed = 0 0411 Updateable = 0 0412 Deleted = 0 0413 Installing = 0 0414 Updating = 0 0415 0416 def __init__(self, other): 0417 '''void KNS3.Entry.__init__(KNS3.Entry other)''' 0418 def providerId(self): 0419 '''QString KNS3.Entry.providerId()''' 0420 return QString() 0421 def id(self): 0422 '''QString KNS3.Entry.id()''' 0423 return QString() 0424 def version(self): 0425 '''QString KNS3.Entry.version()''' 0426 return QString() 0427 def summary(self): 0428 '''QString KNS3.Entry.summary()''' 0429 return QString() 0430 def license(self): 0431 '''QString KNS3.Entry.license()''' 0432 return QString() 0433 def status(self): 0434 '''KNS3.Entry.Status KNS3.Entry.status()''' 0435 return KNS3.Entry.Status() 0436 def uninstalledFiles(self): 0437 '''QStringList KNS3.Entry.uninstalledFiles()''' 0438 return QStringList() 0439 def installedFiles(self): 0440 '''QStringList KNS3.Entry.installedFiles()''' 0441 return QStringList() 0442 def category(self): 0443 '''QString KNS3.Entry.category()''' 0444 return QString() 0445 def name(self): 0446 '''QString KNS3.Entry.name()''' 0447 return QString() 0448 class DownloadWidget(QWidget): 0449 """""" 0450 def __init__(self, parent = None): 0451 '''void KNS3.DownloadWidget.__init__(QWidget parent = None)''' 0452 def __init__(self, configFile, parent = None): 0453 '''void KNS3.DownloadWidget.__init__(QString configFile, QWidget parent = None)''' 0454 def installedEntries(self): 0455 '''list-of-KNS3.Entry KNS3.DownloadWidget.installedEntries()''' 0456 return [KNS3.Entry()] 0457 def changedEntries(self): 0458 '''list-of-KNS3.Entry KNS3.DownloadWidget.changedEntries()''' 0459 return [KNS3.Entry()] 0460 class DownloadDialog(KDialog): 0461 """""" 0462 def __init__(self, parent = None): 0463 '''void KNS3.DownloadDialog.__init__(QWidget parent = None)''' 0464 def __init__(self, configFile, parent = None): 0465 '''void KNS3.DownloadDialog.__init__(QString configFile, QWidget parent = None)''' 0466 def installedEntries(self): 0467 '''list-of-KNS3.Entry KNS3.DownloadDialog.installedEntries()''' 0468 return [KNS3.Entry()] 0469 def changedEntries(self): 0470 '''list-of-KNS3.Entry KNS3.DownloadDialog.changedEntries()''' 0471 return [KNS3.Entry()] 0472 0473