logsui/logsapp/inc/logsmainwindow.h
author hgs
Mon, 23 Aug 2010 18:14:51 +0300
changeset 15 76d2cf7a585e
parent 8 6c9acdc6adc0
child 17 90fe74753f71
permissions -rw-r--r--
201033

/*
* 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:
*
*/
#ifndef LOGSMAINWINDOW_H
#define LOGSMAINWINDOW_H


#include <QObject>
#include <hbmainwindow.h>


class LogsMainWindow : public HbMainWindow
    {
    Q_OBJECT
    
public:
    
    LogsMainWindow();
    virtual ~LogsMainWindow();
    
    void sendAppToBackground();
    void bringAppToForeground();
    
    bool isForeground() const;
    
protected: // From HbMainWindow
    
    void keyPressEvent( QKeyEvent *event );
    bool eventFilter(QObject *obj, QEvent *event);
    
signals:
        
    void callKeyPressed();
    void localeChanged();
    void appGainedForeground();
    
private:
    
    bool mForeground;
    bool mLocaleChanged;
    
    friend class UT_LogsMainWindow;
    friend class UT_LogsServiceHandler;
    friend class UT_LogsViewManager;
    
    };


#endif //LOGSMAINWINDOW_H