commonuisupport/uikon/test/tpackage/TEMBED.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2005-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	__TEMBED_H__
       
    22 #define	__TEMBED_H__
       
    23 
       
    24 const TInt	KBufLen = 512;
       
    25 
       
    26 class CViewControl : public CCoeControl, public MCoeControlBrushContext
       
    27     {
       
    28 public:
       
    29     void ConstructL(const TRect& aRect);
       
    30 	~CViewControl();
       
    31 private: // framework
       
    32     void Draw(const TRect& aRect) const;
       
    33 	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
       
    34     void SizeChanged();
       
    35     void FocusChanged(TDrawNow aDrawNow);
       
    36 private:
       
    37     CFont* iFont;
       
    38     };
       
    39 
       
    40 class CDocument : public CEikDocument
       
    41 	{
       
    42 public:
       
    43 	CDocument(CEikApplication& aApp): CEikDocument(aApp) 
       
    44 	{ }
       
    45 private: // from CEikDocument
       
    46 	CEikAppUi* CreateAppUiL();
       
    47 private: // from CApaDocument
       
    48 public:
       
    49 	TBuf<KBufLen>	iBuf;
       
    50 	};
       
    51 
       
    52 #endif
       
    53 
       
    54