Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
return resultStr;
}
+bool Theme::isBranded() const
+{
+ return appNameGUI() != QStringLiteral("Nextcloud");
+}
+
QString Theme::appNameGUI() const
{
return APPLICATION_NAME;
~Theme();
+ /**
+ * @brief isBranded indicates if the current application is branded
+ *
+ * By default, it is considered branded if the APPLICATION_NAME is
+ * different from "Nextcloud".
+ *
+ * @return true if branded, false otherwise
+ */
+ virtual bool isBranded() const;
+
/**
* @brief appNameGUI - Human readable application name.
*