mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-07-18 18:48:28 +02:00
59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
// SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
|
|
|
|
#pragma once
|
|
|
|
#include <QDateTime>
|
|
#include <QDebug>
|
|
#include <QDir>
|
|
#include <QFileInfo>
|
|
#include <QJsonArray>
|
|
#include <QJsonObject>
|
|
#include <QMetaEnum>
|
|
#include <QObject>
|
|
#include <QQmlEngine>
|
|
#include <QString>
|
|
#include <QUrl>
|
|
#include <QVariant>
|
|
#include <QVariantList>
|
|
|
|
#include "ScreenPlayUtil/PropertyHelpers.h"
|
|
#include "ScreenPlayUtil/util.h"
|
|
|
|
/*!
|
|
\class ProjectFile
|
|
\brief In ScreenPlay every Wallpaper, Scene or Widget has an project.json to store its configuration.
|
|
|
|
*/
|
|
namespace ScreenPlay {
|
|
|
|
struct ProjectFile {
|
|
|
|
bool init();
|
|
bool isValid();
|
|
|
|
QString title;
|
|
QString description;
|
|
// Filenames
|
|
QString file; // myFancyVideo.mp
|
|
QString preview;
|
|
QString previewGIF;
|
|
// Path to project.json
|
|
QFileInfo projectJsonFilePath;
|
|
// Folder name
|
|
QString folderName;
|
|
// Website Wallpaper
|
|
QUrl url;
|
|
// Video Wallpaper
|
|
ScreenPlay::Video::VideoCodec videoCodec;
|
|
|
|
QVariant publishedFileID { 0 };
|
|
QStringList tags;
|
|
|
|
ContentTypes::InstalledType type = ContentTypes::InstalledType::Unknown;
|
|
ContentTypes::SearchType searchType = ContentTypes::SearchType::All;
|
|
bool isNew = false;
|
|
bool containsAudio = false;
|
|
QDateTime lastModified;
|
|
};
|
|
}
|