mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-31 09:44:50 +01:00
Fix formatting
This commit is contained in:
parent
87fd93a1cf
commit
55f610f3b2
@ -43,8 +43,7 @@ class _MessageHandlerBase : public QObject {
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// device can be NULL, in which case you must call SetDevice before writing
|
// device can be nullptr, in which case you must call SetDevice before writing any messages.
|
||||||
// any messages.
|
|
||||||
_MessageHandlerBase(QIODevice *device, QObject *parent);
|
_MessageHandlerBase(QIODevice *device, QObject *parent);
|
||||||
|
|
||||||
void SetDevice(QIODevice *device);
|
void SetDevice(QIODevice *device);
|
||||||
@ -176,4 +175,3 @@ void AbstractMessageHandler<MT>::AbortAll() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // MESSAGEHANDLER_H
|
#endif // MESSAGEHANDLER_H
|
||||||
|
|
||||||
|
@ -43,18 +43,17 @@ class _MessageReplyBase : public QObject {
|
|||||||
|
|
||||||
void Abort();
|
void Abort();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void Finished(bool success);
|
void Finished(bool success);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool finished_;
|
bool finished_;
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
QSemaphore semaphore_;
|
QSemaphore semaphore_;
|
||||||
};
|
};
|
||||||
|
|
||||||
// A reply future class that is returned immediately for requests that will
|
// A reply future class that is returned immediately for requests that will occur in the background. Similar to QNetworkReply.
|
||||||
// occur in the background. Similar to QNetworkReply.
|
|
||||||
template <typename MessageType>
|
template <typename MessageType>
|
||||||
class MessageReply : public _MessageReplyBase {
|
class MessageReply : public _MessageReplyBase {
|
||||||
public:
|
public:
|
||||||
|
@ -376,8 +376,8 @@ bool Playlist::setData(const QModelIndex &index, const QVariant &value, int role
|
|||||||
|
|
||||||
if (!set_column_value(song, (Column)index.column(), value)) return false;
|
if (!set_column_value(song, (Column)index.column(), value)) return false;
|
||||||
|
|
||||||
TagReaderReply *reply = TagReaderClient::Instance()->SaveFile( song.url().toLocalFile(), song);
|
TagReaderReply *reply = TagReaderClient::Instance()->SaveFile(song.url().toLocalFile(), song);
|
||||||
NewClosure(reply, SIGNAL(Finished(bool)), this, SLOT(SongSaveComplete(TagReaderReply*, QPersistentModelIndex)), reply, QPersistentModelIndex(index));
|
NewClosure(reply, SIGNAL(Finished(bool)), this, SLOT(SongSaveComplete(TagReaderReply*, QPersistentModelIndex)), reply, QPersistentModelIndex(index));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user