logsui/logsengine/logssymbianos/inc/logsforegroundwatcher.h
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 #ifndef LOGSFOREGROUNDWATCHER_H
       
    18 #define LOGSFOREGROUNDWATCHER_H
       
    19 
       
    20 
       
    21 #include <QObject>
       
    22 #include <coemain.h>
       
    23 
       
    24 class LogsForegroundWatcher : public QObject, public MCoeForegroundObserver
       
    25 {
       
    26     Q_OBJECT
       
    27     
       
    28 public:
       
    29 
       
    30     LogsForegroundWatcher(QObject* parent = 0);
       
    31     virtual ~LogsForegroundWatcher(){}
       
    32     
       
    33 signals:
       
    34     void gainingForeground();
       
    35     void losingForeground();
       
    36 
       
    37 public: // from MCoeForegroundObserver
       
    38     void HandleGainingForeground();
       
    39     void HandleLosingForeground();
       
    40     
       
    41 };
       
    42 
       
    43 #endif //LOGSFOREGROUNDWATCHER_H