mirror of
https://github.com/YACReader/yacreader
synced 2025-07-20 22:14:41 -04:00
For now it doesn't serve the full information, only the information shown in the current/next comic view in iOS. I will see if I create two separated controllers or just on sending all the information when more information is needed in another iOS view.
24 lines
731 B
C++
24 lines
731 B
C++
#ifndef YACREADERSERVERDATAHELPER_H
|
|
#define YACREADERSERVERDATAHELPER_H
|
|
|
|
#include <QtCore>
|
|
#include "folder.h"
|
|
#include "comic_db.h"
|
|
|
|
class YACReaderServerDataHelper
|
|
{
|
|
public:
|
|
static QString folderToYSFormat(const qulonglong libraryId, const Folder & folder);
|
|
static QString comicToYSFormat(const qulonglong libraryId, const ComicDB & comic);
|
|
|
|
static QJsonObject folderToJSON(const qulonglong libraryId, const Folder & folder);
|
|
static QJsonObject comicToJSON(const qulonglong libraryId, const ComicDB & comic);
|
|
static QJsonObject fullComicToJSON(const qulonglong libraryId, const ComicDB & comic);
|
|
|
|
private:
|
|
YACReaderServerDataHelper();
|
|
|
|
};
|
|
|
|
#endif // YACREADERSERVERDATAHELPER_H
|