- New path is /usr/share/qtcamera/config/
- define DATA_DIR to be used by all classes
#include <QStringList>
#include <QDebug>
-#define CONFIGURATION_FILE "/etc/qtcamera/qtcamera.ini"
+#define CONFIGURATION_FILE DATA_DIR"/qtcamera.ini"
class QtCamConfigPrivate {
public:
#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 {
#include <QSettings>
#include <QDebug>
-#define PROPERTIES_FILE "/etc/qtcamera/properties.ini"
+#define PROPERTIES_FILE DATA_DIR"/properties.ini"
class QtCamPropertySetterPrivate {
public: