00001 /* 00002 * Copyright © 2008 Nokia Corporation. 00003 */ 00004 00005 00006 #ifndef CALENDARAPIEXAMPLEENTRIESCONTAINER_H 00007 #define CALENDARAPIEXAMPLEENTRIESCONTAINER_H 00008 00009 // INCLUDE FILES 00010 #include <coecntrl.h> //CCoeControl 00011 #include <eiktxlbx.h> //CEikTextListBox 00012 #include "CalendarAPIexampleEntriesView.h" 00013 #include <aknlists.h> //CAknDoubleNumberStyleListBox 00014 00015 #include "CalendarAPIexampleEngine.h" 00016 #include "CalendarAPIexampleEntriesView.h" 00017 00018 // CLASS DECLARATION 00019 00020 class CCalendarAPIexampleEntriesContainer : public CCoeControl, 00021 public MEikListBoxObserver 00022 { 00023 public: // Constructors and destructor 00024 00028 static CCalendarAPIexampleEntriesContainer* NewL( 00029 const TRect& aRect, 00030 CCalendarAPIexampleEntriesView& aView, 00031 MCalendarEngineCommandsInterface& aEngine); 00035 ~CCalendarAPIexampleEntriesContainer(); 00036 00037 private: 00038 00042 CCalendarAPIexampleEntriesContainer(CCalendarAPIexampleEntriesView& aView, 00043 MCalendarEngineCommandsInterface& aEngine); 00044 void ConstructL(const TRect& aRect); 00045 00046 public: // New functions 00047 00053 TInt CurrentItemIndex() const; 00054 00060 void PopulateListBoxL(); 00061 00062 private: // Functions from base classes 00063 00067 void SizeChanged(); 00068 00069 void HandleResourceChange(TInt aType); 00070 00074 TInt CountComponentControls() const; 00075 00079 CCoeControl* ComponentControl(TInt aIndex) const; 00080 00084 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType ); 00085 00089 void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType); 00090 00091 private: // Data members 00092 CAknDoubleNumberStyleListBox* iEntryListBox; 00093 CCalendarAPIexampleEntriesView& iEntriesView; 00094 MCalendarEngineCommandsInterface& iEngine; 00095 }; 00096 00097 #endif
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.