examples/SFExamples/PIM/ContactWriteNewField/inc/s60_3rd/ContactWriteNewFieldMainView.h

00001 // 
00002 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
00003 // All rights reserved.
00004 // This component and the accompanying materials are made available
00005 // under the terms of the License "Eclipse Public License v1.0"
00006 // which accompanies this distribution, and is available
00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 // 
00009 // Initial Contributors:
00010 // Nokia Corporation - initial contribution.
00011 // 
00012 // Contributors:
00013 // 
00014 // Description:
00015 // 
00016 
00017 #ifndef __ContactWriteNewField_MAINVIEW_H__
00018 #define __ContactWriteNewField_MAINVIEW_H__
00019 
00020 // INCLUDE FILES
00021 #include <aknview.h>
00022 #include <akndef.h>
00023 
00024 class CEikEdwin;
00025 
00026 // CLASS DECLARATION
00027 
00028 class CContactWriteNewFieldMainView : public CCoeControl
00029         {
00030 public:
00031 
00032         static CContactWriteNewFieldMainView* NewL( const TRect& aRect );
00033         static CContactWriteNewFieldMainView* NewLC( const TRect& aRect );
00034         ~CContactWriteNewFieldMainView();
00035         
00036 public:
00037 
00038         void SetTextL(const TDesC& aText);
00039         
00040 private:
00041 
00042         void ConstructL( const TRect& aRect );
00043 
00044 private: // From CoeControl
00045 
00046         TInt CountComponentControls() const;
00047         CCoeControl* ComponentControl(TInt aIndex) const;
00048 
00049         void Draw(const TRect& aRect) const;
00050         void SizeChanged();
00051         
00052 private:
00053 
00054         CEikEdwin* iEikEdwin;
00055 
00056         };
00057 
00058 #endif // __ContactWriteNewField_MAINVIEW_H__
00059 
00060 // End of File

Generated by  doxygen 1.6.2