File indexing completed on 2024-04-28 13:18:37

0001 #pragma once
0002 #include <QObject>
0003 #include <QPointer>
0004 
0005 // Create a QT QObject based singleton class to handle the fake event
0006 class FakeEvent : public QObject
0007 {
0008     Q_OBJECT
0009 public:
0010 // Create a singleton instance of the class
0011     static FakeEvent* instance();
0012 
0013 public Q_SLOTS:
0014     void messageCaller(const QString &caller);
0015 
0016 Q_SIGNALS:
0017     void callerReceived(const QString &sender);
0018 
0019 private:
0020     explicit FakeEvent(QObject *parent = nullptr);
0021     static FakeEvent* m_instance;
0022 };