camerauis/cameraxui/cxui/src/cxuiapplicationframeworkmonitor.cpp
changeset 40 2922f70fca82
parent 28 3075d9b614e6
--- a/camerauis/cameraxui/cxui/src/cxuiapplicationframeworkmonitor.cpp	Thu Jul 15 01:46:05 2010 +0300
+++ b/camerauis/cameraxui/cxui/src/cxuiapplicationframeworkmonitor.cpp	Thu Jul 15 01:49:11 2010 +0300
@@ -28,13 +28,7 @@
 CxuiApplicationFrameworkMonitor::CxuiApplicationFrameworkMonitor(CxuiApplication &application, CxeSettings &settings)
 {
     CX_DEBUG_ENTER_FUNCTION();
-    p = new CxuiApplicationFrameworkMonitorPrivate(application, settings);
-
-    connect(p, SIGNAL(foregroundStateChanged(CxuiApplicationFrameworkMonitor::ForegroundState)),
-            this, SIGNAL(foregroundStateChanged(CxuiApplicationFrameworkMonitor::ForegroundState)));
-    connect(p, SIGNAL(batteryEmpty()), this, SIGNAL(batteryEmpty()));
-
-
+    p = new CxuiApplicationFrameworkMonitorPrivate(this, application, settings);
     CX_DEBUG_EXIT_FUNCTION();
 }
 
@@ -57,4 +51,13 @@
     return p->foregroundState();
 }
 
+/*!
+* Is USB connected in mass memory mode?
+* @return True if USB mass memory mode is active and connected, false otherwise.
+*/
+bool CxuiApplicationFrameworkMonitor::isUsbMassMemoryModeActive() const
+{
+    return p->isUsbMassMemoryModeActive();
+}
+
 // end of file