New methods for accessing settings
authorDaniel Klaffenbach <danielklaffenbach@gmail.com>
Wed, 3 Nov 2010 22:18:23 +0000 (23:18 +0100)
committerDaniel Klaffenbach <danielklaffenbach@gmail.com>
Wed, 3 Nov 2010 22:18:23 +0000 (23:18 +0100)
src/settings.cpp
src/settings.h

index 36b3e19..ffd71e6 100644 (file)
@@ -31,6 +31,7 @@ Settings::~Settings()
     delete ui;
 }
 
+
 /**
   * Returns true if we are on a Maemo 5 OS.
   */
@@ -88,3 +89,31 @@ void Settings::showOverclockingWarning()
 #endif
 
 }
+
+
+/**
+  * Returns true if the user wants to display a more
+  * accurate temperature.
+  */
+bool Settings::useAdvancedTemperature()
+{
+    return advancedTemperature;
+}
+
+
+/**
+  * Returns true if auto-Rotate is enabled.
+  */
+bool Settings::useAutoRotate()
+{
+    return autoRotate;
+}
+
+
+/**
+  * Returns true if the user enabled overclocking.
+  */
+bool Settings::useOverclocking()
+{
+    return overclocking;
+}
index dcb29ca..921e237 100644 (file)
@@ -16,6 +16,9 @@ public:
     explicit Settings(QWidget *parent = 0);
     ~Settings();
     bool platformMaemo();
+    bool useAdvancedTemperature();
+    bool useAutoRotate();
+    bool useOverclocking();
 
 public slots:
     void reset();