TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
Convenience class for converting JSON data to QVariant objects using a dedicated thread. More...
#include <serializerrunnable.h>
Classes | |
class | SerializerRunnablePrivate |
Convenience class for converting JSON data to QVariant objects using a dedicated thread private. More... | |
Signals | |
void | parsingFinished (const QByteArray &serialized, bool ok, const QString &error_msg) |
This signal is emitted when the serialization process has been completed. More... | |
Public Member Functions | |
SerializerRunnable (QObject *parent=nullptr) | |
void | setJsonObject (const QVariant &json) |
Sets the json object to serialize. More... | |
void | run () |
Convenience class for converting JSON data to QVariant objects using a dedicated thread.
Definition at line 39 of file serializerrunnable.h.
|
explicit |
Definition at line 41 of file serializerrunnable.cpp.
References TTK_INIT_PRIVATE.
|
signal |
This signal is emitted when the serialization process has been completed.
serialized | contains the result of the serialization |
ok | if a serialization error occurs ok is set to false, otherwise it's set to true. |
error_msg | contains a string explaining the failure reason |
Referenced by run().
void SerializerRunnable::run | ( | ) |
Definition at line 55 of file serializerrunnable.cpp.
References QJson::Serializer::errorMessage(), parsingFinished(), QJson::Serializer::serialize(), and TTK_D.
void SerializerRunnable::setJsonObject | ( | const QVariant & | json | ) |
Sets the json object to serialize.
json | QVariant containing the json representation to be serialized |
Definition at line 49 of file serializerrunnable.cpp.
References TTK_D.