camerauis/cameraxui/cxui/inc/cxuiapplicationframeworkmonitor.h
changeset 36 b12f3922a74f
parent 21 fa6d9f75d6a6
child 58 ddba9caa7f32
equal deleted inserted replaced
32:5c1e3c6aa4ef 36:b12f3922a74f
    44         /*! This application owns foreground */
    44         /*! This application owns foreground */
    45         ForegroundOwned
    45         ForegroundOwned
    46     };
    46     };
    47 
    47 
    48 public:
    48 public:
    49     CxuiApplicationFrameworkMonitor(CxuiApplication &application, CxeSettings& settings);
    49     CxuiApplicationFrameworkMonitor(CxuiApplication &application, CxeSettings &settings);
    50     virtual ~CxuiApplicationFrameworkMonitor();
    50     virtual ~CxuiApplicationFrameworkMonitor();
    51 
    51 
    52 public:
    52 public:
    53     ForegroundState foregroundState() const;
    53     ForegroundState foregroundState() const;
       
    54     bool isUsbMassMemoryModeActive() const;
    54 
    55 
    55 signals:
    56 signals:
    56     /*!
    57     /*!
    57     * Signal that foreground state has changed.
    58     * Signal that foreground state has changed.
    58     * @param t New foreground state.
    59     * @param t New foreground state.
    62     /*!
    63     /*!
    63     * Signal battery being empty. Device is ecpected to power down at any moment.
    64     * Signal battery being empty. Device is ecpected to power down at any moment.
    64     */
    65     */
    65     void batteryEmpty();
    66     void batteryEmpty();
    66 
    67 
       
    68     /*!
       
    69     * USB mass memory mode was just activated or deactivated.
       
    70     * @param active If true, mass memory mode was activated, and mass memory cannot be accessed.
       
    71     * Otherwise mass memory mode was deactivated, and mass memory is again accessible.
       
    72     */
       
    73     void usbMassMemoryModeToggled(bool active);
       
    74 
       
    75 
    67 private:
    76 private:
    68     CxuiApplicationFrameworkMonitorPrivate* p;
    77     CxuiApplicationFrameworkMonitorPrivate *p;
       
    78 
       
    79     friend class CxuiApplicationFrameworkMonitorPrivate;
    69 };
    80 };
    70 
    81 
    71 #endif // CXUIAPPLICATIONFRAMEWORKMONITOR_H
    82 #endif // CXUIAPPLICATIONFRAMEWORKMONITOR_H