SteamOSBackend.cpp | SteamOSBackend.cpp | |||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
#include <KLocalizedString> | #include <KLocalizedString> | |||
#include <KPluginFactory> | #include <KPluginFactory> | |||
#include <KSharedConfig> | #include <KSharedConfig> | |||
#include <QDBusArgument> | #include <QDBusArgument> | |||
#include <QDBusConnection> | #include <QDBusConnection> | |||
#include <QDBusInterface> | #include <QDBusInterface> | |||
#include <QDBusPendingCall> | #include <QDBusPendingCall> | |||
#include <QDBusPendingCallWatcher> | #include <QDBusPendingCallWatcher> | |||
#include <QDebug> | #include <QDebug> | |||
#include <QFile> | ||||
#include <QThread> | #include <QThread> | |||
#include <QTimer> | #include <QTimer> | |||
#include "atomupd1.h" | #include "atomupd1.h" | |||
DISCOVER_BACKEND_PLUGIN(SteamOSBackend) | DISCOVER_BACKEND_PLUGIN(SteamOSBackend) | |||
// We expect 2 results, updates and later updates | // We expect 2 results, updates and later updates | |||
#define CHECK_UPDATES_RETURN_COUNT 2 | #define CHECK_UPDATES_RETURN_COUNT 2 | |||
#define ATOMUPD_SERVICE_PATH "/usr/lib/systemd/system/atomupd.service" | ||||
QString SteamOSBackend::service() | QString SteamOSBackend::service() | |||
{ | { | |||
return QStringLiteral("com.steampowered.Atomupd1"); | return QStringLiteral("com.steampowered.Atomupd1"); | |||
} | } | |||
QString SteamOSBackend::path() | QString SteamOSBackend::path() | |||
{ | { | |||
return QStringLiteral("/com/steampowered/Atomupd1"); | return QStringLiteral("/com/steampowered/Atomupd1"); | |||
} | } | |||
skipping to change at line 186 | skipping to change at line 188 | |||
return new ResultsStream(QLatin1String("SteamOS-stream"), res); | return new ResultsStream(QLatin1String("SteamOS-stream"), res); | |||
} | } | |||
QHash<QString, SteamOSResource *> SteamOSBackend::resources() const | QHash<QString, SteamOSResource *> SteamOSBackend::resources() const | |||
{ | { | |||
return m_resources; | return m_resources; | |||
} | } | |||
bool SteamOSBackend::isValid() const | bool SteamOSBackend::isValid() const | |||
{ | { | |||
return m_interface->isValid(); | return QFile(QStringLiteral(ATOMUPD_SERVICE_PATH)).exists(); | |||
} | } | |||
AbstractBackendUpdater *SteamOSBackend::backendUpdater() const | AbstractBackendUpdater *SteamOSBackend::backendUpdater() const | |||
{ | { | |||
return m_updater; | return m_updater; | |||
} | } | |||
AbstractReviewsBackend *SteamOSBackend::reviewsBackend() const | AbstractReviewsBackend *SteamOSBackend::reviewsBackend() const | |||
{ | { | |||
return nullptr; | return nullptr; | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |