29 lines
555 B
C++
29 lines
555 B
C++
#ifndef MAC_STARTUP_H
|
|
#define MAC_STARTUP_H
|
|
|
|
class MacGlobalShortcutBackend;
|
|
class QObject;
|
|
|
|
class PlatformInterface {
|
|
public:
|
|
// Called when the application should show itself.
|
|
virtual void Activate() = 0;
|
|
virtual bool LoadUrl(const QString& url) = 0;
|
|
|
|
virtual ~PlatformInterface() {}
|
|
};
|
|
|
|
namespace mac {
|
|
|
|
void MacMain();
|
|
void SetShortcutHandler(MacGlobalShortcutBackend* handler);
|
|
void SetApplicationHandler(PlatformInterface* handler);
|
|
void CheckForUpdates();
|
|
|
|
QString GetBundlePath();
|
|
QString GetResourcesPath();
|
|
|
|
} // namespace mac
|
|
|
|
#endif
|