#ifndef TEST_APP_MANAGER_H
#define TEST_APP_MANAGER_H

#include <QObject>
#include <QStringList>

namespace Sidebar {

class AppManager : public QObject
{
    Q_OBJECT
public:
    static AppManager *getInstance(QObject *parent = nullptr);
    bool launchAppWithArguments(const QString &desktopFile, const QStringList &args, const QString &appName);

    static void reset();
    static QString lastDesktopFile();
    static QStringList lastArgs();
    static QString lastAppName();

private:
    explicit AppManager(QObject *parent = nullptr);
};

} // namespace Sidebar

#endif
