camerauis/cameraxui/cxui/src/cxuiapplication.cpp
author hgs
Mon, 23 Aug 2010 13:50:05 +0300
changeset 52 7e18d488ac5f
parent 42 feebad15db8c
permissions -rw-r--r--
201033
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
3075d9b614e6 201017_1
hgs
parents:
diff changeset
     1
/*
3075d9b614e6 201017_1
hgs
parents:
diff changeset
     2
* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
3075d9b614e6 201017_1
hgs
parents:
diff changeset
     3
* All rights reserved.
3075d9b614e6 201017_1
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
3075d9b614e6 201017_1
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
3075d9b614e6 201017_1
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
3075d9b614e6 201017_1
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
3075d9b614e6 201017_1
hgs
parents:
diff changeset
     8
*
3075d9b614e6 201017_1
hgs
parents:
diff changeset
     9
* Initial Contributors:
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    11
*
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    12
* Contributors:
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    13
*
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    14
* Description:
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    15
*
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    16
*/
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    17
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    18
#include <QObject>
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    19
#include <QString>
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    20
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    21
#include "cxutils.h"
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    22
#include "cxuiapplication.h"
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    23
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    24
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    25
/*!
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    26
    \class CxuiApplication
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    27
    \brief CxuiApplication is a wrapper used for getting platform UI events.
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    28
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    29
    CxuiApplication is a wrapper used for getting platform UI events.
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    30
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    31
    Other classes may connect to CxuiApplication::symbianEvent signal, which is
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    32
    emitted whenever a QSymbianEvent is posted to application.
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    33
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    34
*/
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    35
CxuiApplication::CxuiApplication(int &argc, char *argv[])
52
hgs
parents: 42
diff changeset
    36
    : HbApplication(argc, argv, Hb::NoSplash)
28
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    37
{
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    38
    CX_DEBUG_IN_FUNCTION();
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    39
}
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    40
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    41
/*!
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    42
* Destructor
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    43
*/
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    44
CxuiApplication::~CxuiApplication()
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    45
{
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    46
    CX_DEBUG_IN_FUNCTION();
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    47
}
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    48
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    49
#if defined(Q_WS_S60)
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    50
/*!
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    51
* Event filter.
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    52
* Reimplemented from HbApplication.
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    53
* Provides a signal with the event for rest of camera ui to use.
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    54
* Event handling is then progressed to HbApplication to process.
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    55
*/
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    56
bool CxuiApplication::symbianEventFilter(const QSymbianEvent *e)
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    57
{
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    58
    emit symbianEvent(e);
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    59
    return HbApplication::symbianEventFilter(e);
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    60
}
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    61
#endif // Q_WS_S60
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    62
3075d9b614e6 201017_1
hgs
parents:
diff changeset
    63
// end of file