Workaround policy engine ignoring our request after being minimized then maximized
[harmattan/cameraplus] / src / filenaming.h
1 // -*- c++ -*-
2
3 #ifndef FILE_NAMING_H
4 #define FILE_NAMING_H
5
6 #include <QObject>
7
8 class FileNaming : public QObject {
9   Q_OBJECT
10
11   Q_PROPERTY(QString imageSuffix WRITE setImageSuffix);
12   Q_PROPERTY(QString videoSuffix WRITE setVideoSuffix);
13
14 public:
15   FileNaming(QObject *parent = 0);
16   ~FileNaming();
17
18   void setImageSuffix(const QString& suffix);
19   void setVideoSuffix(const QString& suffix);
20
21   Q_INVOKABLE QString imageFileName();
22   Q_INVOKABLE QString videoFileName();
23
24 private:
25   QString fileName(const QString& suffix);
26
27   QString m_image;
28   QString m_video;
29 };
30
31 #endif /* FILE_NAMING_H */