Files
fmviewer3/project/fm_viewer/rm_application.h
2026-02-21 17:11:31 +09:00

29 lines
525 B
C++

#ifndef RM_APPLICATION_H
#define RM_APPLICATION_H
#if !(PLAYER_ONLY_LIBRARY_MODE)
#include <QObject>
#include <QSharedMemory>
#include <QApplication>
class RMApplication : public QApplication
{
Q_OBJECT
public:
RMApplication(int &argc, char **argv);
~RMApplication();
bool lock();
void foregroundApplication();
static RMApplication* instance();
private:
QSharedMemory *_singular; // shared memory !! SINGLE ACCESS
};
#endif // #if !(PLAYER_ONLY_LIBRARY_MODE)
#endif // RM_APPLICATION_H