Clementine-audio-player-Mac.../src/core/mac_startup.h

36 lines
713 B
C
Raw Normal View History

#ifndef MAC_STARTUP_H
#define MAC_STARTUP_H
#include <QKeySequence>
class MacGlobalShortcutBackend;
class QObject;
class QWidget;
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;
virtual ~PlatformInterface() {}
};
namespace mac {
void MacMain();
void SetShortcutHandler(MacGlobalShortcutBackend* handler);
void SetApplicationHandler(PlatformInterface* handler);
void CheckForUpdates();
2010-06-07 11:49:20 +02:00
QString GetBundlePath();
QString GetResourcesPath();
QString GetApplicationSupportPath();
2010-12-14 16:00:46 +01:00
QString GetMusicDirectory();
2010-06-07 11:49:20 +02:00
void EnableFullScreen(const QWidget& main_window);
} // namespace mac
#endif