#ifndef AUTOTESTS_WINDOWS_STUB_EVENT_TRACK_H
#define AUTOTESTS_WINDOWS_STUB_EVENT_TRACK_H

#include <QObject>
#include <QVariantMap>

namespace Sidebar {

class EventTrack : public QObject
{
    Q_OBJECT
public:
    static EventTrack *qmlAttachedProperties(QObject *object);
    explicit EventTrack(QObject *parent = nullptr);
    static EventTrack *instance();
    static void reset();
    static QString lastCode();
    static QString lastPage();
    static QVariantMap lastMap();

    Q_INVOKABLE void sendSlideEvent(const QString &code, const QString &page, const QVariantMap &map = {});
};

} // namespace Sidebar

#endif
