2010-04-13 15:55:54 +02:00
|
|
|
#ifndef MAC_STARTUP_H
|
|
|
|
#define MAC_STARTUP_H
|
|
|
|
|
2011-09-01 15:10:30 +02:00
|
|
|
#include <QKeySequence>
|
|
|
|
|
2010-06-17 22:31:34 +02:00
|
|
|
class MacGlobalShortcutBackend;
|
2010-04-14 23:27:27 +02:00
|
|
|
class QObject;
|
2012-10-09 14:56:17 +02:00
|
|
|
class QWidget;
|
2010-04-13 15:55:54 +02:00
|
|
|
|
2010-06-14 15:22:45 +02:00
|
|
|
class PlatformInterface {
|
|
|
|
public:
|
|
|
|
// Called when the application should show itself.
|
|
|
|
virtual void Activate() = 0;
|
2010-06-15 23:56:33 +02:00
|
|
|
virtual bool LoadUrl(const QString& url) = 0;
|
2010-06-14 15:22:45 +02:00
|
|
|
|
|
|
|
virtual ~PlatformInterface() {}
|
|
|
|
};
|
|
|
|
|
2010-04-13 15:55:54 +02:00
|
|
|
namespace mac {
|
|
|
|
|
|
|
|
void MacMain();
|
2010-06-17 22:31:34 +02:00
|
|
|
void SetShortcutHandler(MacGlobalShortcutBackend* handler);
|
2010-06-14 15:22:45 +02:00
|
|
|
void SetApplicationHandler(PlatformInterface* handler);
|
2010-04-15 17:23:12 +02:00
|
|
|
void CheckForUpdates();
|
2010-04-13 15:55:54 +02:00
|
|
|
|
2010-06-07 11:49:20 +02:00
|
|
|
QString GetBundlePath();
|
|
|
|
QString GetResourcesPath();
|
2010-12-06 18:06:02 +01:00
|
|
|
QString GetApplicationSupportPath();
|
2010-12-14 16:00:46 +01:00
|
|
|
QString GetMusicDirectory();
|
2010-06-07 11:49:20 +02:00
|
|
|
|
2012-10-09 14:56:17 +02:00
|
|
|
void EnableFullScreen(const QWidget& main_window);
|
2010-12-09 13:34:08 +01:00
|
|
|
|
2010-04-13 15:55:54 +02:00
|
|
|
} // namespace mac
|
|
|
|
|
|
|
|
#endif
|