classicui_pub/queries_api/tsrc/inc/testsdkqueriescontainer.h
branchRCL_3
changeset 20 d48ab3b357f1
parent 0 2f259fa3e83a
equal deleted inserted replaced
19:aecbbf00d063 20:d48ab3b357f1
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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 queries_api
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTSDKQUERIESCONTAINER_H
       
    19 #define TESTSDKQUERIESCONTAINER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <coecntrl.h>
       
    23 /**
       
    24  *  CTestSDKQueriesContainer
       
    25  * 
       
    26  */
       
    27 class CTestSDKQueriesContainer : public CCoeControl
       
    28     {
       
    29 public:// Constructors and destructor
       
    30 
       
    31     /**
       
    32      * Destructor.
       
    33      */
       
    34     ~CTestSDKQueriesContainer( );
       
    35 
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      */
       
    39     static CTestSDKQueriesContainer* NewL( 
       
    40         const TRect& aRect, const CCoeControl* aParent );
       
    41 
       
    42     /**
       
    43      * Two-phased constructor.
       
    44      */
       
    45     static CTestSDKQueriesContainer* NewLC( 
       
    46         const TRect& aRect, const CCoeControl* aParent );
       
    47 
       
    48 public:
       
    49     // from base class CCoeControl
       
    50     TInt CountComponentControls( ) const;
       
    51     
       
    52     /*
       
    53      * ComponentControl
       
    54      */
       
    55     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    56     
       
    57     /*
       
    58      * OfferKeyEventL
       
    59      */
       
    60     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    61     
       
    62     /*
       
    63      * HandleResourceChange
       
    64      */
       
    65     void HandleResourceChange( TInt aType );    
       
    66     
       
    67     /*
       
    68      * ActivateGc
       
    69      */
       
    70     void ActivateGc() const;
       
    71     
       
    72     /*
       
    73      * DeactivateGc
       
    74      */
       
    75     void DeactivateGc() const;
       
    76 
       
    77 protected:
       
    78     
       
    79     // from base class CCoeControl
       
    80     void SizeChanged( );
       
    81 
       
    82 private:
       
    83 
       
    84     /**
       
    85      * Constructor for performing 1st stage construction
       
    86      */
       
    87     CTestSDKQueriesContainer( );
       
    88 
       
    89     /**
       
    90      * EPOC default constructor for performing 2nd stage construction
       
    91      */
       
    92     void ConstructL( const TRect& aRect, const CCoeControl* aParent );
       
    93 
       
    94 private:
       
    95     // from base class CCoeControl
       
    96     void Draw( const TRect& aRect ) const;
       
    97 
       
    98 private://data
       
    99     enum TControls
       
   100         {        
       
   101         ELastControl
       
   102         };
       
   103     };
       
   104 
       
   105 #endif // TESTSDKQUERIESCONTAINER_H
       
   106 
       
   107 //End file
       
   108 
       
   109