ipsservices/ipssossettings/tsrc/IpsSosTestApp/inc/TESTAPPContainer.h
changeset 2 5253a20d2a1e
child 3 a4d6f1ea0416
equal deleted inserted replaced
1:12c456ceeff2 2:5253a20d2a1e
       
     1 /*
       
     2 * ============================================================================
       
     3 *  Name     : CTestAppContainer from TestAppContainer.h
       
     4 *  Part of  : TestApp
       
     5 * ============================================================================
       
     6 */
       
     7 
       
     8 #ifndef TestAppCONTAINER_H
       
     9 #define TestAppCONTAINER_H
       
    10 
       
    11 // INCLUDES
       
    12 #include <coecntrl.h>
       
    13 #include <badesca.h>
       
    14    
       
    15 // FORWARD DECLARATIONS
       
    16 class CEikTextListBox;
       
    17 class MAknsSkinInstance;
       
    18 class CAknsBasicBackgroundControlContext;
       
    19 
       
    20 
       
    21 // CLASS DECLARATION
       
    22 
       
    23 /**
       
    24 *  CTestAppContainer  container control class.
       
    25 *  
       
    26 */
       
    27 class CTestAppContainer : public CCoeControl, MCoeControlObserver
       
    28     {
       
    29     public: // Constructors and destructor
       
    30         
       
    31         /**
       
    32         * EPOC default constructor.
       
    33         * @param aRect Frame rectangle for container.
       
    34         */
       
    35         void ConstructL(const TRect& aRect);
       
    36 
       
    37         /**
       
    38         * Destructor.
       
    39         */
       
    40         ~CTestAppContainer();
       
    41 
       
    42     public: // New functions
       
    43         void AppendDataL( TDesC& buf );
       
    44     public: // Functions from base classes
       
    45 
       
    46     private: // Functions from base classes
       
    47         void SizeChanged();
       
    48         TInt CountComponentControls() const;
       
    49         CCoeControl* ComponentControl(TInt aIndex) const;
       
    50         void Draw(const TRect& aRect) const;
       
    51         void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
       
    52         
       
    53     private: //data
       
    54         CEikTextListBox* iListBox;
       
    55         CDesCArrayFlat* iItems;  
       
    56         
       
    57         /// Ref: A pointer MAknsSkinInstance
       
    58         MAknsSkinInstance* iSkinInstance;
       
    59 
       
    60         /// Own: A pointer CAknBasicBackgroundControlContext
       
    61 		CAknsBasicBackgroundControlContext* iBackgroundSkinContext;
       
    62     };
       
    63 
       
    64 #endif
       
    65 
       
    66 // End of File