diff -r c5025ea871a1 -r 2922f70fca82 camerauis/cameraxui/cxui/inc/cxuiapplicationframeworkmonitor.h --- a/camerauis/cameraxui/cxui/inc/cxuiapplicationframeworkmonitor.h Thu Jul 15 01:46:05 2010 +0300 +++ b/camerauis/cameraxui/cxui/inc/cxuiapplicationframeworkmonitor.h Thu Jul 15 01:49:11 2010 +0300 @@ -46,11 +46,12 @@ }; public: - CxuiApplicationFrameworkMonitor(CxuiApplication &application, CxeSettings& settings); + CxuiApplicationFrameworkMonitor(CxuiApplication &application, CxeSettings &settings); virtual ~CxuiApplicationFrameworkMonitor(); public: ForegroundState foregroundState() const; + bool isUsbMassMemoryModeActive() const; signals: /*! @@ -64,8 +65,18 @@ */ void batteryEmpty(); + /*! + * USB mass memory mode was just activated or deactivated. + * @param active If true, mass memory mode was activated, and mass memory cannot be accessed. + * Otherwise mass memory mode was deactivated, and mass memory is again accessible. + */ + void usbMassMemoryModeToggled(bool active); + + private: - CxuiApplicationFrameworkMonitorPrivate* p; + CxuiApplicationFrameworkMonitorPrivate *p; + + friend class CxuiApplicationFrameworkMonitorPrivate; }; #endif // CXUIAPPLICATIONFRAMEWORKMONITOR_H