logsui/logsapp/tsrc/ut_logsapp/logsengine_stub/logsforegroundwatcher.cpp
branchGCC_SURGE
changeset 12 d56c5d6796ca
parent 5 8d8fb0db2489
parent 11 64a47b97e1e1
equal deleted inserted replaced
5:8d8fb0db2489 12:d56c5d6796ca
     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 "logsforegroundwatcher.h"
       
    19 
       
    20 // -----------------------------------------------------------------------------
       
    21 // Currently no other way to monitor app foreground/background switches.
       
    22 // HbForegroundWatcher might become public at some point which could be then
       
    23 // used instead.
       
    24 // -----------------------------------------------------------------------------
       
    25 //
       
    26 LogsForegroundWatcher::LogsForegroundWatcher(QObject* parent) : QObject(parent)
       
    27 {
       
    28 }
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 void LogsForegroundWatcher::HandleGainingForeground()
       
    35 {
       
    36     emit gainingForeground();
       
    37 }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 void LogsForegroundWatcher::HandleLosingForeground()
       
    44 {
       
    45     emit losingForeground();
       
    46 }
       
    47