diff -r cfea66083b62 -r baacf668fe89 tsrc/stubs/phoneuiqtviewadapter/phonevisibilityhandler_stub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/stubs/phoneuiqtviewadapter/phonevisibilityhandler_stub.cpp Fri Oct 15 12:58:46 2010 +0300 @@ -0,0 +1,133 @@ +/* +* Copyright (c) 2010 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: Adjusts visibility of Phone app in device lock situations. +* +*/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "phonevisibilityhandler.h" +#include "cphonepubsubproxy.h" +#include "phoneconstants.h" +#include "phoneuiqtviewif.h" + +bool m_bringToForegroundCalled; +bool m_bringVideoCallToForegroundCalled; +bool m_sendToBackgroundCalled; +bool m_ordinalPositionCalled; +bool m_phoneVisibleReturnValue; + +/*! + PhoneVisibilityHandler::PhoneVisibilityHandler. + */ +PhoneVisibilityHandler::PhoneVisibilityHandler(PhoneUIQtViewIF &view, QObject *parent) + : + QObject(parent), + m_view(view), + m_eikonEnv(0), + m_carModeEnabled(false), + m_hideDeviceDialogs(false) +{ + m_phoneVisibleReturnValue = false; +} + + +/*! + PhoneVisibilityHandler::~PhoneVisibilityHandler. + */ +PhoneVisibilityHandler::~PhoneVisibilityHandler() +{ + +} + +/*! + PhoneVisibilityHandler::bringToForeground. + */ +void PhoneVisibilityHandler::bringToForeground() +{ + m_bringToForegroundCalled = true; +} + +/*! + PhoneVisibilityHandler::bringVideoCallToForeground. + */ +void PhoneVisibilityHandler::bringVideoCallToForeground() +{ + m_bringVideoCallToForegroundCalled = true; +} + +/*! + PhoneVisibilityHandler::sendToBackground. + */ +void PhoneVisibilityHandler::sendToBackground() +{ + m_sendToBackgroundCalled = true; +} + +/*! + PhoneVisibilityHandler::hideDeviceDialogs. + */ +void PhoneVisibilityHandler::hideDeviceDialogs(bool hide) +{ + Q_UNUSED(hide) +} + +/*! + PhoneVisibilityHandler::ordinalPosition. + */ +bool PhoneVisibilityHandler::phoneVisible() const +{ + m_ordinalPositionCalled = true; + return m_phoneVisibleReturnValue; +} + +void PhoneVisibilityHandler::windowVisibilityChange(bool isVisible) +{ + +} + +/*! + PhoneVisibilityHandler::HandlePropertyChangedL. + */ +void PhoneVisibilityHandler::HandlePropertyChangedL(const TUid& aCategory, + const TUint aKey, const TInt aValue) +{ + Q_UNUSED(aCategory) + Q_UNUSED(aKey) + Q_UNUSED(aValue) +} + +/*! + PhoneVisibilityHandler::adjustVisibility. + */ +void PhoneVisibilityHandler::adjustVisibility(AdjustAction action) +{ + Q_UNUSED(action) +} + +/*! + PhoneVisibilityHandler::carModeChanged. + */ +void PhoneVisibilityHandler::carModeChanged() +{ + +} +