|
|
@ -49,14 +49,14 @@ class UIModel : public QObject {
|
|
|
|
Q_INVOKABLE bool updateTarget(int index, QVariant shortcut);
|
|
|
|
Q_INVOKABLE bool updateTarget(int index, QVariant shortcut);
|
|
|
|
Q_INVOKABLE void deleteTarget(int index);
|
|
|
|
Q_INVOKABLE void deleteTarget(int index);
|
|
|
|
Q_INVOKABLE bool isInSteam(QVariant shortcut) const;
|
|
|
|
Q_INVOKABLE bool isInSteam(QVariant shortcut) const;
|
|
|
|
Q_INVOKABLE uint32_t getAppId(QVariant shortcut) const;
|
|
|
|
Q_INVOKABLE uint32_t getAppId(QVariant shortcut);
|
|
|
|
Q_INVOKABLE bool addToSteam(QVariant shortcut, const QString& shortcutspath, bool from_cmd = false);
|
|
|
|
Q_INVOKABLE bool addToSteam(QVariant shortcut, const QString& shortcutspath, bool from_cmd = false);
|
|
|
|
bool addToSteam(const QString& name, const QString& shortcutspath, bool from_cmd = false);
|
|
|
|
bool addToSteam(const QString& name, const QString& shortcutspath, bool from_cmd = false);
|
|
|
|
Q_INVOKABLE bool removeFromSteam(const QString& name, const QString& shortcutspath, bool from_cmd = false);
|
|
|
|
Q_INVOKABLE bool removeFromSteam(const QString& name, const QString& shortcutspath, bool from_cmd = false);
|
|
|
|
Q_INVOKABLE QVariantMap manualProps(QVariant shortcut);
|
|
|
|
Q_INVOKABLE QVariantMap manualProps(QVariant shortcut);
|
|
|
|
Q_INVOKABLE void enableSteamInputXboxSupport();
|
|
|
|
Q_INVOKABLE void enableSteamInputXboxSupport();
|
|
|
|
|
|
|
|
|
|
|
|
Q_INVOKABLE bool restartSteam();
|
|
|
|
Q_INVOKABLE bool restartSteam(const QString& steamURL = "");
|
|
|
|
|
|
|
|
|
|
|
|
Q_INVOKABLE void updateCheck();
|
|
|
|
Q_INVOKABLE void updateCheck();
|
|
|
|
|
|
|
|
|
|
|
@ -69,7 +69,7 @@ class UIModel : public QObject {
|
|
|
|
Q_INVOKABLE QVariantList egsGamesList() const;
|
|
|
|
Q_INVOKABLE QVariantList egsGamesList() const;
|
|
|
|
|
|
|
|
|
|
|
|
Q_INVOKABLE void loadSteamGridImages();
|
|
|
|
Q_INVOKABLE void loadSteamGridImages();
|
|
|
|
Q_INVOKABLE QString getGridImagePath(QVariant shortcut) const;
|
|
|
|
Q_INVOKABLE QString getGridImagePath(QVariant shortcut);
|
|
|
|
|
|
|
|
|
|
|
|
[[nodiscard]] bool writeShortcutsVDF(const std::wstring& mode, const std::wstring& name,
|
|
|
|
[[nodiscard]] bool writeShortcutsVDF(const std::wstring& mode, const std::wstring& name,
|
|
|
|
const std::wstring& shortcutspath, bool is_admin_try = false) const;
|
|
|
|
const std::wstring& shortcutspath, bool is_admin_try = false) const;
|
|
|
|