Changed configuration directory.
authorMohammed Sameer <msameer@foolab.org>
Sat, 5 Jan 2013 19:27:37 +0000 (21:27 +0200)
committerMohammed Sameer <msameer@foolab.org>
Sat, 5 Jan 2013 19:27:37 +0000 (21:27 +0200)
- New path is /usr/share/qtcamera/config/
- define DATA_DIR to be used by all classes

lib/qtcamconfig.cpp
lib/qtcamconfig.h
lib/qtcampropertysetter.cpp

index b570ac7..b056078 100644 (file)
@@ -23,7 +23,7 @@
 #include <QStringList>
 #include <QDebug>
 
-#define CONFIGURATION_FILE                    "/etc/qtcamera/qtcamera.ini"
+#define CONFIGURATION_FILE                    DATA_DIR"/qtcamera.ini"
 
 class QtCamConfigPrivate {
 public:
index 7b2e203..a60e923 100644 (file)
 #define RENDERER_TYPE_MEEGO                   "meego"
 #define RENDERER_TYPE_GENERIC                 "generic"
 
+#ifndef DATA_DIR
+#define DATA_DIR                              "/usr/share/qtcamera/config/"
+#endif /* DATA_DIR */
+
 class QtCamConfigPrivate;
 
 class QtCamConfig : public QObject {
index 7d21e69..4f10833 100644 (file)
@@ -23,7 +23,7 @@
 #include <QSettings>
 #include <QDebug>
 
-#define PROPERTIES_FILE                       "/etc/qtcamera/properties.ini"
+#define PROPERTIES_FILE                       DATA_DIR"/properties.ini"
 
 class QtCamPropertySetterPrivate {
 public: