X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=src%2Fplatformsettings.h;h=b3b6898b6dcb6dacf32445d0574356a2e72e67da;hb=HEAD;hp=20ca2f9efcbef7eb9964cd8bbef941d0fcd1a388;hpb=835ab9d33af004612608e178ca8081594ec46fbc;p=harmattan%2Fcameraplus diff --git a/src/platformsettings.h b/src/platformsettings.h index 20ca2f9..b3b6898 100644 --- a/src/platformsettings.h +++ b/src/platformsettings.h @@ -32,10 +32,29 @@ class QSettings; class PlatformSettings : public QObject { Q_OBJECT + Q_PROPERTY(QString imageCaptureStartedSound READ imageCaptureStartedSound CONSTANT); + Q_PROPERTY(QString imageCaptureEndedSound READ imageCaptureEndedSound CONSTANT); + Q_PROPERTY(QString videoRecordingStartedSound READ videoRecordingStartedSound CONSTANT); + Q_PROPERTY(QString videoRecordingEndedSound READ videoRecordingEndedSound CONSTANT); + Q_PROPERTY(QString autoFocusAcquiredSound READ autoFocusAcquiredSound CONSTANT); + Q_PROPERTY(QString imagePath READ imagePath CONSTANT); + Q_PROPERTY(QString videoPath READ videoPath CONSTANT); + Q_PROPERTY(QString temporaryVideoPath READ temporaryVideoPath CONSTANT); + public: PlatformSettings(QObject *parent = 0); ~PlatformSettings(); + class Service { + public: + bool m_enabled; + QString m_type; + QString m_path; + QString m_interface; + QString m_dest; + QString m_method; + }; + QSize previewSize(); QString thumbnailFlavorName(); @@ -45,6 +64,18 @@ public: bool isThumbnailCreationEnabled(); QString temporaryFilePath(); + Service service(const QString& id); + + QString imageCaptureStartedSound() const; + QString imageCaptureEndedSound() const; + QString videoRecordingStartedSound() const; + QString videoRecordingEndedSound() const; + QString autoFocusAcquiredSound() const; + + QString imagePath() const; + QString videoPath() const; + QString temporaryVideoPath() const; + public slots: void init();