Includes, comments and bugfixes

- Fix includes
- Use common regex (Song::kCoverRemoveDisc) for removing Disc/CD from album
- Remove Disc/CD from album when creating hash
- Make imobiledevice support compile
- Fix setting device on windows
This commit is contained in:
Jonas Kvinge
2018-05-01 00:41:33 +02:00
parent fccbd6790c
commit e337b7933b
518 changed files with 7003 additions and 4693 deletions

View File

@@ -3,17 +3,19 @@
#include "config.h"
#include <QString>
#include <QKeySequence>
class MacGlobalShortcutBackend;
class QObject;
class QWidget;
class MacGlobalShortcutBackend;
class PlatformInterface {
public:
// Called when the application should show itself.
virtual void Activate() = 0;
virtual bool LoadUrl(const QString& url) = 0;
virtual bool LoadUrl(const QString &url) = 0;
virtual ~PlatformInterface() {}
};
@@ -21,8 +23,8 @@ class PlatformInterface {
namespace mac {
void MacMain();
void SetShortcutHandler(MacGlobalShortcutBackend* handler);
void SetApplicationHandler(PlatformInterface* handler);
void SetShortcutHandler(MacGlobalShortcutBackend *handler);
void SetApplicationHandler(PlatformInterface *handler);
void CheckForUpdates();
QString GetBundlePath();
@@ -30,7 +32,7 @@ QString GetResourcesPath();
QString GetApplicationSupportPath();
QString GetMusicDirectory();
void EnableFullScreen(const QWidget& main_window);
void EnableFullScreen(const QWidget &main_window);
} // namespace mac