2014-11-01 19:26:05 +01:00
|
|
|
/* This file is part of Clementine.
|
2014-11-02 19:36:21 +01:00
|
|
|
Copyright 2010-2012, John Maguire <john.maguire@gmail.com>
|
|
|
|
Copyright 2014, Krzysztof Sobiecki <sobkas@gmail.com>
|
2014-11-01 19:26:05 +01:00
|
|
|
|
|
|
|
Clementine is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Clementine is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Clementine. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
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
|
|
|
|
|
2014-11-01 19:26:05 +01:00
|
|
|
#endif // MAC_STARTUP_H
|