Use nullptr as parent parameter default everywhere
This commit is contained in:
parent
fd183a80ff
commit
192b60d965
|
@ -39,7 +39,7 @@ class SpotifyClient : public AbstractMessageHandler<pb::spotify::Message> {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SpotifyClient(QObject* parent = 0);
|
SpotifyClient(QObject* parent = nullptr);
|
||||||
~SpotifyClient();
|
~SpotifyClient();
|
||||||
|
|
||||||
static const int kSpotifyImageIDSize;
|
static const int kSpotifyImageIDSize;
|
||||||
|
|
|
@ -30,7 +30,7 @@ class _MessageReplyBase : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
_MessageReplyBase(QObject* parent = 0);
|
_MessageReplyBase(QObject* parent = nullptr);
|
||||||
|
|
||||||
virtual int id() const = 0;
|
virtual int id() const = 0;
|
||||||
bool is_finished() const { return finished_; }
|
bool is_finished() const { return finished_; }
|
||||||
|
@ -58,7 +58,7 @@ signals:
|
||||||
template <typename MessageType>
|
template <typename MessageType>
|
||||||
class MessageReply : public _MessageReplyBase {
|
class MessageReply : public _MessageReplyBase {
|
||||||
public:
|
public:
|
||||||
MessageReply(const MessageType& request_message, QObject* parent = 0);
|
MessageReply(const MessageType& request_message, QObject* parent = nullptr);
|
||||||
|
|
||||||
int id() const { return request_message_.id(); }
|
int id() const { return request_message_.id(); }
|
||||||
const MessageType& request_message() const { return request_message_; }
|
const MessageType& request_message() const { return request_message_; }
|
||||||
|
|
|
@ -38,7 +38,7 @@ class _WorkerPoolBase : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
_WorkerPoolBase(QObject* parent = 0);
|
_WorkerPoolBase(QObject* parent = nullptr);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
// Emitted when a worker failed to start. This usually happens when the
|
// Emitted when a worker failed to start. This usually happens when the
|
||||||
|
@ -60,7 +60,7 @@ signals:
|
||||||
template <typename HandlerType>
|
template <typename HandlerType>
|
||||||
class WorkerPool : public _WorkerPoolBase {
|
class WorkerPool : public _WorkerPoolBase {
|
||||||
public:
|
public:
|
||||||
WorkerPool(QObject* parent = 0);
|
WorkerPool(QObject* parent = nullptr);
|
||||||
~WorkerPool();
|
~WorkerPool();
|
||||||
|
|
||||||
typedef typename HandlerType::MessageType MessageType;
|
typedef typename HandlerType::MessageType MessageType;
|
||||||
|
|
|
@ -13,7 +13,7 @@ class QAction;
|
||||||
class BackgroundStreams : public QObject {
|
class BackgroundStreams : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit BackgroundStreams(EngineBase* engine, QObject* parent = 0);
|
explicit BackgroundStreams(EngineBase* engine, QObject* parent = nullptr);
|
||||||
~BackgroundStreams();
|
~BackgroundStreams();
|
||||||
|
|
||||||
void LoadStreams();
|
void LoadStreams();
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
template <typename T, typename D>
|
template <typename T, typename D>
|
||||||
class BoundFutureWatcher : public QFutureWatcher<T>, boost::noncopyable {
|
class BoundFutureWatcher : public QFutureWatcher<T>, boost::noncopyable {
|
||||||
public:
|
public:
|
||||||
BoundFutureWatcher(const D& data, QObject* parent = 0)
|
BoundFutureWatcher(const D& data, QObject* parent = nullptr)
|
||||||
: QFutureWatcher<T>(parent), data_(data) {}
|
: QFutureWatcher<T>(parent), data_(data) {}
|
||||||
|
|
||||||
~BoundFutureWatcher() {}
|
~BoundFutureWatcher() {}
|
||||||
|
|
|
@ -42,7 +42,7 @@ class Database : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Database(Application* app, QObject* parent = 0,
|
Database(Application* app, QObject* parent = nullptr,
|
||||||
const QString& database_name = QString());
|
const QString& database_name = QString());
|
||||||
|
|
||||||
struct AttachedDatabase {
|
struct AttachedDatabase {
|
||||||
|
@ -175,7 +175,7 @@ signals:
|
||||||
|
|
||||||
class MemoryDatabase : public Database {
|
class MemoryDatabase : public Database {
|
||||||
public:
|
public:
|
||||||
MemoryDatabase(Application* app, QObject* parent = 0)
|
MemoryDatabase(Application* app, QObject* parent = nullptr)
|
||||||
: Database(app, parent, ":memory:") {}
|
: Database(app, parent, ":memory:") {}
|
||||||
~MemoryDatabase() {
|
~MemoryDatabase() {
|
||||||
// Make sure Qt doesn't reuse the same database
|
// Make sure Qt doesn't reuse the same database
|
||||||
|
|
|
@ -23,13 +23,13 @@
|
||||||
class FileSystemWatcherInterface : public QObject {
|
class FileSystemWatcherInterface : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
FileSystemWatcherInterface(QObject* parent = 0);
|
FileSystemWatcherInterface(QObject* parent = nullptr);
|
||||||
virtual void Init() {}
|
virtual void Init() {}
|
||||||
virtual void AddPath(const QString& path) = 0;
|
virtual void AddPath(const QString& path) = 0;
|
||||||
virtual void RemovePath(const QString& path) = 0;
|
virtual void RemovePath(const QString& path) = 0;
|
||||||
virtual void Clear() = 0;
|
virtual void Clear() = 0;
|
||||||
|
|
||||||
static FileSystemWatcherInterface* Create(QObject* parent = 0);
|
static FileSystemWatcherInterface* Create(QObject* parent = nullptr);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void PathChanged(const QString& path);
|
void PathChanged(const QString& path);
|
||||||
|
|
|
@ -26,7 +26,7 @@ class GlobalShortcutBackend : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GlobalShortcutBackend(GlobalShortcuts* parent = 0);
|
GlobalShortcutBackend(GlobalShortcuts* parent = nullptr);
|
||||||
virtual ~GlobalShortcutBackend() {}
|
virtual ~GlobalShortcutBackend() {}
|
||||||
|
|
||||||
bool is_active() const { return active_; }
|
bool is_active() const { return active_; }
|
||||||
|
|
|
@ -33,7 +33,7 @@ class GlobalShortcuts : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GlobalShortcuts(QWidget* parent = 0);
|
GlobalShortcuts(QWidget* parent = nullptr);
|
||||||
|
|
||||||
static const char* kSettingsGroup;
|
static const char* kSettingsGroup;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ class MacFSListener : public FileSystemWatcherInterface {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MacFSListener(QObject* parent = 0);
|
explicit MacFSListener(QObject* parent = nullptr);
|
||||||
void Init();
|
void Init();
|
||||||
void AddPath(const QString& path);
|
void AddPath(const QString& path);
|
||||||
void RemovePath(const QString& path);
|
void RemovePath(const QString& path);
|
||||||
|
|
|
@ -30,7 +30,7 @@ class MergedProxyModel : public QAbstractProxyModel {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MergedProxyModel(QObject* parent = 0);
|
MergedProxyModel(QObject* parent = nullptr);
|
||||||
~MergedProxyModel();
|
~MergedProxyModel();
|
||||||
|
|
||||||
// Make another model appear as a child of the given item in the source model.
|
// Make another model appear as a child of the given item in the source model.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class ModelFutureWatcher : public QFutureWatcher<T> {
|
class ModelFutureWatcher : public QFutureWatcher<T> {
|
||||||
public:
|
public:
|
||||||
ModelFutureWatcher(const QModelIndex& index, QObject* parent = 0)
|
ModelFutureWatcher(const QModelIndex& index, QObject* parent = nullptr)
|
||||||
: QFutureWatcher<T>(parent), index_(index) {}
|
: QFutureWatcher<T>(parent), index_(index) {}
|
||||||
|
|
||||||
~ModelFutureWatcher() {}
|
~ModelFutureWatcher() {}
|
||||||
|
|
|
@ -31,7 +31,7 @@ class Mpris : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Mpris(Application* app, QObject* parent = 0);
|
Mpris(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void RaiseMainWindow();
|
void RaiseMainWindow();
|
||||||
|
|
|
@ -78,7 +78,7 @@ class Mpris1 : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Mpris1(Application* app, QObject* parent = 0,
|
Mpris1(Application* app, QObject* parent = nullptr,
|
||||||
const QString& dbus_service_name = QString());
|
const QString& dbus_service_name = QString());
|
||||||
~Mpris1();
|
~Mpris1();
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ class Mpris1Root : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Mpris1Root(Application* app, QObject* parent = 0);
|
Mpris1Root(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
QString Identity();
|
QString Identity();
|
||||||
void Quit();
|
void Quit();
|
||||||
|
@ -116,7 +116,7 @@ class Mpris1Player : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Mpris1Player(Application* app, QObject* parent = 0);
|
Mpris1Player(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
void Pause();
|
void Pause();
|
||||||
void Stop();
|
void Stop();
|
||||||
|
@ -171,7 +171,7 @@ class Mpris1TrackList : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Mpris1TrackList(Application* app, QObject* parent = 0);
|
Mpris1TrackList(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
int AddTrack(const QString&, bool);
|
int AddTrack(const QString&, bool);
|
||||||
void DelTrack(int index);
|
void DelTrack(int index);
|
||||||
|
|
|
@ -102,7 +102,7 @@ class Mpris2 : public QObject {
|
||||||
Q_PROPERTY(QStringList Orderings READ Orderings)
|
Q_PROPERTY(QStringList Orderings READ Orderings)
|
||||||
Q_PROPERTY(MaybePlaylist ActivePlaylist READ ActivePlaylist)
|
Q_PROPERTY(MaybePlaylist ActivePlaylist READ ActivePlaylist)
|
||||||
|
|
||||||
Mpris2(Application* app, Mpris1* mpris1, QObject* parent = 0);
|
Mpris2(Application* app, Mpris1* mpris1, QObject* parent = nullptr);
|
||||||
|
|
||||||
// Root Properties
|
// Root Properties
|
||||||
bool CanQuit() const;
|
bool CanQuit() const;
|
||||||
|
|
|
@ -48,7 +48,7 @@ class NetworkAccessManager : public QNetworkAccessManager {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NetworkAccessManager(QObject* parent = 0);
|
NetworkAccessManager(QObject* parent = nullptr);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QNetworkReply* createRequest(Operation op, const QNetworkRequest& request,
|
QNetworkReply* createRequest(Operation op, const QNetworkRequest& request,
|
||||||
|
@ -104,7 +104,7 @@ class NetworkTimeouts : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NetworkTimeouts(int timeout_msec, QObject* parent = 0);
|
NetworkTimeouts(int timeout_msec, QObject* parent = nullptr);
|
||||||
|
|
||||||
// TODO: Template this to avoid code duplication.
|
// TODO: Template this to avoid code duplication.
|
||||||
void AddReply(QNetworkReply* reply);
|
void AddReply(QNetworkReply* reply);
|
||||||
|
|
|
@ -48,7 +48,7 @@ class OrganiseFormat {
|
||||||
|
|
||||||
class Validator : public QValidator {
|
class Validator : public QValidator {
|
||||||
public:
|
public:
|
||||||
explicit Validator(QObject* parent = 0);
|
explicit Validator(QObject* parent = nullptr);
|
||||||
QValidator::State validate(QString& format, int& pos) const;
|
QValidator::State validate(QString& format, int& pos) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ class OrganiseFormat {
|
||||||
static const QRgb kInvalidTagColorDark;
|
static const QRgb kInvalidTagColorDark;
|
||||||
static const QRgb kBlockColorDark;
|
static const QRgb kBlockColorDark;
|
||||||
|
|
||||||
explicit SyntaxHighlighter(QObject* parent = 0);
|
explicit SyntaxHighlighter(QObject* parent = nullptr);
|
||||||
explicit SyntaxHighlighter(QTextEdit* parent);
|
explicit SyntaxHighlighter(QTextEdit* parent);
|
||||||
explicit SyntaxHighlighter(QTextDocument* parent);
|
explicit SyntaxHighlighter(QTextDocument* parent);
|
||||||
void highlightBlock(const QString& format);
|
void highlightBlock(const QString& format);
|
||||||
|
|
|
@ -37,7 +37,7 @@ class PlayerInterface : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PlayerInterface(QObject* parent = 0) : QObject(parent) {}
|
PlayerInterface(QObject* parent = nullptr) : QObject(parent) {}
|
||||||
|
|
||||||
virtual EngineBase* engine() const = 0;
|
virtual EngineBase* engine() const = 0;
|
||||||
virtual Engine::State GetState() const = 0;
|
virtual Engine::State GetState() const = 0;
|
||||||
|
@ -107,7 +107,7 @@ class Player : public PlayerInterface {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Player(Application* app, QObject* parent = 0);
|
Player(Application* app, QObject* parent = nullptr);
|
||||||
~Player();
|
~Player();
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
|
|
@ -24,7 +24,7 @@ class QxtGlobalShortcut;
|
||||||
|
|
||||||
class QxtGlobalShortcutBackend : public GlobalShortcutBackend {
|
class QxtGlobalShortcutBackend : public GlobalShortcutBackend {
|
||||||
public:
|
public:
|
||||||
QxtGlobalShortcutBackend(GlobalShortcuts* parent = 0);
|
QxtGlobalShortcutBackend(GlobalShortcuts* parent = nullptr);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool DoRegister();
|
bool DoRegister();
|
||||||
|
|
|
@ -25,7 +25,7 @@ class QModelIndex;
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class SimpleTreeModel : public QAbstractItemModel {
|
class SimpleTreeModel : public QAbstractItemModel {
|
||||||
public:
|
public:
|
||||||
SimpleTreeModel(T* root = 0, QObject* parent = 0);
|
SimpleTreeModel(T* root = 0, QObject* parent = nullptr);
|
||||||
virtual ~SimpleTreeModel() {}
|
virtual ~SimpleTreeModel() {}
|
||||||
|
|
||||||
// QAbstractItemModel
|
// QAbstractItemModel
|
||||||
|
|
|
@ -41,7 +41,7 @@ class SongLoader : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
SongLoader(LibraryBackendInterface* library, const Player* player,
|
SongLoader(LibraryBackendInterface* library, const Player* player,
|
||||||
QObject* parent = 0);
|
QObject* parent = nullptr);
|
||||||
~SongLoader();
|
~SongLoader();
|
||||||
|
|
||||||
enum Result { Success, Error, WillLoadAsync, };
|
enum Result { Success, Error, WillLoadAsync, };
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
class StyleSheetLoader : public QObject {
|
class StyleSheetLoader : public QObject {
|
||||||
public:
|
public:
|
||||||
StyleSheetLoader(QObject* parent = 0);
|
StyleSheetLoader(QObject* parent = nullptr);
|
||||||
|
|
||||||
// Sets the given stylesheet on the given widget.
|
// Sets the given stylesheet on the given widget.
|
||||||
// If the stylesheet contains strings like %palette-[role], these get replaced
|
// If the stylesheet contains strings like %palette-[role], these get replaced
|
||||||
|
|
|
@ -32,7 +32,7 @@ class TagReaderClient : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TagReaderClient(QObject* parent = 0);
|
TagReaderClient(QObject* parent = nullptr);
|
||||||
|
|
||||||
typedef AbstractMessageHandler<pb::tagreader::Message> HandlerType;
|
typedef AbstractMessageHandler<pb::tagreader::Message> HandlerType;
|
||||||
typedef HandlerType::ReplyType ReplyType;
|
typedef HandlerType::ReplyType ReplyType;
|
||||||
|
|
|
@ -26,7 +26,7 @@ class TaskManager : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TaskManager(QObject* parent = 0);
|
TaskManager(QObject* parent = nullptr);
|
||||||
|
|
||||||
struct Task {
|
struct Task {
|
||||||
int id;
|
int id;
|
||||||
|
|
|
@ -26,7 +26,7 @@ class UrlHandler : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UrlHandler(QObject* parent = 0);
|
UrlHandler(QObject* parent = nullptr);
|
||||||
|
|
||||||
// The URL scheme that this handler handles.
|
// The URL scheme that this handler handles.
|
||||||
virtual QString scheme() const = 0;
|
virtual QString scheme() const = 0;
|
||||||
|
|
|
@ -32,7 +32,7 @@ class AlbumCoverExporter : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AlbumCoverExporter(QObject* parent = 0);
|
AlbumCoverExporter(QObject* parent = nullptr);
|
||||||
virtual ~AlbumCoverExporter() {}
|
virtual ~AlbumCoverExporter() {}
|
||||||
|
|
||||||
static const int kMaxConcurrentRequests;
|
static const int kMaxConcurrentRequests;
|
||||||
|
|
|
@ -78,7 +78,7 @@ class AlbumCoverFetcher : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AlbumCoverFetcher(CoverProviders* cover_providers, QObject* parent = 0,
|
AlbumCoverFetcher(CoverProviders* cover_providers, QObject* parent = nullptr,
|
||||||
QNetworkAccessManager* network = 0);
|
QNetworkAccessManager* network = 0);
|
||||||
virtual ~AlbumCoverFetcher() {}
|
virtual ~AlbumCoverFetcher() {}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ class AlbumCoverLoader : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AlbumCoverLoader(QObject* parent = 0);
|
AlbumCoverLoader(QObject* parent = nullptr);
|
||||||
|
|
||||||
void Stop() { stop_requested_ = true; }
|
void Stop() { stop_requested_ = true; }
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ class CoverSearchStatisticsDialog : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CoverSearchStatisticsDialog(QWidget* parent = 0);
|
CoverSearchStatisticsDialog(QWidget* parent = nullptr);
|
||||||
~CoverSearchStatisticsDialog();
|
~CoverSearchStatisticsDialog();
|
||||||
|
|
||||||
void Show(const CoverSearchStatistics& statistics);
|
void Show(const CoverSearchStatistics& statistics);
|
||||||
|
|
|
@ -34,7 +34,7 @@ class CurrentArtLoader : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CurrentArtLoader(Application* app, QObject* parent = 0);
|
CurrentArtLoader(Application* app, QObject* parent = nullptr);
|
||||||
~CurrentArtLoader();
|
~CurrentArtLoader();
|
||||||
|
|
||||||
const AlbumCoverLoaderOptions& options() const { return options_; }
|
const AlbumCoverLoaderOptions& options() const { return options_; }
|
||||||
|
|
|
@ -11,7 +11,7 @@ class QNetworkReply;
|
||||||
class KittenLoader : public AlbumCoverLoader {
|
class KittenLoader : public AlbumCoverLoader {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
KittenLoader(QObject* parent = 0);
|
KittenLoader(QObject* parent = nullptr);
|
||||||
|
|
||||||
virtual quint64 LoadKitten(const AlbumCoverLoaderOptions& options);
|
virtual quint64 LoadKitten(const AlbumCoverLoaderOptions& options);
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ class QNetworkReply;
|
||||||
class MusicbrainzCoverProvider : public CoverProvider {
|
class MusicbrainzCoverProvider : public CoverProvider {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
MusicbrainzCoverProvider(QObject* parent = 0);
|
MusicbrainzCoverProvider(QObject* parent = nullptr);
|
||||||
|
|
||||||
// CoverProvider
|
// CoverProvider
|
||||||
virtual bool StartSearch(const QString& artist, const QString& album, int id);
|
virtual bool StartSearch(const QString& artist, const QString& album, int id);
|
||||||
|
|
|
@ -29,7 +29,7 @@ class DeviceDatabaseBackend : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Q_INVOKABLE DeviceDatabaseBackend(QObject* parent = 0);
|
Q_INVOKABLE DeviceDatabaseBackend(QObject* parent = nullptr);
|
||||||
|
|
||||||
struct Device {
|
struct Device {
|
||||||
Device() : id_(-1) {}
|
Device() : id_(-1) {}
|
||||||
|
|
|
@ -39,7 +39,7 @@ class DeviceManager : public QAbstractListModel {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DeviceManager(Application* app, QObject* parent = 0);
|
DeviceManager(Application* app, QObject* parent = nullptr);
|
||||||
~DeviceManager();
|
~DeviceManager();
|
||||||
|
|
||||||
enum Role {
|
enum Role {
|
||||||
|
|
|
@ -30,7 +30,7 @@ class DeviceProperties : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DeviceProperties(QWidget* parent = 0);
|
DeviceProperties(QWidget* parent = nullptr);
|
||||||
~DeviceProperties();
|
~DeviceProperties();
|
||||||
|
|
||||||
void SetDeviceManager(DeviceManager* manager);
|
void SetDeviceManager(DeviceManager* manager);
|
||||||
|
|
|
@ -48,7 +48,7 @@ class DeviceView : public AutoExpandingTreeView {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DeviceView(QWidget* parent = 0);
|
DeviceView(QWidget* parent = nullptr);
|
||||||
~DeviceView();
|
~DeviceView();
|
||||||
|
|
||||||
void SetApplication(Application* app);
|
void SetApplication(Application* app);
|
||||||
|
|
|
@ -30,7 +30,7 @@ class DeviceViewContainer : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit DeviceViewContainer(QWidget* parent = 0);
|
explicit DeviceViewContainer(QWidget* parent = nullptr);
|
||||||
~DeviceViewContainer();
|
~DeviceViewContainer();
|
||||||
|
|
||||||
DeviceView* view() const;
|
DeviceView* view() const;
|
||||||
|
|
|
@ -26,7 +26,7 @@ class GstElementDeleter : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GstElementDeleter(QObject* parent = 0);
|
GstElementDeleter(QObject* parent = nullptr);
|
||||||
|
|
||||||
// If you call this function with any gstreamer element, the element will get
|
// If you call this function with any gstreamer element, the element will get
|
||||||
// deleted in the main thread. This is useful if you need to delete an
|
// deleted in the main thread. This is useful if you need to delete an
|
||||||
|
|
|
@ -32,7 +32,7 @@ class GlobalSearch : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GlobalSearch(Application* app, QObject* parent = 0);
|
GlobalSearch(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
static const int kDelayedSearchTimeoutMs;
|
static const int kDelayedSearchTimeoutMs;
|
||||||
static const char* kSettingsGroup;
|
static const char* kSettingsGroup;
|
||||||
|
|
|
@ -31,7 +31,7 @@ class GlobalSearchModel : public QStandardItemModel {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GlobalSearchModel(GlobalSearch* engine, QObject* parent = 0);
|
GlobalSearchModel(GlobalSearch* engine, QObject* parent = nullptr);
|
||||||
|
|
||||||
enum Role {
|
enum Role {
|
||||||
Role_Result = LibraryModel::LastRole,
|
Role_Result = LibraryModel::LastRole,
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
class GlobalSearchSortModel : public QSortFilterProxyModel {
|
class GlobalSearchSortModel : public QSortFilterProxyModel {
|
||||||
public:
|
public:
|
||||||
GlobalSearchSortModel(QObject* parent = 0);
|
GlobalSearchSortModel(QObject* parent = nullptr);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool lessThan(const QModelIndex& left, const QModelIndex& right) const;
|
bool lessThan(const QModelIndex& left, const QModelIndex& right) const;
|
||||||
|
|
|
@ -41,7 +41,7 @@ class GlobalSearchView : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GlobalSearchView(Application* app, QWidget* parent = 0);
|
GlobalSearchView(Application* app, QWidget* parent = nullptr);
|
||||||
~GlobalSearchView();
|
~GlobalSearchView();
|
||||||
|
|
||||||
static const int kSwapModelsTimeoutMsec;
|
static const int kSwapModelsTimeoutMsec;
|
||||||
|
|
|
@ -28,7 +28,7 @@ class GroovesharkSearchProvider : public SearchProvider {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit GroovesharkSearchProvider(Application* app, QObject* parent = 0);
|
explicit GroovesharkSearchProvider(Application* app, QObject* parent = nullptr);
|
||||||
void Init(GroovesharkService* service);
|
void Init(GroovesharkService* service);
|
||||||
|
|
||||||
// SearchProvider
|
// SearchProvider
|
||||||
|
|
|
@ -27,7 +27,7 @@ class LibrarySearchProvider : public BlockingSearchProvider {
|
||||||
LibrarySearchProvider(LibraryBackendInterface* backend, const QString& name,
|
LibrarySearchProvider(LibraryBackendInterface* backend, const QString& name,
|
||||||
const QString& id, const QIcon& icon,
|
const QString& id, const QIcon& icon,
|
||||||
bool enabled_by_default, Application* app,
|
bool enabled_by_default, Application* app,
|
||||||
QObject* parent = 0);
|
QObject* parent = nullptr);
|
||||||
|
|
||||||
ResultList Search(int id, const QString& query);
|
ResultList Search(int id, const QString& query);
|
||||||
MimeData* LoadTracks(const ResultList& results);
|
MimeData* LoadTracks(const ResultList& results);
|
||||||
|
|
|
@ -32,7 +32,7 @@ class SearchProvider : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SearchProvider(Application* app, QObject* parent = 0);
|
SearchProvider(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
static const int kArtHeight;
|
static const int kArtHeight;
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ class BlockingSearchProvider : public SearchProvider {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BlockingSearchProvider(Application* app, QObject* parent = 0);
|
BlockingSearchProvider(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
void SearchAsync(int id, const QString& query);
|
void SearchAsync(int id, const QString& query);
|
||||||
virtual ResultList Search(int id, const QString& query) = 0;
|
virtual ResultList Search(int id, const QString& query) = 0;
|
||||||
|
|
|
@ -27,7 +27,7 @@ class Ui_SearchProviderStatusWidget;
|
||||||
class SearchProviderStatusWidget : public QWidget {
|
class SearchProviderStatusWidget : public QWidget {
|
||||||
public:
|
public:
|
||||||
SearchProviderStatusWidget(const QIcon& warning_icon, GlobalSearch* engine,
|
SearchProviderStatusWidget(const QIcon& warning_icon, GlobalSearch* engine,
|
||||||
SearchProvider* provider, QWidget* parent = 0);
|
SearchProvider* provider, QWidget* parent = nullptr);
|
||||||
~SearchProviderStatusWidget();
|
~SearchProviderStatusWidget();
|
||||||
|
|
||||||
bool eventFilter(QObject* object, QEvent* event);
|
bool eventFilter(QObject* object, QEvent* event);
|
||||||
|
|
|
@ -28,7 +28,7 @@ class SoundCloudSearchProvider : public SearchProvider {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit SoundCloudSearchProvider(Application* app, QObject* parent = 0);
|
explicit SoundCloudSearchProvider(Application* app, QObject* parent = nullptr);
|
||||||
void Init(SoundCloudService* service);
|
void Init(SoundCloudService* service);
|
||||||
|
|
||||||
// SearchProvider
|
// SearchProvider
|
||||||
|
|
|
@ -28,7 +28,7 @@ class SpotifySearchProvider : public SearchProvider {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SpotifySearchProvider(Application* app, QObject* parent = 0);
|
SpotifySearchProvider(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
void SearchAsync(int id, const QString& query);
|
void SearchAsync(int id, const QString& query);
|
||||||
void LoadArtAsync(int id, const Result& result);
|
void LoadArtAsync(int id, const Result& result);
|
||||||
|
|
|
@ -26,7 +26,7 @@ class SuggestionWidget : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SuggestionWidget(const QIcon& search_icon, QWidget* parent = 0);
|
SuggestionWidget(const QIcon& search_icon, QWidget* parent = nullptr);
|
||||||
~SuggestionWidget();
|
~SuggestionWidget();
|
||||||
|
|
||||||
bool eventFilter(QObject* object, QEvent* event);
|
bool eventFilter(QObject* object, QEvent* event);
|
||||||
|
|
|
@ -30,7 +30,7 @@ class BoxSettingsPage : public SettingsPage {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BoxSettingsPage(SettingsDialog* parent = 0);
|
BoxSettingsPage(SettingsDialog* parent = nullptr);
|
||||||
~BoxSettingsPage();
|
~BoxSettingsPage();
|
||||||
|
|
||||||
void Load();
|
void Load();
|
||||||
|
|
|
@ -8,7 +8,7 @@ class BoxService;
|
||||||
class BoxUrlHandler : public UrlHandler {
|
class BoxUrlHandler : public UrlHandler {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
BoxUrlHandler(BoxService* service, QObject* parent = 0);
|
BoxUrlHandler(BoxService* service, QObject* parent = nullptr);
|
||||||
|
|
||||||
QString scheme() const { return "box"; }
|
QString scheme() const { return "box"; }
|
||||||
QIcon icon() const { return QIcon(":/providers/box.png"); }
|
QIcon icon() const { return QIcon(":/providers/box.png"); }
|
||||||
|
|
|
@ -31,7 +31,7 @@ class DigitallyImportedClient : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DigitallyImportedClient(const QString& service_name, QObject* parent = 0);
|
DigitallyImportedClient(const QString& service_name, QObject* parent = nullptr);
|
||||||
|
|
||||||
static const char* kApiUsername;
|
static const char* kApiUsername;
|
||||||
static const char* kApiPassword;
|
static const char* kApiPassword;
|
||||||
|
|
|
@ -11,7 +11,7 @@ class QNetworkReply;
|
||||||
class DropboxAuthenticator : public QObject {
|
class DropboxAuthenticator : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit DropboxAuthenticator(QObject* parent = 0);
|
explicit DropboxAuthenticator(QObject* parent = nullptr);
|
||||||
void StartAuthorisation();
|
void StartAuthorisation();
|
||||||
|
|
||||||
const QString& access_token() const { return access_token_; }
|
const QString& access_token() const { return access_token_; }
|
||||||
|
|
|
@ -31,7 +31,7 @@ class DropboxSettingsPage : public SettingsPage {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DropboxSettingsPage(SettingsDialog* parent = 0);
|
DropboxSettingsPage(SettingsDialog* parent = nullptr);
|
||||||
~DropboxSettingsPage();
|
~DropboxSettingsPage();
|
||||||
|
|
||||||
void Load();
|
void Load();
|
||||||
|
|
|
@ -8,7 +8,7 @@ class DropboxService;
|
||||||
class DropboxUrlHandler : public UrlHandler {
|
class DropboxUrlHandler : public UrlHandler {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
DropboxUrlHandler(DropboxService* service, QObject* parent = 0);
|
DropboxUrlHandler(DropboxService* service, QObject* parent = nullptr);
|
||||||
|
|
||||||
QString scheme() const { return "dropbox"; }
|
QString scheme() const { return "dropbox"; }
|
||||||
QIcon icon() const { return QIcon(":providers/dropbox.png"); }
|
QIcon icon() const { return QIcon(":providers/dropbox.png"); }
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
class Geolocator : public QObject {
|
class Geolocator : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit Geolocator(QObject* parent = 0);
|
explicit Geolocator(QObject* parent = nullptr);
|
||||||
|
|
||||||
void Geolocate();
|
void Geolocate();
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ class Client : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Client(QObject* parent = 0);
|
Client(QObject* parent = nullptr);
|
||||||
|
|
||||||
bool is_authenticated() const;
|
bool is_authenticated() const;
|
||||||
const QString& access_token() const { return access_token_; }
|
const QString& access_token() const { return access_token_; }
|
||||||
|
|
|
@ -30,7 +30,7 @@ class GoogleDriveSettingsPage : public SettingsPage {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GoogleDriveSettingsPage(SettingsDialog* parent = 0);
|
GoogleDriveSettingsPage(SettingsDialog* parent = nullptr);
|
||||||
~GoogleDriveSettingsPage();
|
~GoogleDriveSettingsPage();
|
||||||
|
|
||||||
void Load();
|
void Load();
|
||||||
|
|
|
@ -8,7 +8,7 @@ class GoogleDriveService;
|
||||||
class GoogleDriveUrlHandler : public UrlHandler {
|
class GoogleDriveUrlHandler : public UrlHandler {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
GoogleDriveUrlHandler(GoogleDriveService* service, QObject* parent = 0);
|
GoogleDriveUrlHandler(GoogleDriveService* service, QObject* parent = nullptr);
|
||||||
|
|
||||||
QString scheme() const { return "googledrive"; }
|
QString scheme() const { return "googledrive"; }
|
||||||
QIcon icon() const { return QIcon(":providers/googledrive.png"); }
|
QIcon icon() const { return QIcon(":providers/googledrive.png"); }
|
||||||
|
|
|
@ -29,7 +29,7 @@ class IcecastBackend : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IcecastBackend(QObject* parent = 0);
|
IcecastBackend(QObject* parent = nullptr);
|
||||||
void Init(Database* db);
|
void Init(Database* db);
|
||||||
|
|
||||||
static const char* kTableName;
|
static const char* kTableName;
|
||||||
|
|
|
@ -33,7 +33,7 @@ class IcecastFilterWidget : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IcecastFilterWidget(QWidget* parent = 0);
|
IcecastFilterWidget(QWidget* parent = nullptr);
|
||||||
~IcecastFilterWidget();
|
~IcecastFilterWidget();
|
||||||
|
|
||||||
static const char* kSettingsGroup;
|
static const char* kSettingsGroup;
|
||||||
|
|
|
@ -30,7 +30,7 @@ class IcecastModel : public SimpleTreeModel<IcecastItem> {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IcecastModel(IcecastBackend* backend, QObject* parent = 0);
|
IcecastModel(IcecastBackend* backend, QObject* parent = nullptr);
|
||||||
~IcecastModel();
|
~IcecastModel();
|
||||||
|
|
||||||
// These values get saved in QSettings - don't change them
|
// These values get saved in QSettings - don't change them
|
||||||
|
|
|
@ -42,7 +42,7 @@ class InternetModel : public QStandardItemModel {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
InternetModel(Application* app, QObject* parent = 0);
|
InternetModel(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
enum Role {
|
enum Role {
|
||||||
// Services can use this role to distinguish between different types of
|
// Services can use this role to distinguish between different types of
|
||||||
|
|
|
@ -24,7 +24,7 @@ class InternetView : public AutoExpandingTreeView {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
InternetView(QWidget* parent = 0);
|
InternetView(QWidget* parent = nullptr);
|
||||||
|
|
||||||
// QWidget
|
// QWidget
|
||||||
void contextMenuEvent(QContextMenuEvent* e);
|
void contextMenuEvent(QContextMenuEvent* e);
|
||||||
|
|
|
@ -34,7 +34,7 @@ class InternetViewContainer : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
InternetViewContainer(QWidget* parent = 0);
|
InternetViewContainer(QWidget* parent = nullptr);
|
||||||
~InternetViewContainer();
|
~InternetViewContainer();
|
||||||
|
|
||||||
static const int kAnimationDuration;
|
static const int kAnimationDuration;
|
||||||
|
|
|
@ -26,7 +26,7 @@ class LastFMStationDialog : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LastFMStationDialog(QWidget* parent = 0);
|
LastFMStationDialog(QWidget* parent = nullptr);
|
||||||
~LastFMStationDialog();
|
~LastFMStationDialog();
|
||||||
|
|
||||||
enum Type { Artist, Tag, Custom, };
|
enum Type { Artist, Tag, Custom, };
|
||||||
|
|
|
@ -11,7 +11,7 @@ class QTcpSocket;
|
||||||
class LocalRedirectServer : public QObject {
|
class LocalRedirectServer : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
LocalRedirectServer(QObject* parent = 0);
|
LocalRedirectServer(QObject* parent = nullptr);
|
||||||
|
|
||||||
// Causes the server to listen for _one_ request.
|
// Causes the server to listen for _one_ request.
|
||||||
void Listen();
|
void Listen();
|
||||||
|
|
|
@ -35,7 +35,7 @@ class QXmlStreamReader;
|
||||||
class MagnatuneDownloadDialog : public QDialog {
|
class MagnatuneDownloadDialog : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
MagnatuneDownloadDialog(MagnatuneService* service, QWidget* parent = 0);
|
MagnatuneDownloadDialog(MagnatuneService* service, QWidget* parent = nullptr);
|
||||||
~MagnatuneDownloadDialog();
|
~MagnatuneDownloadDialog();
|
||||||
|
|
||||||
void Show(const SongList& songs);
|
void Show(const SongList& songs);
|
||||||
|
|
|
@ -21,7 +21,7 @@ class OAuthenticator : public QObject {
|
||||||
};
|
};
|
||||||
|
|
||||||
OAuthenticator(const QString& client_id, const QString& client_secret,
|
OAuthenticator(const QString& client_id, const QString& client_secret,
|
||||||
RedirectStyle redirect, QObject* parent = 0);
|
RedirectStyle redirect, QObject* parent = nullptr);
|
||||||
void StartAuthorisation(const QString& oauth_endpoint,
|
void StartAuthorisation(const QString& oauth_endpoint,
|
||||||
const QString& token_endpoint, const QString& scope);
|
const QString& token_endpoint, const QString& scope);
|
||||||
void RefreshAuthorisation(const QString& token_endpoint,
|
void RefreshAuthorisation(const QString& token_endpoint,
|
||||||
|
|
|
@ -8,7 +8,7 @@ class SkydriveService;
|
||||||
class SkydriveUrlHandler : public UrlHandler {
|
class SkydriveUrlHandler : public UrlHandler {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
SkydriveUrlHandler(SkydriveService* service, QObject* parent = 0);
|
SkydriveUrlHandler(SkydriveService* service, QObject* parent = nullptr);
|
||||||
|
|
||||||
QString scheme() const { return "skydrive"; }
|
QString scheme() const { return "skydrive"; }
|
||||||
QIcon icon() const { return QIcon(":providers/skydrive.png"); }
|
QIcon icon() const { return QIcon(":providers/skydrive.png"); }
|
||||||
|
|
|
@ -29,7 +29,7 @@ class SpotifyBlobDownloader : public QObject {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SpotifyBlobDownloader(const QString& version, const QString& path,
|
SpotifyBlobDownloader(const QString& version, const QString& path,
|
||||||
QObject* parent = 0);
|
QObject* parent = nullptr);
|
||||||
~SpotifyBlobDownloader();
|
~SpotifyBlobDownloader();
|
||||||
|
|
||||||
static const char* kSignatureSuffix;
|
static const char* kSignatureSuffix;
|
||||||
|
|
|
@ -31,7 +31,7 @@ class SpotifyServer : public AbstractMessageHandler<pb::spotify::Message> {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SpotifyServer(QObject* parent = 0);
|
SpotifyServer(QObject* parent = nullptr);
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
void Login(const QString& username, const QString& password,
|
void Login(const QString& username, const QString& password,
|
||||||
|
|
|
@ -140,7 +140,7 @@ class SubsonicLibraryScanner : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SubsonicLibraryScanner(SubsonicService* service, QObject* parent = 0);
|
SubsonicLibraryScanner(SubsonicService* service, QObject* parent = nullptr);
|
||||||
~SubsonicLibraryScanner();
|
~SubsonicLibraryScanner();
|
||||||
|
|
||||||
void Scan();
|
void Scan();
|
||||||
|
|
|
@ -9,7 +9,7 @@ class NetworkAccessManager;
|
||||||
class UbuntuOneAuthenticator : public QObject {
|
class UbuntuOneAuthenticator : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit UbuntuOneAuthenticator(QObject* parent = 0);
|
explicit UbuntuOneAuthenticator(QObject* parent = nullptr);
|
||||||
void StartAuthorisation(const QString& email, const QString& password);
|
void StartAuthorisation(const QString& email, const QString& password);
|
||||||
|
|
||||||
bool success() const { return success_; }
|
bool success() const { return success_; }
|
||||||
|
|
|
@ -10,7 +10,7 @@ class Ui_UbuntuOneSettingsPage;
|
||||||
class UbuntuOneSettingsPage : public SettingsPage {
|
class UbuntuOneSettingsPage : public SettingsPage {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
UbuntuOneSettingsPage(SettingsDialog* parent = 0);
|
UbuntuOneSettingsPage(SettingsDialog* parent = nullptr);
|
||||||
|
|
||||||
void Load();
|
void Load();
|
||||||
void Save();
|
void Save();
|
||||||
|
|
|
@ -8,7 +8,7 @@ class UbuntuOneService;
|
||||||
class UbuntuOneUrlHandler : public UrlHandler {
|
class UbuntuOneUrlHandler : public UrlHandler {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
UbuntuOneUrlHandler(UbuntuOneService* service, QObject* parent = 0);
|
UbuntuOneUrlHandler(UbuntuOneService* service, QObject* parent = nullptr);
|
||||||
|
|
||||||
QString scheme() const { return "ubuntuonefile"; }
|
QString scheme() const { return "ubuntuonefile"; }
|
||||||
QIcon icon() const { return QIcon(":providers/ubuntuone.png"); }
|
QIcon icon() const { return QIcon(":providers/ubuntuone.png"); }
|
||||||
|
|
|
@ -36,7 +36,7 @@ class LibraryBackendInterface : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LibraryBackendInterface(QObject* parent = 0) : QObject(parent) {}
|
LibraryBackendInterface(QObject* parent = nullptr) : QObject(parent) {}
|
||||||
virtual ~LibraryBackendInterface() {}
|
virtual ~LibraryBackendInterface() {}
|
||||||
|
|
||||||
struct Album {
|
struct Album {
|
||||||
|
@ -121,7 +121,7 @@ class LibraryBackend : public LibraryBackendInterface {
|
||||||
public:
|
public:
|
||||||
static const char* kSettingsGroup;
|
static const char* kSettingsGroup;
|
||||||
|
|
||||||
Q_INVOKABLE LibraryBackend(QObject* parent = 0);
|
Q_INVOKABLE LibraryBackend(QObject* parent = nullptr);
|
||||||
void Init(Database* db, const QString& songs_table, const QString& dirs_table,
|
void Init(Database* db, const QString& songs_table, const QString& dirs_table,
|
||||||
const QString& subdirs_table, const QString& fts_table);
|
const QString& subdirs_table, const QString& fts_table);
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ class LibraryDirectoryModel : public QStandardItemModel {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LibraryDirectoryModel(LibraryBackend* backend, QObject* parent = 0);
|
LibraryDirectoryModel(LibraryBackend* backend, QObject* parent = nullptr);
|
||||||
~LibraryDirectoryModel();
|
~LibraryDirectoryModel();
|
||||||
|
|
||||||
// To be called by GUIs
|
// To be called by GUIs
|
||||||
|
|
|
@ -38,7 +38,7 @@ class LibraryFilterWidget : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LibraryFilterWidget(QWidget* parent = 0);
|
LibraryFilterWidget(QWidget* parent = nullptr);
|
||||||
~LibraryFilterWidget();
|
~LibraryFilterWidget();
|
||||||
|
|
||||||
static const int kFilterDelay = 500; // msec
|
static const int kFilterDelay = 500; // msec
|
||||||
|
|
|
@ -47,7 +47,7 @@ class LibraryModel : public SimpleTreeModel<LibraryItem> {
|
||||||
Q_ENUMS(GroupBy);
|
Q_ENUMS(GroupBy);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LibraryModel(LibraryBackend* backend, Application* app, QObject* parent = 0);
|
LibraryModel(LibraryBackend* backend, Application* app, QObject* parent = nullptr);
|
||||||
~LibraryModel();
|
~LibraryModel();
|
||||||
|
|
||||||
static const char* kSmartPlaylistsMimeType;
|
static const char* kSmartPlaylistsMimeType;
|
||||||
|
|
|
@ -53,7 +53,7 @@ class LibraryView : public AutoExpandingTreeView {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LibraryView(QWidget* parent = 0);
|
LibraryView(QWidget* parent = nullptr);
|
||||||
~LibraryView();
|
~LibraryView();
|
||||||
|
|
||||||
static const char* kSettingsGroup;
|
static const char* kSettingsGroup;
|
||||||
|
|
|
@ -28,7 +28,7 @@ class LibraryViewContainer : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LibraryViewContainer(QWidget* parent = 0);
|
LibraryViewContainer(QWidget* parent = nullptr);
|
||||||
~LibraryViewContainer();
|
~LibraryViewContainer();
|
||||||
|
|
||||||
LibraryFilterWidget* filter() const;
|
LibraryFilterWidget* filter() const;
|
||||||
|
|
|
@ -38,7 +38,7 @@ class LibraryWatcher : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LibraryWatcher(QObject* parent = 0);
|
LibraryWatcher(QObject* parent = nullptr);
|
||||||
|
|
||||||
static const char* kSettingsGroup;
|
static const char* kSettingsGroup;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ class MoodbarController : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MoodbarController(Application* app, QObject* parent = 0);
|
MoodbarController(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void CurrentMoodbarDataChanged(const QByteArray& data);
|
void CurrentMoodbarDataChanged(const QByteArray& data);
|
||||||
|
|
|
@ -36,7 +36,7 @@ class MoodbarItemDelegate : public QItemDelegate {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MoodbarItemDelegate(Application* app, PlaylistView* view,
|
MoodbarItemDelegate(Application* app, PlaylistView* view,
|
||||||
QObject* parent = 0);
|
QObject* parent = nullptr);
|
||||||
|
|
||||||
void paint(QPainter* painter, const QStyleOptionViewItem& option,
|
void paint(QPainter* painter, const QStyleOptionViewItem& option,
|
||||||
const QModelIndex& index) const;
|
const QModelIndex& index) const;
|
||||||
|
|
|
@ -32,7 +32,7 @@ class MoodbarLoader : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MoodbarLoader(Application* app, QObject* parent = 0);
|
MoodbarLoader(Application* app, QObject* parent = nullptr);
|
||||||
~MoodbarLoader();
|
~MoodbarLoader();
|
||||||
|
|
||||||
enum Result {
|
enum Result {
|
||||||
|
|
|
@ -38,7 +38,7 @@ class AcoustidClient : public QObject {
|
||||||
// the Finished signal - they have no meaning to AcoustidClient.
|
// the Finished signal - they have no meaning to AcoustidClient.
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AcoustidClient(QObject* parent = 0);
|
AcoustidClient(QObject* parent = nullptr);
|
||||||
|
|
||||||
// Network requests will be aborted after this interval.
|
// Network requests will be aborted after this interval.
|
||||||
void SetTimeout(int msec);
|
void SetTimeout(int msec);
|
||||||
|
|
|
@ -38,7 +38,7 @@ class MusicBrainzClient : public QObject {
|
||||||
// the Finished signal - they have no meaning to MusicBrainzClient.
|
// the Finished signal - they have no meaning to MusicBrainzClient.
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MusicBrainzClient(QObject* parent = 0);
|
MusicBrainzClient(QObject* parent = nullptr);
|
||||||
|
|
||||||
struct Result {
|
struct Result {
|
||||||
Result() : duration_msec_(0), track_(0), year_(-1) {}
|
Result() : duration_msec_(0), track_(0), year_(-1) {}
|
||||||
|
|
|
@ -33,7 +33,7 @@ class TagFetcher : public QObject {
|
||||||
// MusicBrainzClient.
|
// MusicBrainzClient.
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TagFetcher(QObject* parent = 0);
|
TagFetcher(QObject* parent = nullptr);
|
||||||
|
|
||||||
void StartFetch(const SongList& songs);
|
void StartFetch(const SongList& songs);
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ class NetworkRemote : public QObject {
|
||||||
static const char* kSettingsGroup;
|
static const char* kSettingsGroup;
|
||||||
static const quint16 kDefaultServerPort;
|
static const quint16 kDefaultServerPort;
|
||||||
|
|
||||||
explicit NetworkRemote(Application* app, QObject* parent = 0);
|
explicit NetworkRemote(Application* app, QObject* parent = nullptr);
|
||||||
~NetworkRemote();
|
~NetworkRemote();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
|
@ -26,7 +26,7 @@ class DynamicPlaylistControls : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DynamicPlaylistControls(QWidget* parent = 0);
|
DynamicPlaylistControls(QWidget* parent = nullptr);
|
||||||
~DynamicPlaylistControls();
|
~DynamicPlaylistControls();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
|
@ -78,7 +78,7 @@ class Playlist : public QAbstractListModel {
|
||||||
Playlist(PlaylistBackend* backend, TaskManager* task_manager,
|
Playlist(PlaylistBackend* backend, TaskManager* task_manager,
|
||||||
LibraryBackend* library, int id,
|
LibraryBackend* library, int id,
|
||||||
const QString& special_type = QString(), bool favorite = false,
|
const QString& special_type = QString(), bool favorite = false,
|
||||||
QObject* parent = 0);
|
QObject* parent = nullptr);
|
||||||
~Playlist();
|
~Playlist();
|
||||||
|
|
||||||
void SkipTracks(const QModelIndexList& source_indexes);
|
void SkipTracks(const QModelIndexList& source_indexes);
|
||||||
|
|
|
@ -34,7 +34,7 @@ class PlaylistBackend : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Q_INVOKABLE PlaylistBackend(Application* app, QObject* parent = 0);
|
Q_INVOKABLE PlaylistBackend(Application* app, QObject* parent = nullptr);
|
||||||
|
|
||||||
struct Playlist {
|
struct Playlist {
|
||||||
Playlist() : id(-1), favorite(false), last_played(0) {}
|
Playlist() : id(-1), favorite(false), last_played(0) {}
|
||||||
|
|
|
@ -36,7 +36,7 @@ class PlaylistContainer : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PlaylistContainer(QWidget* parent = 0);
|
PlaylistContainer(QWidget* parent = nullptr);
|
||||||
~PlaylistContainer();
|
~PlaylistContainer();
|
||||||
|
|
||||||
static const char* kSettingsGroup;
|
static const char* kSettingsGroup;
|
||||||
|
|
|
@ -31,7 +31,7 @@ class PlaylistFilter : public QSortFilterProxyModel {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PlaylistFilter(QObject* parent = 0);
|
PlaylistFilter(QObject* parent = nullptr);
|
||||||
~PlaylistFilter();
|
~PlaylistFilter();
|
||||||
|
|
||||||
// QAbstractItemModel
|
// QAbstractItemModel
|
||||||
|
|
|
@ -30,7 +30,7 @@ class PlaylistHeader : public StretchHeaderView {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PlaylistHeader(Qt::Orientation orientation, PlaylistView* view,
|
PlaylistHeader(Qt::Orientation orientation, PlaylistView* view,
|
||||||
QWidget* parent = 0);
|
QWidget* parent = nullptr);
|
||||||
|
|
||||||
// QWidget
|
// QWidget
|
||||||
void contextMenuEvent(QContextMenuEvent* e);
|
void contextMenuEvent(QContextMenuEvent* e);
|
||||||
|
|
|
@ -35,7 +35,7 @@ class PlaylistListContainer : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PlaylistListContainer(QWidget* parent = 0);
|
PlaylistListContainer(QWidget* parent = nullptr);
|
||||||
~PlaylistListContainer();
|
~PlaylistListContainer();
|
||||||
|
|
||||||
void SetApplication(Application* app);
|
void SetApplication(Application* app);
|
||||||
|
|
|
@ -7,7 +7,7 @@ class PlaylistListModel : public QStandardItemModel {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PlaylistListModel(QObject* parent = 0);
|
PlaylistListModel(QObject* parent = nullptr);
|
||||||
|
|
||||||
enum Types { Type_Folder, Type_Playlist };
|
enum Types { Type_Folder, Type_Playlist };
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@ class PlaylistManager : public PlaylistManagerInterface {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PlaylistManager(Application* app, QObject* parent = 0);
|
PlaylistManager(Application* app, QObject* parent = nullptr);
|
||||||
~PlaylistManager();
|
~PlaylistManager();
|
||||||
|
|
||||||
int current_id() const { return current_; }
|
int current_id() const { return current_; }
|
||||||
|
|
|
@ -32,7 +32,7 @@ class PlaylistSequence : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PlaylistSequence(QWidget* parent = 0, SettingsProvider* settings = 0);
|
PlaylistSequence(QWidget* parent = nullptr, SettingsProvider* settings = 0);
|
||||||
~PlaylistSequence();
|
~PlaylistSequence();
|
||||||
|
|
||||||
enum RepeatMode {
|
enum RepeatMode {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue