searchui/searchapp/srchuiapp/src/srchuiappui.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 21:17:03 +0300
branchRCL_3
changeset 31 97232defd20e
parent 0 f979ecb2b13e
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2006-2006 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:     Responsible for starting the search application. It is used to create UI for the search application.
* It contains the main application logic and implementation of user commands.
*
*/






#include <avkon.hrh>
#include <aknnotewrappers.h> 

#include "srchuiappappui.h"

#include "srchuiapp.hrh"
#include "srchuigeneral.h"

// ConstructL is called by the application framework
void CSrchUiAppAppUi::ConstructL()
    {
    BaseConstructL( EAknEnableSkin );
    
    //Construct the Manager
    iGenSrchUi = CSrchUiGeneral::NewL(this);
    }



CSrchUiAppAppUi::~CSrchUiAppAppUi()
    {
    
    delete iGenSrchUi;
    }

// handle any menu commands
void CSrchUiAppAppUi::HandleCommandL(TInt aCommand)
    {
    switch(aCommand)
        {
        case EEikCmdExit:
             Exit();
             break; 
        case EAknSoftkeyExit:
             Exit();
             break;

        case ESearchApplicationCommand1:
            {
            _LIT(message,"Hello!");
            CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
            informationNote->ExecuteLD(message);
            }
            break;

        default:
            Panic(ESearchApplicationBasicUi);
            break;
        }
    }