File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -48,31 +48,31 @@ namespace Exchange {
48
48
DISK_PERSISTENCE_FAILURE
49
49
};
50
50
51
- // struct PackageInfo {
52
- // string downloadId;
53
- // string fileLocator;
54
- // Reason reason;
55
- // };
51
+ struct PackageInfo {
52
+ string downloadId; /* @brief Download ID */
53
+ string fileLocator; /* @brief File Locator */
54
+ Reason reason; /* @brief Reason for the download status */
55
+ };
56
56
57
57
// typedef std::vector<PackageInfo> PackageInfoList;
58
- // using IPackageIterator = RPC::IIteratorType<PackageInfo, ID_PACKAGE_INFO_ITERATOR>;
58
+ using IPackageInfoIterator = RPC::IIteratorType<PackageInfo, ID_PACKAGE_INFO_ITERATOR>;
59
59
60
- /* @event */
61
60
struct EXTERNAL INotification : virtual public Core::IUnknown {
62
61
enum { ID = ID_PACKAGE_DOWNLOADER_NOTIFICATION };
63
62
~INotification () override = default ;
64
63
65
64
// @brief Signal changes on the status
66
65
// @text onAppDownloadStatus
67
- virtual void OnAppDownloadStatus (const string& jsonresponse) {
68
- // Thunder does not support neither standard collection nor RPC::IIteratorType in notification
66
+ virtual void OnAppDownloadStatus (IPackageInfoIterator* const packageInfo) {
69
67
}
70
68
};
71
69
72
70
~IPackageDownloader () override = default ;
73
71
74
72
// Register for any changes
73
+ // @json:omit
75
74
virtual Core::hresult Register (IPackageDownloader::INotification *sink) = 0;
75
+ // @json:omit
76
76
virtual Core::hresult Unregister (IPackageDownloader::INotification *sink) = 0;
77
77
78
78
// @json:omit
You can’t perform that action at this time.
0 commit comments