camerauis/cameraxui/cxui/src/cxuiapplication.cpp
branchRCL_3
changeset 54 bac7acad7cb3
parent 53 61bc0f252b2b
child 57 2c87b2808fd7
equal deleted inserted replaced
53:61bc0f252b2b 54:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2009-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:
       
    15 *
       
    16 */
       
    17 
       
    18 #include <QObject>
       
    19 #include <QString>
       
    20 
       
    21 #include "cxutils.h"
       
    22 #include "cxuiapplication.h"
       
    23 
       
    24 
       
    25 /*!
       
    26     \class CxuiApplication
       
    27     \brief CxuiApplication is a wrapper used for getting platform UI events.
       
    28 
       
    29     CxuiApplication is a wrapper used for getting platform UI events.
       
    30 
       
    31     Other classes may connect to CxuiApplication::symbianEvent signal, which is
       
    32     emitted whenever a QSymbianEvent is posted to application.
       
    33 
       
    34 */
       
    35 CxuiApplication::CxuiApplication(int &argc, char *argv[])
       
    36     : HbApplication(argc, argv, Hb::NoSplash)
       
    37 {
       
    38     CX_DEBUG_IN_FUNCTION();
       
    39 }
       
    40 
       
    41 /*!
       
    42 * Destructor
       
    43 */
       
    44 CxuiApplication::~CxuiApplication()
       
    45 {
       
    46     CX_DEBUG_IN_FUNCTION();
       
    47 }
       
    48 
       
    49 #if defined(Q_WS_S60)
       
    50 /*!
       
    51 * Event filter.
       
    52 * Reimplemented from HbApplication.
       
    53 * Provides a signal with the event for rest of camera ui to use.
       
    54 * Event handling is then progressed to HbApplication to process.
       
    55 */
       
    56 bool CxuiApplication::symbianEventFilter(const QSymbianEvent *e)
       
    57 {
       
    58     emit symbianEvent(e);
       
    59     return HbApplication::symbianEventFilter(e);
       
    60 }
       
    61 #endif // Q_WS_S60
       
    62 
       
    63 // end of file