strawberry-audio-player-win.../src/core/mac_startup.h

38 lines
696 B
C
Raw Normal View History

2018-02-27 18:06:05 +01:00
#ifndef MAC_STARTUP_H
#define MAC_STARTUP_H
#include "config.h"
#include <QString>
2018-02-27 18:06:05 +01:00
#include <QKeySequence>
class QObject;
class QWidget;
2021-01-26 19:13:29 +01:00
class GlobalShortcutsBackendMacOS;
2018-02-27 18:06:05 +01:00
class PlatformInterface {
public:
2021-06-20 19:04:08 +02:00
PlatformInterface() = default;
virtual ~PlatformInterface() {}
2018-02-27 18:06:05 +01:00
// Called when the application should show itself.
virtual void Activate() = 0;
virtual bool LoadUrl(const QString &url) = 0;
2018-02-27 18:06:05 +01:00
2021-06-20 19:04:08 +02:00
private:
Q_DISABLE_COPY(PlatformInterface)
2018-02-27 18:06:05 +01:00
};
namespace mac {
void MacMain();
2021-01-26 19:13:29 +01:00
void SetShortcutHandler(GlobalShortcutsBackendMacOS *handler);
void SetApplicationHandler(PlatformInterface *handler);
2018-02-27 18:06:05 +01:00
void EnableFullScreen(const QWidget &main_window);
2018-02-27 18:06:05 +01:00
} // namespace mac
#endif