Changeset View
Changeset View
Standalone View
Standalone View
src/core/downloadmanager.cpp
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | |||||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | void DownloadManagerPrivate::init(const QString &configFile) | 79 | void DownloadManagerPrivate::init(const QString &configFile) | ||
80 | { | 80 | { | ||
81 | q->connect(engine, &KNSCore::Engine::signalProvidersLoaded, q, &DownloadManager::slotProvidersLoaded); | 81 | q->connect(engine, &KNSCore::Engine::signalProvidersLoaded, q, &DownloadManager::slotProvidersLoaded); | ||
82 | q->connect(engine, &KNSCore::Engine::signalUpdateableEntriesLoaded, q, &DownloadManager::searchResult); | 82 | q->connect(engine, &KNSCore::Engine::signalUpdateableEntriesLoaded, q, &DownloadManager::searchResult); | ||
83 | q->connect(engine, &KNSCore::Engine::signalEntriesLoaded, q, &DownloadManager::searchResult); | 83 | q->connect(engine, &KNSCore::Engine::signalEntriesLoaded, q, &DownloadManager::searchResult); | ||
84 | q->connect(engine, &KNSCore::Engine::signalEntryChanged, q, &DownloadManager::entryStatusChanged); | 84 | q->connect(engine, &KNSCore::Engine::signalEntryChanged, q, &DownloadManager::entryStatusChanged); | ||
85 | q->connect(engine, &KNSCore::Engine::signalError, q, &DownloadManager::errorFound); | 85 | q->connect(engine, &KNSCore::Engine::signalErrorCode, q, [this](const KNSCore::ErrorCode &, const QString &message, const QVariant &){ emit q->errorFound(message); }); | ||
86 | engine->init(configFile); | 86 | engine->init(configFile); | ||
87 | } | 87 | } | ||
88 | 88 | | |||
89 | DownloadManager::~DownloadManager() | 89 | DownloadManager::~DownloadManager() | ||
90 | { | 90 | { | ||
91 | delete d; | 91 | delete d; | ||
92 | } | 92 | } | ||
93 | 93 | | |||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |