globals.h | globals.h | |||
---|---|---|---|---|
skipping to change at line 58 | skipping to change at line 58 | |||
* Defines the GroupList type, which is a QList of Groups (QStrings) | * Defines the GroupList type, which is a QList of Groups (QStrings) | |||
*/ | */ | |||
typedef QStringList GroupList; | typedef QStringList GroupList; | |||
/** | /** | |||
* Defines the Error type, a QVariantMap with info about errors | * Defines the Error type, a QVariantMap with info about errors | |||
* | * | |||
* These are the fields that each ErrorCode can have: | * These are the fields that each ErrorCode can have: | |||
* <"Key", ValueType> (Description of value) | * <"Key", ValueType> (Description of value) | |||
* InitError: <"ErrorText", QString> (APT's error description) | * InitError: <"ErrorText", QString> (APT's error description) | |||
* <"FromWorker, bool> (Whether or not an init error comes fr | ||||
om the worker. | ||||
* You want to quit your app if it doesn | ||||
't) | ||||
* LockError: No fields | * LockError: No fields | |||
* DiskSpaceError: <"DirectoryString", QString> | * DiskSpaceError: <"DirectoryString", QString> | |||
* FetchError: No fields | * FetchError: No fields | |||
* CommitError: <"FailedItem, QString> (Package that failed to commit) | * CommitError: <"FailedItem, QString> (Package that failed to commit) | |||
* <"ErrorText", QString> (APT's error description) | * <"ErrorText", QString> (APT's error description) | |||
* AuthError: No fields | * AuthError: No fields | |||
* WorkerDisappeared: No fields | * WorkerDisappeared: No fields | |||
* UntrustedError: <"UntrustedItems", QStringList> (List of untrusted pa ckages) | * UntrustedError: <"UntrustedItems", QStringList> (List of untrusted pa ckages) | |||
* UserCancelError: No fields, pseudo-error | * UserCancelError: No fields, pseudo-error | |||
* DownloadDisallowedError: No fields | * DownloadDisallowedError: No fields | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 4 lines changed or added | |||
package.h | package.h | |||
---|---|---|---|---|
skipping to change at line 259 | skipping to change at line 259 | |||
// TODO QApt2: Return a QDateTime so that KDE apps can localize | // TODO QApt2: Return a QDateTime so that KDE apps can localize | |||
/** | /** | |||
* Returns the date when Canonical's support of the package ends. | * Returns the date when Canonical's support of the package ends. | |||
* | * | |||
* \return The date that the package is supported until. If it is not | * \return The date that the package is supported until. If it is not | |||
* supported now, then it will return an empty QString. The date | * supported now, then it will return an empty QString. The date | |||
* will be localized in the "month year" format. | * will be localized in the "month year" format. | |||
*/ | */ | |||
QString supportedUntil() const; | QString supportedUntil() const; | |||
QString controlField(const QLatin1String &name) const; | ||||
/** | /** | |||
* Returns the amount of hard drive space that the currently-installed | * Returns the amount of hard drive space that the currently-installed | |||
* version of this package takes up. | * version of this package takes up. | |||
* This is human-unreadable, so KDE applications may wish to run this | * This is human-unreadable, so KDE applications may wish to run this | |||
* through the KGlobal::locale()->formatByteSize() function to get a | * through the KGlobal::locale()->formatByteSize() function to get a | |||
* localized, human-readable number. | * localized, human-readable number. | |||
* | * | |||
* Returns -1 on error. | * Returns -1 on error. | |||
* | * | |||
* \return The installed size of the package | * \return The installed size of the package | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||