Expose the branding related members of Theme as properties

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-10-21 13:46:04 +02:00
parent de63e5e221
commit 7536e4c00b
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -15,10 +15,10 @@
#ifndef _THEME_H
#define _THEME_H
#include <QIcon>
#include <QObject>
#include "syncresult.h"
class QIcon;
class QString;
class QObject;
class QPixmap;
@ -37,6 +37,24 @@ class SyncResult;
class OWNCLOUDSYNC_EXPORT Theme : public QObject
{
Q_OBJECT
Q_PROPERTY(bool branded READ isBranded CONSTANT)
Q_PROPERTY(QString appNameGUI READ appNameGUI CONSTANT)
Q_PROPERTY(QString appName READ appName CONSTANT)
#ifndef TOKEN_AUTH_ONLY
Q_PROPERTY(QIcon folderDisabledIcon READ folderDisabledIcon CONSTANT)
Q_PROPERTY(QIcon folderOfflineIcon READ folderOfflineIcon CONSTANT)
Q_PROPERTY(QIcon applicationIcon READ applicationIcon CONSTANT)
#endif
Q_PROPERTY(QString version READ version CONSTANT)
Q_PROPERTY(QString helpUrl READ helpUrl CONSTANT)
Q_PROPERTY(QString conflictHelpUrl READ conflictHelpUrl CONSTANT)
Q_PROPERTY(QString overrideServerUrl READ overrideServerUrl)
Q_PROPERTY(bool forceOverrideServerUrl READ forceOverrideServerUrl)
#ifndef TOKEN_AUTH_ONLY
Q_PROPERTY(QColor wizardHeaderTitleColor READ wizardHeaderTitleColor CONSTANT)
Q_PROPERTY(QColor wizardHeaderBackgroundColor READ wizardHeaderBackgroundColor CONSTANT)
#endif
Q_PROPERTY(QString updateCheckUrl READ updateCheckUrl CONSTANT)
public:
enum CustomMediaType {
oCSetupTop, // ownCloud connect page