phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuiqtviewadapter/phonevisibilityhandler_stub.cpp
changeset 45 6b911d05207e
child 46 bc5a64e5bc3c
equal deleted inserted replaced
37:ba76fc04e6c2 45:6b911d05207e
       
     1 /*
       
     2 * Copyright (c) 2010 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: Adjusts visibility of Phone app in device lock situations.
       
    15 *
       
    16 */
       
    17 #include <xqcallinfo.h>
       
    18 #include <MediatorDomainUIDs.h>
       
    19 #include <callinformation.h>
       
    20 #include <eikenv.h>
       
    21 #include <xqserviceutil.h>
       
    22 #include <devicelockaccessapi.h>
       
    23 #include <qdebug.h>
       
    24 #include <telinformationpskeys.h>
       
    25 #include <coreapplicationuisdomainpskeys.h>
       
    26 #include <apgtask.h>
       
    27 #include "phonevisibilityhandler.h"
       
    28 #include "cphonepubsubproxy.h"
       
    29 #include "phoneconstants.h"
       
    30 #include "phoneuiqtviewif.h"
       
    31 
       
    32 bool m_bringToForegroundCalled;
       
    33 bool m_sendToBackgroundCalled;
       
    34 bool m_ordinalPositionCalled;
       
    35 
       
    36 /*!
       
    37     PhoneVisibilityHandler::PhoneVisibilityHandler.
       
    38  */
       
    39 PhoneVisibilityHandler::PhoneVisibilityHandler(PhoneUIQtViewIF &view, QObject *parent)
       
    40     : 
       
    41     QObject(parent),
       
    42     m_view(view),
       
    43     m_eikonEnv(0),
       
    44     m_carModeEnabled(false),
       
    45     m_hideDeviceDialogs(false)
       
    46 {
       
    47 
       
    48 }
       
    49 
       
    50 
       
    51 /*!
       
    52     PhoneVisibilityHandler::~PhoneVisibilityHandler.
       
    53  */
       
    54 PhoneVisibilityHandler::~PhoneVisibilityHandler()
       
    55 {
       
    56 
       
    57 }
       
    58 
       
    59 /*!
       
    60     PhoneVisibilityHandler::bringToForeground.
       
    61  */
       
    62 void PhoneVisibilityHandler::bringToForeground()
       
    63 {
       
    64     m_bringToForegroundCalled = true;
       
    65 }
       
    66 
       
    67 /*!
       
    68     PhoneVisibilityHandler::sendToBackground.
       
    69  */
       
    70 void PhoneVisibilityHandler::sendToBackground(bool homeScreenForeground)
       
    71 {
       
    72     m_sendToBackgroundCalled = true;
       
    73 }
       
    74 
       
    75 /*!
       
    76     PhoneVisibilityHandler::hideDeviceDialogs.
       
    77  */
       
    78 void PhoneVisibilityHandler::hideDeviceDialogs(bool hide)
       
    79 {
       
    80     Q_UNUSED(hide)
       
    81 }
       
    82 
       
    83 /*!
       
    84     PhoneVisibilityHandler::ordinalPosition.
       
    85  */
       
    86 int PhoneVisibilityHandler::ordinalPosition()
       
    87 {
       
    88     m_ordinalPositionCalled = true;
       
    89     return -1;
       
    90 }
       
    91 
       
    92 /*!
       
    93     PhoneVisibilityHandler::HandlePropertyChangedL.
       
    94  */
       
    95 void PhoneVisibilityHandler::HandlePropertyChangedL(const TUid& aCategory, 
       
    96     const TUint aKey, const TInt aValue)
       
    97 {
       
    98     Q_UNUSED(aCategory)
       
    99     Q_UNUSED(aKey)
       
   100     Q_UNUSED(aValue)
       
   101 }
       
   102 
       
   103 /*!
       
   104     PhoneVisibilityHandler::adjustVisibility.
       
   105  */
       
   106 void PhoneVisibilityHandler::adjustVisibility(AdjustAction action)
       
   107 {
       
   108     Q_UNUSED(action)
       
   109 }