badbc977033fc84bd7357fb86682a4878d9a4c6f
[harmattan/cameraplus] / src / fsmonitor.h
1 // -*- c++ -*-
2
3 #ifndef FS_MONITOR_H
4 #define FS_MONITOR_H
5
6 #include <QObject>
7
8 namespace MeeGo {
9   class QmUSBMode;
10 };
11
12 class FSMonitor : public QObject {
13   Q_OBJECT
14   Q_PROPERTY(bool available READ isAvailable NOTIFY availabilityChanged)
15
16 public:
17   FSMonitor(QObject *parent = 0);
18   ~FSMonitor();
19
20   bool isAvailable() const;
21
22   void setAvailable(bool available);
23
24 signals:
25   void availabilityChanged();
26
27 private slots:
28   void modeChanged();
29
30 private:
31   bool m_available;
32   MeeGo::QmUSBMode *m_mode;
33 };
34
35 #endif /* FS_MONITOR_H */