mirror of
https://github.com/jellyfin/jellyfin-media-player.git
synced 2024-11-23 05:59:43 +00:00
21 lines
518 B
C++
21 lines
518 B
C++
#pragma once
|
|
|
|
// Qt includes
|
|
#include <QIODevice>
|
|
#include <QVariant>
|
|
#include <QVariantList>
|
|
#include <QVariantMap>
|
|
#include <QDomElement>
|
|
#include <QDomDocument>
|
|
#include <QString>
|
|
|
|
class PListSerializer {
|
|
public:
|
|
static QString toPList(const QVariant &variant);
|
|
private:
|
|
static QDomElement serializeElement(QDomDocument &doc, const QVariant &variant);
|
|
static QDomElement serializeMap(QDomDocument &doc, const QVariantMap &map);
|
|
static QDomElement serializeList(QDomDocument &doc, const QVariantList &list);
|
|
};
|
|
|