Exemplo n.º 1
0
void QueueApi::on(DownloadManagerListener::BundleWaiting, const BundlePtr& aBundle) noexcept {
    onBundleUpdated(aBundle, { PROP_SECONDS_LEFT, PROP_SPEED, PROP_STATUS });
}
Exemplo n.º 2
0
void QueueApi::on(QueueManagerListener::BundleStatusChanged, const BundlePtr& aBundle) noexcept {
    onBundleUpdated(aBundle, { PROP_STATUS }, "bundle_status");
}
Exemplo n.º 3
0
void QueueApi::on(QueueManagerListener::BundleSources, const BundlePtr& aBundle) noexcept {
    onBundleUpdated(aBundle, { PROP_SOURCES });
}
Exemplo n.º 4
0
void QueueApi::on(QueueManagerListener::BundleSize, const BundlePtr& aBundle) noexcept {
    onBundleUpdated(aBundle, { PROP_SIZE });
}
Exemplo n.º 5
0
void QueueApi::on(QueueManagerListener::BundlePriority, const BundlePtr& aBundle) noexcept {
    onBundleUpdated(aBundle, { PROP_PRIORITY, PROP_STATUS });
}
Exemplo n.º 6
0
	void QueueApi::on(DownloadManagerListener::BundleWaiting, const BundlePtr& aBundle) noexcept {
		// "Waiting" isn't really a status (it's just meant to clear the props for running bundles...)
		onBundleUpdated(aBundle, TICK_PROPS, "bundle_tick");
	}
Exemplo n.º 7
0
void QueueApi::on(QueueManagerListener::BundleMerged, const BundlePtr& aBundle, const string&) noexcept {
    onBundleUpdated(aBundle, { PROP_TARGET, PROP_NAME, PROP_SIZE });
}
Exemplo n.º 8
0
	void QueueApi::on(DownloadManagerListener::BundleTick, const BundleList& aTickBundles, uint64_t /*aTick*/) noexcept {
		for (const auto& b : aTickBundles) {
			onBundleUpdated(b, TICK_PROPS, "bundle_tick");
		}
	}
Exemplo n.º 9
0
	void QueueApi::on(QueueManagerListener::BundleSources, const BundlePtr& aBundle) noexcept {
		onBundleUpdated(aBundle, { QueueBundleUtils::PROP_SOURCES }, "bundle_sources");
	}
Exemplo n.º 10
0
	void QueueApi::on(QueueManagerListener::BundleStatusChanged, const BundlePtr& aBundle) noexcept {
		onBundleUpdated(aBundle, { QueueBundleUtils::PROP_STATUS, QueueBundleUtils::PROP_TIME_FINISHED }, "bundle_status");
	}
Exemplo n.º 11
0
	void QueueApi::on(QueueManagerListener::BundlePriority, const BundlePtr& aBundle) noexcept {
		onBundleUpdated(aBundle, { QueueBundleUtils::PROP_PRIORITY, QueueBundleUtils::PROP_STATUS }, "bundle_priority");
	}
Exemplo n.º 12
0
	void QueueApi::on(QueueManagerListener::BundleSize, const BundlePtr& aBundle) noexcept {
		onBundleUpdated(aBundle, { QueueBundleUtils::PROP_SIZE, QueueBundleUtils::PROP_TYPE }, "bundle_content");
	}