camerauis/cameraxui/cxui/src/cxuiapplicationframeworkmonitor.cpp
changeset 36 b12f3922a74f
parent 21 fa6d9f75d6a6
equal deleted inserted replaced
32:5c1e3c6aa4ef 36:b12f3922a74f
    26 * Constructor
    26 * Constructor
    27 */
    27 */
    28 CxuiApplicationFrameworkMonitor::CxuiApplicationFrameworkMonitor(CxuiApplication &application, CxeSettings &settings)
    28 CxuiApplicationFrameworkMonitor::CxuiApplicationFrameworkMonitor(CxuiApplication &application, CxeSettings &settings)
    29 {
    29 {
    30     CX_DEBUG_ENTER_FUNCTION();
    30     CX_DEBUG_ENTER_FUNCTION();
    31     p = new CxuiApplicationFrameworkMonitorPrivate(application, settings);
    31     p = new CxuiApplicationFrameworkMonitorPrivate(this, application, settings);
    32 
       
    33     connect(p, SIGNAL(foregroundStateChanged(CxuiApplicationFrameworkMonitor::ForegroundState)),
       
    34             this, SIGNAL(foregroundStateChanged(CxuiApplicationFrameworkMonitor::ForegroundState)));
       
    35     connect(p, SIGNAL(batteryEmpty()), this, SIGNAL(batteryEmpty()));
       
    36 
       
    37 
       
    38     CX_DEBUG_EXIT_FUNCTION();
    32     CX_DEBUG_EXIT_FUNCTION();
    39 }
    33 }
    40 
    34 
    41 /*!
    35 /*!
    42 * Destructor
    36 * Destructor
    55 CxuiApplicationFrameworkMonitor::ForegroundState CxuiApplicationFrameworkMonitor::foregroundState() const
    49 CxuiApplicationFrameworkMonitor::ForegroundState CxuiApplicationFrameworkMonitor::foregroundState() const
    56 {
    50 {
    57     return p->foregroundState();
    51     return p->foregroundState();
    58 }
    52 }
    59 
    53 
       
    54 /*!
       
    55 * Is USB connected in mass memory mode?
       
    56 * @return True if USB mass memory mode is active and connected, false otherwise.
       
    57 */
       
    58 bool CxuiApplicationFrameworkMonitor::isUsbMassMemoryModeActive() const
       
    59 {
       
    60     return p->isUsbMassMemoryModeActive();
       
    61 }
       
    62 
    60 // end of file
    63 // end of file