phoneapp/phoneui2/inc/phoneapplication.h
changeset 74 d1c62c765e48
equal deleted inserted replaced
65:2a5d4ab426d3 74:d1c62c765e48
       
     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:  Phone application 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PHONEAPPLICATION_H_
       
    19 #define PHONEAPPLICATION_H_
       
    20 
       
    21 #include <HbApplication>
       
    22 
       
    23 class QSymbianEvent;
       
    24 
       
    25 class PhoneApplication : public HbApplication
       
    26 {
       
    27     Q_OBJECT
       
    28 public:
       
    29     PhoneApplication(
       
    30             int &argc, 
       
    31             char *argv[], 
       
    32             Hb::ApplicationFlags flags = Hb::DefaultApplicationFlags);
       
    33    
       
    34 
       
    35 signals:
       
    36     void focusLost();    
       
    37     void focusGained();
       
    38     
       
    39 protected:
       
    40 #if defined(Q_OS_SYMBIAN)
       
    41     // This is required because focusInEvent(),
       
    42     // focusOutEvent(), or hideEvent() are not called
       
    43     // on the Symbian platform when the foreground application changes. 
       
    44     bool symbianEventFilter(const QSymbianEvent *event);
       
    45 #endif
       
    46 
       
    47 };
       
    48 #endif /* PHONEAPPLICATION_H_ */