examples/SFExamples/symbian_os_communications_programming_book_v2/chapter9/SendWorkBench/SendWorkbenchS60/inc/SendWorkbenchAppView.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 
00018 #ifndef __SENDWORKBENCHAPPVIEW_h__
00019 #define __SENDWORKBENCHAPPVIEW_h__
00020 
00021 // INCLUDES
00022 #include <coecntrl.h>
00023 #include <eiklbo.h> 
00024 #include "SendWorkBenchTypes.h"
00025 #include "SendWorkbenchAppUi.h"
00026 class CAknSingleStyleListBox;
00027 class CEikLabel;
00028 
00029 // CLASS DECLARATION
00030 class CSendWorkbenchAppView : public CCoeControl, public MEikListBoxObserver
00031     {
00032 public: // New methods
00033 
00041         static CSendWorkbenchAppView* NewL( const TRect& aRect, CSendWorkbenchAppUi& aAppUI );
00042 
00051         static CSendWorkbenchAppView* NewLC( const TRect& aRect, CSendWorkbenchAppUi& aAppUI );
00052 
00057         virtual ~CSendWorkbenchAppView();
00058 
00059 public:  // Functions from base classes
00060 
00066         void Draw( const TRect& aRect ) const;
00067 
00072         virtual void SizeChanged();
00073         
00074         virtual TInt CountComponentControls() const;
00075         virtual CCoeControl *ComponentControl(TInt aIndex) const;
00076         
00077         virtual TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
00078 
00079         SendTypes::TSendContentType CurrentSelection() const;
00080 
00081         void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);          
00082 private: // Constructors
00083 
00091         void ConstructL(const TRect& aRect);
00092 
00097         CSendWorkbenchAppView(CSendWorkbenchAppUi& aAppUI);
00098         
00099         CSendWorkbenchAppUi& iAppUI;
00100         CAknSingleStyleListBox* iListBox;
00101         CEikLabel* iLabel;          // example label        
00102     };
00103 
00104 #endif // __SENDWORKBENCHAPPVIEW_h__
00105 
00106 // End of File

Generated by  doxygen 1.6.2