camerauis/cameraxui/cxui/src/cxuiapplicationframeworkmonitor.cpp
changeset 28 3075d9b614e6
child 36 b12f3922a74f
equal deleted inserted replaced
19:d9aefe59d544 28:3075d9b614e6
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #include "cxutils.h"
       
    19 #include "cxuiapplication.h"
       
    20 #include "cxesettings.h"
       
    21 #include "cxuiapplicationframeworkmonitor.h"
       
    22 #include "cxuiapplicationframeworkmonitorprivate.h"
       
    23 
       
    24 
       
    25 /*!
       
    26 * Constructor
       
    27 */
       
    28 CxuiApplicationFrameworkMonitor::CxuiApplicationFrameworkMonitor(CxuiApplication &application, CxeSettings &settings)
       
    29 {
       
    30     CX_DEBUG_ENTER_FUNCTION();
       
    31     p = new CxuiApplicationFrameworkMonitorPrivate(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();
       
    39 }
       
    40 
       
    41 /*!
       
    42 * Destructor
       
    43 */
       
    44 CxuiApplicationFrameworkMonitor::~CxuiApplicationFrameworkMonitor()
       
    45 {
       
    46     CX_DEBUG_ENTER_FUNCTION();
       
    47     delete p;
       
    48     CX_DEBUG_EXIT_FUNCTION();
       
    49 }
       
    50 
       
    51 /*!
       
    52 * Current foreground owning state of this application.
       
    53 * @return Foreground owning state.
       
    54 */
       
    55 CxuiApplicationFrameworkMonitor::ForegroundState CxuiApplicationFrameworkMonitor::foregroundState() const
       
    56 {
       
    57     return p->foregroundState();
       
    58 }
       
    59 
       
    60 // end of file