diff -r d9aefe59d544 -r 3075d9b614e6 camerauis/cameraxui/cxui/src/cxuiapplicationframeworkmonitor.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camerauis/cameraxui/cxui/src/cxuiapplicationframeworkmonitor.cpp Thu May 13 21:30:19 2010 +0300 @@ -0,0 +1,60 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#include "cxutils.h" +#include "cxuiapplication.h" +#include "cxesettings.h" +#include "cxuiapplicationframeworkmonitor.h" +#include "cxuiapplicationframeworkmonitorprivate.h" + + +/*! +* Constructor +*/ +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())); + + + CX_DEBUG_EXIT_FUNCTION(); +} + +/*! +* Destructor +*/ +CxuiApplicationFrameworkMonitor::~CxuiApplicationFrameworkMonitor() +{ + CX_DEBUG_ENTER_FUNCTION(); + delete p; + CX_DEBUG_EXIT_FUNCTION(); +} + +/*! +* Current foreground owning state of this application. +* @return Foreground owning state. +*/ +CxuiApplicationFrameworkMonitor::ForegroundState CxuiApplicationFrameworkMonitor::foregroundState() const +{ + return p->foregroundState(); +} + +// end of file