appfw/apparchitecture/tef/ticoncaptionoverride.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent - Internal Symbian test code
       
    19 */
       
    20 
       
    21 #ifndef __TICONCAPTIONOVERRIDE_H__
       
    22 #define __TICONCAPTIONOVERRIDE_H__
       
    23 
       
    24 #include <coecntrl.h>
       
    25 #include <eikenv.h>
       
    26 #include <eikappui.h>
       
    27 #include <eikapp.h>
       
    28 #include <eikdoc.h>
       
    29 #include <techview/eikon.hrh>
       
    30 #include <w32std.h>
       
    31 
       
    32 const TUid KUidTestIconCapOverride = {0x2001B674};
       
    33 
       
    34 class CIconCaptionOverrideView : public CCoeControl
       
    35     {
       
    36     public: // New methods
       
    37         static CIconCaptionOverrideView* NewL( const TRect& aRect );
       
    38         static CIconCaptionOverrideView* NewLC( const TRect& aRect );
       
    39         virtual ~CIconCaptionOverrideView();
       
    40 
       
    41     public:  // Functions from base classes
       
    42         void Draw( const TRect& aRect ) const;
       
    43         virtual void SizeChanged();
       
    44 
       
    45     private: // Constructors
       
    46         void ConstructL(const TRect& aRect);
       
    47         CIconCaptionOverrideView();
       
    48     };
       
    49 
       
    50 class CIconCaptionOverrideAppUi : public CEikAppUi
       
    51     {
       
    52     public: // Constructors and destructor
       
    53         void ConstructL();
       
    54         CIconCaptionOverrideAppUi();
       
    55         virtual ~CIconCaptionOverrideAppUi();
       
    56 
       
    57     private:  // Functions from base classes
       
    58         void HandleCommandL( TInt aCommand );
       
    59 		//void HandleStatusPaneSizeChange();
       
    60         
       
    61     private: // Data
       
    62         CIconCaptionOverrideView* iAppView;
       
    63     };
       
    64 
       
    65 class CIconCaptionOverrideDocument : public CEikDocument
       
    66     {
       
    67     public: // Constructors and destructor
       
    68 
       
    69         static CIconCaptionOverrideDocument* NewL( CEikApplication& aApp );
       
    70         static CIconCaptionOverrideDocument* NewLC( CEikApplication& aApp );
       
    71         virtual ~CIconCaptionOverrideDocument();
       
    72 
       
    73     public: // Functions from base classes
       
    74         CEikAppUi* CreateAppUiL();
       
    75 
       
    76     private: // Constructors
       
    77         void ConstructL();
       
    78         CIconCaptionOverrideDocument( CEikApplication& aApp );
       
    79     };
       
    80 
       
    81 class CIconCaptionOverrideApplication : public CEikApplication
       
    82     {
       
    83     public: // Functions from base classes
       
    84         TUid AppDllUid() const;
       
    85 
       
    86     protected: // Functions from base classes
       
    87         CApaDocument* CreateDocumentL();
       
    88     };
       
    89 
       
    90 #endif // __TICONCAPTIONOVERRIDE_H__
       
    91 
       
    92