classicui_pub/searchfield_api/tsrc/inc/testsdksfview.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 01:00:49 +0200
changeset 0 2f259fa3e83a
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* Copyright (c) 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:  Test for Grids control API.
*
*/


#ifndef C_TESTSDKSFVIEW_H
#define C_TESTSDKSFVIEW_H

#include <aknview.h>

const TUid KBCTestGridsViewId = { 1 };

class CTestSDKSearchFieldContainer;

/**
 *  Application UI class
 */
class CTestSDKSFView : public CAknView
    {
public: // Constructors and destructor

    /**
     * Symbian static 2nd constructor
     */
    static CTestSDKSFView* NewL();
    
    /**
     * dtor
     */
    virtual ~CTestSDKSFView();

    /**
     * Return view Id.
     */
    TUid Id() const;
    
    /**
    * From CAknView, HandleCommandL.
    * @param aCommand Command to be handled.
    */
    void HandleCommandL( TInt aCommand );
    
protected: // from CAknView
    
    /**
     * When view is activated, do something
     */
    void DoActivateL( const TVwsViewId&, TUid, const TDesC8& );
    
    /**
     * When view is deactivated, do something
     */
    void DoDeactivate();

private: // constructor

    /**
     * C++ default constructor
     */
    CTestSDKSFView();

    /**
     * symbian 2nd ctor
     */
    void ConstructL();

private: // data
    /**
     * pointor to the container.
     * own
     */
    CTestSDKSearchFieldContainer* iContainer;
    };

#endif /*C_TESTSDKSFVIEW_H*/