/usr/include/PackageKit/packagekit-qt2/transaction.h is in libpackagekit-qt2-dev 0.8.8-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 | /*
* This file is part of the QPackageKit project
* Copyright (C) 2008 Adrien Bustany <madcat@mymadcat.com>
* Copyright (C) 2010-2012 Daniel Nicoletti <dantti12@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef PACKAGEKIT_TRANSACTION_H
#define PACKAGEKIT_TRANSACTION_H
#include <QtCore/QObject>
#include <QtCore/QDateTime>
#include <QtDBus/QDBusObjectPath>
#include "bitfield.h"
namespace PackageKit {
/**
* \class Transaction transaction.h Transaction
* \author Adrien Bustany \e <madcat@mymadcat.com>
* \author Daniel Nicoletti \e <dantti12@gmail.com>
*
* \brief A transaction represents an occurring action in PackageKit
*
* A Transaction is created whenever you do an asynchronous action (for example a Search, Install...).
* This class allows you to monitor and control the flow of the action.
*
* You should delete the transaction after finished() is emitted,
* or use the reset() method to reuse it
*
* \sa Daemon
*/
class TransactionPrivate;
class Transaction : public QObject
{
Q_OBJECT
Q_ENUMS(InternalError)
Q_ENUMS(Role)
Q_ENUMS(Error)
Q_ENUMS(Exit)
Q_ENUMS(Message)
Q_ENUMS(Status)
Q_ENUMS(MediaType)
Q_ENUMS(Provides)
Q_ENUMS(DistroUpgrade)
Q_ENUMS(TransactionFlag)
Q_ENUMS(Restart)
Q_ENUMS(UpdateState)
Q_ENUMS(Group)
Q_ENUMS(Info)
Q_ENUMS(SigType)
Q_ENUMS(Filter)
Q_FLAGS(TransactionFlag TransactionFlags)
Q_FLAGS(Filter Filters)
Q_PROPERTY(QDBusObjectPath tid READ tid NOTIFY changed)
Q_PROPERTY(InternalError error READ internalError NOTIFY changed)
Q_PROPERTY(InternalError internalError READ internalError NOTIFY changed)
Q_PROPERTY(QString internalErrorMessage READ internalErrorMessage NOTIFY changed)
Q_PROPERTY(bool allowCancel READ allowCancel NOTIFY changed)
Q_PROPERTY(bool isCallerActive READ isCallerActive NOTIFY changed)
Q_PROPERTY(QString lastPackage READ lastPackage NOTIFY changed)
Q_PROPERTY(uint percentage READ percentage NOTIFY changed)
Q_PROPERTY(uint elapsedTime READ elapsedTime NOTIFY changed)
Q_PROPERTY(uint remainingTime READ remainingTime NOTIFY changed)
Q_PROPERTY(uint speed READ speed NOTIFY changed)
Q_PROPERTY(qulonglong downloadSizeRemaining READ downloadSizeRemaining)
Q_PROPERTY(Role role READ role NOTIFY changed)
Q_PROPERTY(Status status READ status NOTIFY changed)
Q_PROPERTY(TransactionFlags transactionFlags READ transactionFlags NOTIFY changed)
Q_PROPERTY(QDateTime timespec READ timespec NOTIFY changed)
Q_PROPERTY(bool succeeded READ succeeded NOTIFY changed)
Q_PROPERTY(uint duration READ duration NOTIFY changed)
Q_PROPERTY(QString data READ data NOTIFY changed)
Q_PROPERTY(uint uid READ uid NOTIFY changed)
Q_PROPERTY(QString cmdline READ cmdline NOTIFY changed)
public:
/**
* Describes an error at the daemon level (for example, PackageKit crashes or is unreachable)
*
* \sa Transaction::error
*/
enum InternalError {
InternalErrorNone = 0,
InternalErrorUnkown,
InternalErrorFailed,
InternalErrorFailedAuth,
InternalErrorNoTid,
InternalErrorAlreadyTid,
InternalErrorRoleUnkown,
InternalErrorCannotStartDaemon,
InternalErrorInvalidInput,
InternalErrorInvalidFile,
InternalErrorFunctionNotSupported,
InternalErrorDaemonUnreachable
};
/**
* Describes the role of the transaction
*/
enum Role {
RoleUnknown,
RoleCancel,
RoleGetDepends,
RoleGetDetails,
RoleGetFiles,
RoleGetPackages,
RoleGetRepoList,
RoleGetRequires,
RoleGetUpdateDetail,
RoleGetUpdates,
RoleInstallFiles,
RoleInstallPackages,
RoleInstallSignature,
RoleRefreshCache,
RoleRemovePackages,
RoleRepoEnable,
RoleRepoSetData,
RoleResolve,
RoleSearchDetails,
RoleSearchFile,
RoleSearchGroup,
RoleSearchName,
RoleUpdatePackages,
RoleWhatProvides,
RoleAcceptEula,
RoleDownloadPackages,
RoleGetDistroUpgrades,
RoleGetCategories,
RoleGetOldTransactions,
RoleUpgradeSystem, // Since 0.6.11
RoleRepairSystem // Since 0.7.2
};
typedef Bitfield Roles;
/**
* Describes the different types of error
*/
enum Error {
ErrorUnknown,
ErrorOom,
ErrorNoNetwork,
ErrorNotSupported,
ErrorInternalError,
ErrorGpgFailure,
ErrorPackageIdInvalid,
ErrorPackageNotInstalled,
ErrorPackageNotFound,
ErrorPackageAlreadyInstalled,
ErrorPackageDownloadFailed,
ErrorGroupNotFound,
ErrorGroupListInvalid,
ErrorDepResolutionFailed,
ErrorFilterInvalid,
ErrorCreateThreadFailed,
ErrorTransactionError,
ErrorTransactionCancelled,
ErrorNoCache,
ErrorRepoNotFound,
ErrorCannotRemoveSystemPackage,
ErrorProcessKill,
ErrorFailedInitialization,
ErrorFailedFinalise,
ErrorFailedConfigParsing,
ErrorCannotCancel,
ErrorCannotGetLock,
ErrorNoPackagesToUpdate,
ErrorCannotWriteRepoConfig,
ErrorLocalInstallFailed,
ErrorBadGpgSignature,
ErrorMissingGpgSignature,
ErrorCannotInstallSourcePackage,
ErrorRepoConfigurationError,
ErrorNoLicenseAgreement,
ErrorFileConflicts,
ErrorPackageConflicts,
ErrorRepoNotAvailable,
ErrorInvalidPackageFile,
ErrorPackageInstallBlocked,
ErrorPackageCorrupt,
ErrorAllPackagesAlreadyInstalled,
ErrorFileNotFound,
ErrorNoMoreMirrorsToTry,
ErrorNoDistroUpgradeData,
ErrorIncompatibleArchitecture,
ErrorNoSpaceOnDevice,
ErrorMediaChangeRequired,
ErrorNotAuthorized,
ErrorUpdateNotFound,
ErrorCannotInstallRepoUnsigned,
ErrorCannotUpdateRepoUnsigned,
ErrorCannotGetFilelist,
ErrorCannotGetRequires,
ErrorCannotDisableRepository,
ErrorRestrictedDownload,
ErrorPackageFailedToConfigure,
ErrorPackageFailedToBuild,
ErrorPackageFailedToInstall,
ErrorPackageFailedToRemove,
ErrorUpdateFailedDueToRunningProcess,
ErrorPackageDatabaseChanged,
ErrorProvideTypeNotSupported,
ErrorInstallRootInvalid,
ErrorCannotFetchSources,
ErrorCancelledPriority,
ErrorUnfinishedTransaction,
ErrorLockRequired
};
/**
* Describes how the transaction finished
* \sa Transaction::finished()
*/
enum Exit {
ExitUnknown,
ExitSuccess,
ExitFailed,
ExitCancelled,
ExitKeyRequired,
ExitEulaRequired,
ExitKilled, /* when we forced the cancel, but had to sigkill */
ExitMediaChangeRequired,
ExitNeedUntrusted,
ExitCancelledPriority,
ExitRepairRequired
};
/**
* Describes the different package filters
*/
enum Filter {
FilterUnknown = 0x0000001,
FilterNone = 0x0000002,
FilterInstalled = 0x0000004,
FilterNotInstalled = 0x0000008,
FilterDevel = 0x0000010,
FilterNotDevel = 0x0000020,
FilterGui = 0x0000040,
FilterNotGui = 0x0000080,
FilterFree = 0x0000100,
FilterNotFree = 0x0000200,
FilterVisible = 0x0000400,
FilterNotVisible = 0x0000800,
FilterSupported = 0x0001000,
FilterNotSupported = 0x0002000,
FilterBasename = 0x0004000,
FilterNotBasename = 0x0008000,
FilterNewest = 0x0010000,
FilterNotNewest = 0x0020000,
FilterArch = 0x0040000,
FilterNotArch = 0x0080000,
FilterSource = 0x0100000,
FilterNotSource = 0x0200000,
FilterCollections = 0x0400000,
FilterNotCollections = 0x0800000,
FilterApplication = 0x1000000,
FilterNotApplication = 0x2000000,
/* this always has to be at the end of the list */
FilterLast = 0x4000000
};
Q_DECLARE_FLAGS(Filters, Filter)
/**
* Describes a message's type
*/
enum Message {
MessageUnknown,
MessageBrokenMirror,
MessageConnectionRefused,
MessageParameterInvalid,
MessagePriorityInvalid,
MessageBackendError,
MessageDaemonError,
MessageCacheBeingRebuilt,
MessageUntrustedPackage,
MessageNewerPackageExists,
MessageCouldNotFindPackage,
MessageConfigFilesChanged,
MessagePackageAlreadyInstalled,
MessageAutoremoveIgnored,
MessageRepoMetadataDownloadFailed,
MessageRepoForDevelopersOnly,
MessageOtherUpdatesHeldBack
};
/**
* Describes the current state of the transaction
*/
enum Status {
StatusUnknown,
StatusWait,
StatusSetup,
StatusRunning,
StatusQuery,
StatusInfo,
StatusRemove,
StatusRefreshCache,
StatusDownload,
StatusInstall,
StatusUpdate,
StatusCleanup,
StatusObsolete,
StatusDepResolve,
StatusSigCheck,
StatusTestCommit,
StatusCommit,
StatusRequest,
StatusFinished,
StatusCancel,
StatusDownloadRepository,
StatusDownloadPackagelist,
StatusDownloadFilelist,
StatusDownloadChangelog,
StatusDownloadGroup,
StatusDownloadUpdateinfo,
StatusRepackaging,
StatusLoadingCache,
StatusScanApplications,
StatusGeneratePackageList,
StatusWaitingForLock,
StatusWaitingForAuth,
StatusScanProcessList,
StatusCheckExecutableFiles,
StatusCheckLibraries,
StatusCopyFiles
};
/**
* Describes what kind of media is required
*/
enum MediaType {
MediaTypeUnknown,
MediaTypeCd,
MediaTypeDvd,
MediaTypeDisc
};
/**
* Enum used to describe a "provides" request
* \sa whatProvides
*/
enum Provides {
ProvidesUnknown,
ProvidesAny,
ProvidesModalias,
ProvidesCodec,
ProvidesMimetype,
ProvidesFont,
ProvidesHardwareDriver,
ProvidesPostscriptDriver,
ProvidesPlasmaService,
ProvidesSharedLib,
ProvidesPythonModule,
ProvidesLanguageSupport
};
Q_DECLARE_FLAGS(ProvidesFlag, Provides)
/**
* Describes an distro upgrade state
*/
enum DistroUpgrade {
DistroUpgradeUnknown,
DistroUpgradeStable,
DistroUpgradeUnstable
};
/**
* Describes the type of distribution upgrade to perform
* \sa upgradeSystem()
*/
enum UpgradeKind {
UpgradeKindUnknown,
UpgradeKindMinimal,
UpgradeKindDefault,
UpgradeKindComplete
};
/**
* Describes the type of distribution upgrade to perform
* \sa upgradeSystem()
*/
enum TransactionFlag {
TransactionFlagNone = 1 << 0, // Since: 0.8.1
TransactionFlagOnlyTrusted = 1 << 1, // Since: 0.8.1
TransactionFlagSimulate = 1 << 2, // Since: 0.8.1
TransactionFlagOnlyDownload = 1 << 3 // Since: 0.8.1
};
Q_DECLARE_FLAGS(TransactionFlags, TransactionFlag)
/**
* Describes a restart type
*/
enum Restart {
RestartUnknown,
RestartNone,
RestartApplication,
RestartSession,
RestartSystem,
RestartSecuritySession, /* a library that is being used by this package has been updated for security */
RestartSecuritySystem
};
/**
* Describes an update's state
*/
enum UpdateState {
UpdateStateUnknown,
UpdateStateStable,
UpdateStateUnstable,
UpdateStateTesting
};
/**
* Describes the different package groups
*/
enum Group {
GroupUnknown,
GroupAccessibility,
GroupAccessories,
GroupAdminTools,
GroupCommunication,
GroupDesktopGnome,
GroupDesktopKde,
GroupDesktopOther,
GroupDesktopXfce,
GroupEducation,
GroupFonts,
GroupGames,
GroupGraphics,
GroupInternet,
GroupLegacy,
GroupLocalization,
GroupMaps,
GroupMultimedia,
GroupNetwork,
GroupOffice,
GroupOther,
GroupPowerManagement,
GroupProgramming,
GroupPublishing,
GroupRepos,
GroupSecurity,
GroupServers,
GroupSystem,
GroupVirtualization,
GroupScience,
GroupDocumentation,
GroupElectronics,
GroupCollections,
GroupVendor,
GroupNewest
};
typedef Bitfield Groups;
/**
* Describes the state of a package
*/
enum Info {
InfoUnknown,
InfoInstalled,
InfoAvailable,
InfoLow,
InfoEnhancement,
InfoNormal,
InfoBugfix,
InfoImportant,
InfoSecurity,
InfoBlocked,
InfoDownloading,
InfoUpdating,
InfoInstalling,
InfoRemoving,
InfoCleanup,
InfoObsoleting,
InfoCollectionInstalled,
InfoCollectionAvailable,
InfoFinished,
InfoReinstalling,
InfoDowngrading,
InfoPreparing,
InfoDecompressing,
InfoUntrusted,
InfoTrusted
};
/**
* Describes a signature type
*/
enum SigType {
SigTypeUnknown,
SigTypeGpg
};
/**
* Create a transaction object with a new transaction id
*
* The transaction object \b cannot be reused
* (i.e. removePackages then installPackages)
*
*/
Transaction(QObject *parent = 0);
/**
* Create a transaction object with transaction id \p tid
* \note The if \p tid is a NULL string then it will automatically
* asks PackageKit for a tid
*
* The transaction object \b cannot be reused
* (i.e. removePackages then installPackages)
*
* \warning after creating the transaction object be sure
* to verify if it doesn't have any error()
*/
Transaction(const QDBusObjectPath &tid, QObject *parent = 0);
/**
* Destructor
*/
~Transaction();
/**
* \brief Returns the TID of the Transaction
*
* The TID (Transaction ID) uniquely identifies the transaction.
*
* \return the TID of the current transaction
*/
QDBusObjectPath tid() const;
/**
* \brief Returns the error status of the Transaction
*
* \return A value from TransactionError describing the state of the transaction
* or 0 in case of not having an error
*/
Q_DECL_DEPRECATED InternalError error() const;
/**
* \brief Returns the error status of the Transaction
*
* \return A value from TransactionError describing the state of the transaction
* or 0 in case of not having an error
*/
InternalError internalError() const;
/**
* \brief Returns the error message of the Transaction startup
*
* \return a string in case an error was set when trying to
* perform an action
*/
QString internalErrorMessage() const;
/**
* Indicates whether you can cancel the transaction or not
* i.e. the backend forbids cancelling the transaction while
* it's installing packages
*
* \return true if you are able cancel the transaction, false else
*/
bool allowCancel() const;
/**
* Indicates weither the transaction caller is active or not
*
* The caller can be inactive if it has quitted before the transaction finished.
*
* \return true if the caller is active, false else
*/
bool isCallerActive() const;
/**
* Returns the last package processed by the transaction
*
* This is mostly used when getting an already existing Transaction, to
* display a more complete summary of the transaction.
*
* \return the last package processed by the transaction
*/
QString lastPackage() const;
/**
* The percentage complete of the whole transaction.
* \return percentage, or 101 if not known.
*/
uint percentage() const;
/**
* The amount of time elapsed during the transaction in seconds.
* \return time in seconds.
*/
uint elapsedTime() const;
/**
* The estimated time remaining of the transaction in seconds, or 0 if not known.
* \return time in seconds, or 0 if not known.
*/
uint remainingTime() const;
/**
* Returns the estimated speed of the transaction (copying, downloading, etc.)
* \return speed bits per second, or 0 if not known.
*/
uint speed() const;
/**
* Returns the number of bytes remaining to download
* \return bytes to download, or 0 if nothing is left to download.
*/
qulonglong downloadSizeRemaining() const;
/**
* Returns information describing the transaction
* like InstallPackages, SearchName or GetUpdates
* \return the current role of the transaction
*/
Role role() const;
/**
* Returns the current state of the transaction
* \return a Transaction::Status value describing the status of the transaction
*/
Status status() const;
/**
* The current flags set in this transaction
* \return a \sa Transaction::TransactionFlags of this transaction
*/
TransactionFlags transactionFlags() const;
/**
* Returns the date at which the transaction was created
* \return a QDateTime object containing the date at which the transaction was created
* \note This function only returns a real value for old transactions returned by getOldTransactions
*/
QDateTime timespec() const;
/**
* Returns weither the transaction succeded or not
* \return true if the transaction succeeded, false else
* \note This function only returns a real value for old transactions returned by getOldTransactions
*/
bool succeeded() const;
/**
* Returns the time the transaction took to finish
* \return the number of milliseconds the transaction took to finish
* \note This function only returns a real value for old transactions returned by getOldTransactions
*/
uint duration() const;
/**
* Returns some data set by the backend to pass additionnal information
* \return a string set by the backend
* \note This function only returns a real value for old transactions returned by getOldTransactions
*/
QString data() const;
/**
* Returns the UID of the calling process
* \return the uid of the calling process
* \note This function only returns a real value for old transactions returned by getOldTransactions
*/
uint uid() const;
/**
* Returns the command line for the calling process
* \return a string of the command line for the calling process
* \note This function only returns a real value for old transactions returned by getOldTransactions
*/
QString cmdline() const;
/**
* \brief Tells the underlying package manager to use the given \p hints
*
* This method allows the calling session to set transaction \p hints for
* the package manager which can change as the transaction runs.
*
* This method can be sent before the transaction has been run
* (by using Daemon::setHints) or whilst it is running
* (by using Transaction::setHints).
* There is no limit to the number of times this
* method can be sent, although some backends may only use the values
* that were set before the transaction was started.
*
* The \p hints can be filled with entries like these
* ('locale=en_GB.utf8','idle=true','interactive=false').
*
* \sa Daemon::setHints
*/
Q_INVOKABLE void setHints(const QStringList &hints);
/**
* Convenience function to set this transaction \p hints
* \sa getDetails(const QStringList &hints)
*/
Q_INVOKABLE void setHints(const QString &hints);
/**
* Reset the transaction for reuse
*/
Q_INVOKABLE void reset();
/**
* \brief Accepts an EULA
*
* The EULA is identified by the \sa Eula structure \p info
*
* \note You need to manually restart the transaction which triggered the EULA.
* \sa eulaRequired()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void acceptEula(const QString &eulaID);
/**
* Download the given \p packages to a temp dir, if \p storeInCache is true
* the download will be stored in the package manager cache
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void downloadPackages(const QStringList &packageIDs, bool storeInCache = false);
/**
* This is a convenience function to download this \p package
* \sa downloadPackages(const QStringList &packageIDs, bool storeInCache = false)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void downloadPackage(const QString &packageID, bool storeInCache = false);
/**
* Returns the collection categories
*
* \sa category
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getCategories();
/**
* \brief Gets the list of dependencies for the given \p packages
*
* You can use the \p filters to limit the results to certain packages.
* The \p recursive flag indicates if the package manager should also
* fetch the dependencies's dependencies.
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getDepends(const QStringList &packageIDs, Filters filters, bool recursive = false);
/**
* Convenience function to get the dependencies of this \p package
* \sa getDetails(const QStringList &packageIDs, Filters filters, bool recursive = false)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getDepends(const QString &packageID, Filters filters , bool recursive = false);
/**
* Gets more details about the given \p packages
*
* \sa Transaction::details
* \note This method emits \sa package()
* with details set
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getDetails(const QStringList &packageIDs);
/**
* Convenience function to get the details about this \p package
* \sa getDetails(const QStringList &packageIDs)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getDetails(const QString &packageID);
/**
* Gets the files contained in the given \p packages
*
* \note This method emits \sa files()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getFiles(const QStringList &packageIDs);
/**
* Convenience function to get the files contained in this \p package
* \sa getRequires(const QStringList &packageIDs)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getFiles(const QString &packageIDs);
/**
* \brief Gets the last \p number finished transactions
*
* \note You must delete these transactions yourself
* \note This method emits \sa transaction()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getOldTransactions(uint number);
/**
* Gets all the packages matching the given \p filters
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getPackages(Filters filters = FilterNone);
/**
* Gets the list of software repositories matching the given \p filters
*
* \note This method emits \sa repository()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getRepoList(Filters filter = FilterNone);
/**
* \brief Searches for the packages requiring the given \p packages
*
* The search can be limited using the \p filters parameter.
* The \p recursive flag is used to tell if the package manager should
* also search for the package requiring the resulting packages.
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getRequires(const QStringList &packageIDs, Filters filters, bool recursive = false);
/**
* Convenience function to get packages requiring this package
* \sa getRequires(const QStringList &packageIDs, Filters filters, bool recursive = false)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getRequires(const QString &packageID, Filters filters, bool recursive = false);
/**
* Retrieves more details about the update for the given \p packageIDs
*
* \note This method emits \sa updateDetail()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getUpdatesDetails(const QStringList &packageIDs);
/**
* Convenience function to get update details
* \sa getUpdateDetail(const QStringList &packageIDs)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getUpdateDetail(const QString &packageID);
/**
* \p Gets the available updates
*
* The \p filters parameters can be used to restrict the updates returned
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getUpdates(Filters filters = FilterNone);
/**
* Retrieves the available distribution upgrades
*
* \note This method emits \sa distroUpgrade()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void getDistroUpgrades();
/**
* \brief Installs the local packages \p files
*
* \p onlyTrusted indicate if the packages are signed by a trusted authority
*
* \note This method emits \sa package() and \sa changed()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void installFiles(const QStringList &files, TransactionFlags flags = TransactionFlagOnlyTrusted);
/**
* Convenience function to install a file
* \sa installFiles(const QStringList &files, TransactionFlags flags)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void installFile(const QString &file, TransactionFlags flags = TransactionFlagOnlyTrusted);
/**
* Install the given \p packages
*
* \p only_trusted indicates if we should allow installation of untrusted packages (requires a different authorization)
*
* \note This method emits \sa package() and \sa changed()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void installPackages(const QStringList &packageIDs, TransactionFlags flags = TransactionFlagOnlyTrusted);
/**
* Convenience function to install a package
* \sa installPackages(const QStringList &packageIDs, TransactionFlags flags)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void installPackage(const QString &packageID, TransactionFlags flags = TransactionFlagOnlyTrusted);
/**
* \brief Installs a signature
*
* \p type, \p keyId and \p package generally come from the Transaction::repoSignatureRequired
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void installSignature(SigType type, const QString &keyID, const QString &packageID);
/**
* Refreshes the package manager's cache
*
* \note This method emits \sa changed()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void refreshCache(bool force);
/**
* \brief Removes the given \p packages
*
* \p allowDeps if the package manager has the right to remove other packages which depend on the
* packages to be removed. \p autoRemove tells the package manager to remove all the package which
* won't be needed anymore after the packages are uninstalled.
*
* \note This method emits \sa package() and \sa changed()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void removePackages(const QStringList &packageIDs, bool allowDeps = false, bool autoRemove = false, TransactionFlags flags = TransactionFlagOnlyTrusted);
/**
* Convenience function to remove a package
*
* \sa removePackages(const PackageList &packages, bool allowDeps = false, bool autoRemove = false, TransactionFlags flags)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void removePackage(const QString &packageID, bool allowDeps = false, bool autoRemove = false, TransactionFlags flags = TransactionFlagOnlyTrusted);
/**
* Repairs a broken system
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void repairSystem(TransactionFlags flags = TransactionFlagOnlyTrusted);
/**
* Activates or disables a repository
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void repoEnable(const QString &repoId, bool enable = true);
/**
* Sets a repository's parameter
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void repoSetData(const QString &repoId, const QString ¶meter, const QString &value);
/**
* \brief Tries to create a Package object from the package's name
*
* The \p filters can be used to restrict the search
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void resolve(const QStringList &packageNames, Filters filters = FilterNone);
/**
* Convenience function to remove a package name
* \sa resolve(const QStringList &packageNames, Filters filters = FilterNone)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void resolve(const QString &packageName, Filters filters = FilterNone);
/**
* \brief Search in the packages files
*
* \p filters can be used to restrict the returned packages
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void searchFiles(const QStringList &search, Filters filters = FilterNone);
/**
* Convenience function to search for a file
* \sa searchFiles(const QStringList &search, Filters filters = FilterNone)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void searchFiles(const QString &search, Filters filters = FilterNone);
/**
* \brief Search in the packages details
*
* \p filters can be used to restrict the returned packages
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void searchDetails(const QStringList &search, Filters filters = FilterNone);
/**
* Convenience function to search by details
* \sa searchDetails(const QStringList &search, Filters filters = FilterNone)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void searchDetails(const QString &search, Filters filters = FilterNone);
/**
* \brief Lists all the packages in the given \p group
*
* \p groups is the name of the group that you want, when searching for
* categories prefix it with '@'
* \p filters can be used to restrict the returned packages
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void searchGroups(const QStringList &groups, Filters filters = FilterNone);
/**
* Convenience function to search by group string
* \sa searchGroups(const QStringList &groups, Filters filters = FilterNone)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void searchGroup(const QString &group, Filters filters = FilterNone);
/**
* Convenience function to search by group enum
* \sa searchGroups(const QStringList &groups, Filters filters = FilterNone)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void searchGroup(Group group, Filters filters = FilterNone);
/**
* \brief Lists all the packages in the given \p group
*
* \p filters can be used to restrict the returned packages
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void searchGroups(Groups group, Filters filters = FilterNone);
/**
* \brief Search in the packages names
*
* \p filters can be used to restrict the returned packages
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void searchNames(const QStringList &search, Filters filters = FilterNone);
/**
* Convenience function to search by names
* \sa searchNames(const QStringList &search, Filters filters)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void searchNames(const QString &search, Filters filters = FilterNone);
/**
* Update the given \p packages
*
* \p onlyTrusted indicates if this transaction is only allowed to install trusted packages
* \note This method emits \sa package() and \sa changed()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void updatePackages(const QStringList &packageIDs, TransactionFlags flags = TransactionFlagOnlyTrusted);
/**
* Convenience function to update a package
* \sa updatePackages(const QStringList &packageIDs, TransactionFlags flags)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void updatePackage(const QString &packageID, TransactionFlags flags = TransactionFlagOnlyTrusted);
/**
* Updates the whole system
*
* This method perfoms a distribution upgrade to the
* specified version.
*
* The \p type of upgrade, e.g. minimal, default or complete.
* Minimal upgrades will download the smallest amount of data
* before launching a installer.
* The default is to download enough data to launch a full
* graphical installer, but a complete upgrade will be
* required if there is no internet access during install time.
*
* \note This method typically emits
* \li changed()
* \li error()
* \li package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void upgradeSystem(const QString &distroId, UpgradeKind kind);
/**
* Searchs for a package providing a file/a mimetype
*
* \note This method emits \sa package()
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void whatProvides(Provides type, const QStringList &search, Filters filters = FilterNone);
/**
* Convenience function to search for what provides
* \sa whatProvides(Provides type, const QStringList &search, Filters filters = FilterNone)
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void whatProvides(Provides type, const QString &search, Filters filters = FilterNone);
/**
* Cancels the transaction
*
* \warning check \sa error() to know if it the call has any error
*/
Q_INVOKABLE void cancel();
/**
* Returns the package name from the \p packageID
*/
static QString packageName(const QString &packageID);
/**
* Returns the package version from the \p packageID
*/
static QString packageVersion(const QString &packageID);
/**
* Returns the package arch from the \p packageID
*/
static QString packageArch(const QString &packageID);
/**
* Returns the package data from the \p packageID
*/
static QString packageData(const QString &packageID);
/**
* Returns the package icon from the \p packageID
*/
static QString packageIcon(const QString &packageID);
Q_SIGNALS:
/**
* The transaction has changed one of it's properties
*/
void changed();
/**
* \brief Sends a category
*
* \li \p parentId is the id of the parent category. A blank parent means a root category
* \li \p categoryId is the id of the category
* \li \p name is the category's name. This name is localized.
* \li \p summary is the category's summary. It is localized.
* \li \p icon is the icon identifier eg. server-cfg. If unknown, it is set to icon-missing.
*
* \sa getCategories()
*/
void category(const QString &parentId, const QString &categoryId, const QString &name, const QString &summary, const QString &icon);
/**
* Emitted when a distribution upgrade is available
* \sa getDistroUpgrades()
*/
void distroUpgrade(PackageKit::Transaction::DistroUpgrade type, const QString &name, const QString &description);
/**
* Emitted when an error occurs
*/
void errorCode(PackageKit::Transaction::Error error, const QString &details);
/**
* Emitted when an EULA agreement prevents the transaction from running
* \li \c eulaId is the EULA identifier
* \li \c package is the package for which an EULA is required
* \li \c vendorName is the vendor name
* \li \c licenseAgreement is the EULA text
*
* \note You will need to relaunch the transaction after accepting the EULA
* \sa acceptEula()
*/
void eulaRequired(const QString &eulaID, const QString &packageID, const QString &vendor, const QString &licenseAgreement);
/**
* Emitted when a different media is required in order to fetch packages
* which prevents the transaction from running
* \note You will need to relaunch the transaction after changing the media
* \sa Transaction::MediaType
*/
void mediaChangeRequired(PackageKit::Transaction::MediaType type, const QString &id, const QString &text);
/**
* Sends the \p item current progress \p percentage
* Currently only a package id is emitted
*/
void itemProgress(const QString &itemID, PackageKit::Transaction::Status status, uint percentage);
/**
* Sends the \p filenames contained in package \p package
* \sa getFiles()
*/
void files(const QString &packageID, const QStringList &filenames);
/**
* Emitted when the transaction finishes
*
* \p status describes the exit status, \p runtime is the number of seconds it took to complete the transaction
*/
void finished(PackageKit::Transaction::Exit status, uint runtime);
/**
* Conveys a message sent from the backend
*
* \p type is the type of the \p message
*/
void message(PackageKit::Transaction::Message type, const QString &message);
/**
* Emitted when the transaction sends a new package
*/
void package(PackageKit::Transaction::Info info, const QString &packageID, const QString &summary);
/**
* Emitted when the transaction sends details of a package
*/
void details(const QString &packageID,
const QString &license,
PackageKit::Transaction::Group group,
const QString &detail,
const QString &url,
qulonglong size);
/**
* Emitted when the transaction sends details of an update
*/
void updateDetail(const QString &packageID,
const QStringList &updates,
const QStringList &obsoletes,
const QStringList &vendorUrls,
const QStringList &bugzillaUrls,
const QStringList &cveUrls,
PackageKit::Transaction::Restart restart,
const QString &updateText,
const QString &changelog,
PackageKit::Transaction::UpdateState state,
const QDateTime &issued,
const QDateTime &updated);
/**
* Sends some additional details about a software repository
* \sa getRepoList()
*/
void repoDetail(const QString &repoId, const QString &description, bool enabled);
/**
* Emitted when the user has to validate a repository's signature
* \sa installSignature()
*/
void repoSignatureRequired(const QString &packageID,
const QString &repoName,
const QString &keyUrl,
const QString &keyUserid,
const QString &keyId,
const QString &keyFingerprint,
const QString &keyTimestamp,
PackageKit::Transaction::SigType type);
/**
* Indicates that a restart is required
* \p package is the package who triggered the restart signal
*/
void requireRestart(PackageKit::Transaction::Restart type, const QString &packageID);
/**
* Sends an old transaction
* \sa getOldTransactions()
*/
void transaction(PackageKit::Transaction *transaction);
/**
* Emitted a bit after a transaction has been finished
* It's useful when the transaction is too fast and emits
* finished before we finish connecting
*/
void destroy();
protected:
static Transaction::InternalError parseError(const QString &errorName);
/**
* This method connects to DBus signals
* \attention Make sure to call this method in inherited classes
* otherwise no signals will be emitted
*/
virtual void connectNotify(const char *signal);
/**
* This method disconnects from DBus signals
* \attention Make sure to call this method in inherited classes
* otherwise no signals will be disconnected
*/
virtual void disconnectNotify(const char *signal);
TransactionPrivate * const d_ptr;
private:
friend class Daemon;
bool init(const QDBusObjectPath &tid = QDBusObjectPath());
Transaction(const QDBusObjectPath &tid,
const QString ×pec,
bool succeeded,
Role role,
uint duration,
const QString &data,
uint uid,
const QString &cmdline,
QObject *parent);
Q_DECLARE_PRIVATE(Transaction)
Q_DISABLE_COPY(Transaction)
Q_PRIVATE_SLOT(d_ptr, void Details(const QString &pid, const QString &license, uint group, const QString &detail, const QString &url, qulonglong size))
Q_PRIVATE_SLOT(d_ptr, void distroUpgrade(uint type, const QString &name, const QString &description))
Q_PRIVATE_SLOT(d_ptr, void errorCode(uint error, const QString &details))
Q_PRIVATE_SLOT(d_ptr, void mediaChangeRequired(uint mediaType, const QString &mediaId, const QString &mediaText))
Q_PRIVATE_SLOT(d_ptr, void finished(uint exitCode, uint runtime))
Q_PRIVATE_SLOT(d_ptr, void message(uint type, const QString &message))
Q_PRIVATE_SLOT(d_ptr, void Package(uint info, const QString &pid, const QString &summary))
Q_PRIVATE_SLOT(d_ptr, void ItemProgress(const QString &itemID, uint status, uint percentage))
Q_PRIVATE_SLOT(d_ptr, void RepoSignatureRequired(const QString &pid, const QString &repoName, const QString &keyUrl, const QString &keyUserid, const QString &keyId, const QString &keyFingerprint, const QString &keyTimestamp, uint type))
Q_PRIVATE_SLOT(d_ptr, void requireRestart(uint type, const QString &pid))
Q_PRIVATE_SLOT(d_ptr, void transaction(const QDBusObjectPath &oldTid, const QString ×pec, bool succeeded, uint role, uint duration, const QString &data, uint uid, const QString &cmdline))
Q_PRIVATE_SLOT(d_ptr, void UpdateDetail(const QString &package_id, const QStringList &updates, const QStringList &obsoletes, const QStringList &vendor_urls, const QStringList &bugzilla_urls, const QStringList &cve_urls, uint restart, const QString &update_text, const QString &changelog, uint state, const QString &issued, const QString &updated))
Q_PRIVATE_SLOT(d_ptr, void destroy())
Q_PRIVATE_SLOT(d_ptr, void daemonQuit())
};
Q_DECLARE_OPERATORS_FOR_FLAGS(Transaction::Filters)
Q_DECLARE_OPERATORS_FOR_FLAGS(Transaction::TransactionFlags)
Q_DECLARE_OPERATORS_FOR_FLAGS(Transaction::ProvidesFlag)
} // End namespace PackageKit
Q_DECLARE_METATYPE(PackageKit::Transaction::InternalError)
Q_DECLARE_METATYPE(PackageKit::Transaction::Role)
Q_DECLARE_METATYPE(PackageKit::Transaction::Error)
Q_DECLARE_METATYPE(PackageKit::Transaction::Exit)
Q_DECLARE_METATYPE(PackageKit::Transaction::Message)
Q_DECLARE_METATYPE(PackageKit::Transaction::Status)
Q_DECLARE_METATYPE(PackageKit::Transaction::MediaType)
Q_DECLARE_METATYPE(PackageKit::Transaction::Provides)
Q_DECLARE_METATYPE(PackageKit::Transaction::DistroUpgrade)
Q_DECLARE_METATYPE(PackageKit::Transaction::TransactionFlag)
Q_DECLARE_METATYPE(PackageKit::Transaction::Restart)
Q_DECLARE_METATYPE(PackageKit::Transaction::UpdateState)
Q_DECLARE_METATYPE(PackageKit::Transaction::Group)
Q_DECLARE_METATYPE(PackageKit::Transaction::Info)
Q_DECLARE_METATYPE(PackageKit::Transaction::SigType)
Q_DECLARE_METATYPE(PackageKit::Transaction::Filter)
Q_DECLARE_METATYPE(PackageKit::Transaction::TransactionFlags)
Q_DECLARE_METATYPE(PackageKit::Transaction::Filters)
Q_DECLARE_METATYPE(PackageKit::Transaction::ProvidesFlag)
#endif
|