classicui_pub/searchfield_api/tsrc/inc/testsdksfview.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Test for Grids control API.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_TESTSDKSFVIEW_H
       
    20 #define C_TESTSDKSFVIEW_H
       
    21 
       
    22 #include <aknview.h>
       
    23 
       
    24 const TUid KBCTestGridsViewId = { 1 };
       
    25 
       
    26 class CTestSDKSearchFieldContainer;
       
    27 
       
    28 /**
       
    29  *  Application UI class
       
    30  */
       
    31 class CTestSDKSFView : public CAknView
       
    32     {
       
    33 public: // Constructors and destructor
       
    34 
       
    35     /**
       
    36      * Symbian static 2nd constructor
       
    37      */
       
    38     static CTestSDKSFView* NewL();
       
    39     
       
    40     /**
       
    41      * dtor
       
    42      */
       
    43     virtual ~CTestSDKSFView();
       
    44 
       
    45     /**
       
    46      * Return view Id.
       
    47      */
       
    48     TUid Id() const;
       
    49     
       
    50     /**
       
    51     * From CAknView, HandleCommandL.
       
    52     * @param aCommand Command to be handled.
       
    53     */
       
    54     void HandleCommandL( TInt aCommand );
       
    55     
       
    56 protected: // from CAknView
       
    57     
       
    58     /**
       
    59      * When view is activated, do something
       
    60      */
       
    61     void DoActivateL( const TVwsViewId&, TUid, const TDesC8& );
       
    62     
       
    63     /**
       
    64      * When view is deactivated, do something
       
    65      */
       
    66     void DoDeactivate();
       
    67 
       
    68 private: // constructor
       
    69 
       
    70     /**
       
    71      * C++ default constructor
       
    72      */
       
    73     CTestSDKSFView();
       
    74 
       
    75     /**
       
    76      * symbian 2nd ctor
       
    77      */
       
    78     void ConstructL();
       
    79 
       
    80 private: // data
       
    81     /**
       
    82      * pointor to the container.
       
    83      * own
       
    84      */
       
    85     CTestSDKSearchFieldContainer* iContainer;
       
    86     };
       
    87 
       
    88 #endif /*C_TESTSDKSFVIEW_H*/
       
    89