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