summaryrefslogtreecommitdiff
path: root/bootstrap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.cxx')
-rw-r--r--bootstrap.cxx37
1 files changed, 37 insertions, 0 deletions
diff --git a/bootstrap.cxx b/bootstrap.cxx
new file mode 100644
index 0000000..22ba9cd
--- /dev/null
+++ b/bootstrap.cxx
@@ -0,0 +1,37 @@
+#include "bootstrap.hxx"
+
+Bootstrap::Bootstrap(QObject *parent):
+ QObject(parent),
+ m_theme(Theme::Light),
+ m_purpose(Purpose::None)
+{
+}
+
+Bootstrap *Bootstrap::qmlAttachedProperties(QObject *object)
+{
+ return new Bootstrap(object);
+}
+
+Bootstrap::Theme Bootstrap::theme() const
+{
+ return m_theme;
+}
+
+void Bootstrap::setTheme(Bootstrap::Theme theme)
+{
+ if (theme == m_theme) return;
+ m_theme = theme;
+ emit themeChanged();
+}
+
+Bootstrap::Purpose Bootstrap::purpose() const
+{
+ return m_purpose;
+}
+
+void Bootstrap::setPurpose(Bootstrap::Purpose purpose)
+{
+ if (purpose == m_purpose) return;
+ m_purpose = purpose;
+ emit purposeChanged();
+}