//
//  Generated by OWNBRANDER on Tue, 05 Sep 2023 18:52:53 +0000
//

#ifndef HG_THEME_H
#define HG_THEME_H

#include "theme.h"
#include "version.h"

#include <QString>
#include <QDebug>
#include <QPixmap>
#include <QIcon>
#include <QApplication>


namespace OCC {

class HgTheme : public Theme
{
public:
    HgTheme() {};
    QString configFileName() const { return QLatin1String("qa.cfg"); }

    QString defaultServerFolder() const { return  QStringLiteral("/"); }
    QString quotaBaseFolder() const { return QStringLiteral("/"); }
    QString forceConfigAuthType() const { return QStringLiteral(""); }
      //QString overrideServerUrl() const { return QString(); }
     //QString helpUrl() const { return QString(); }
    QString conflictHelpUrl() const { return QString(); }

    QString wizardUrlPostfix() const { return QStringLiteral(""); }

        QColor wizardHeaderBackgroundColor() const { return QColor("#D92365"); }
    QColor wizardHeaderTitleColor() const { return QColor("#6B3F49"); }
    QString wizardUrlHint() const { return QStringLiteral("https://ocis.ocis-keycloak.released.owncloud.works"); }

    bool forceSystemNetworkProxy() const { return false; }
    QIcon wizardHeaderLogo() const { return themeUniversalIcon(QStringLiteral("wizard_logo")); };

    bool singleSyncFolder() const { return true; }
    bool multiAccount() const { return false; }
    bool userGroupSharing() const { return true; }
    bool linkSharing() const { return true; }

    UserIDType userIDType() const { return UserIDEmail; }
    QString userIDHint() const { return QStringLiteral("Enter your email here"); }

     qint64 newBigFolderSizeLimit() const { return (-1);} 
    
    bool wizardHideExternalStorageConfirmationCheckbox () const { return false; }
    bool wizardHideFolderSizeLimitCheckbox () const { return false; }


    QString about() const  {
    #ifdef MIRALL_VERSION_STRING
    QString devString = tr("<p>Version %1. For more information visit <a href=\"https://%2\">https://%2</a></p>").arg(QStringLiteral(MIRALL_VERSION_STRING).toHtmlEscaped(), QStringLiteral(APPLICATION_DOMAIN).toHtmlEscaped());
    #else
    QString devString = tr("<p>Version %1. For more information visit <a href=\"https://%2\">https://%2</a></p>").arg(Version::displayString().toHtmlEscaped(), QStringLiteral(APPLICATION_DOMAIN).toHtmlEscaped());
    #endif
        devString += tr("<p>Copyright ownCloud GmbH</p>");
        devString += tr("<p>Distributed by %1 and licensed under the GNU General Public License (GPL) Version 2.0.<br/>")
                  .arg(Utility::escape(QStringLiteral(APPLICATION_VENDOR)));
        devString += gitSHA1();

        return devString;
    }

    bool aboutShowCopyright() const { return true; }

    bool showVirtualFilesOption() const { return true; }

    bool forceVirtualFilesOption() const { return true; }

    bool enableExperimentalFeatures() const {
        // TODO: add ownbrander flag
        return false;
    }

    bool connectionValidatorClearCookies() const { return false; }

    bool enableSocketApiIconSupport() const { return true; }

    bool allowDuplicatedFolderSyncPair() const { return true; }

    bool wizardEnableWebfinger() const { return false; }
};

} // namespace mirall

#endif // hg_THEME_H
