Query the minimum, maximum and default values if needed from the GParamSpec objects
[harmattan/cameraplus] / lib / qtcamcapability_p.h
index ada68aa..1ff58be 100644 (file)
@@ -54,6 +54,14 @@ public:
 
   }
 
+  GParamSpec *paramSpec() {
+    if (!src || prop.isEmpty()) {
+      return 0;
+    }
+
+    return g_object_class_find_property(G_OBJECT_GET_CLASS(src), prop.toUtf8().constData());
+  }
+
   void startMonitoring() {
     if (src) {
       QString p = QString("notify::%1").arg(prop);