00001
00002
00003
00004
00005
00006 #ifndef CALENDARAPIEXAMPLESEARCHCONTAINER_H
00007 #define CALENDARAPIEXAMPLESEARCHCONTAINER_H
00008
00009
00010 #include <coecntrl.h>
00011 #include <eiktxlbx.h>
00012 #include <eikprogi.h>
00013 #include "CalendarAPIexampleEngine.h"
00014 #include "CalendarAPIexampleSearchView.h"
00015 #include <aknlists.h>
00016 #include <eiklbo.h>
00017
00018
00019
00020
00021 class CCalendarAPIexampleSearchContainer : public CCoeControl,
00022 public MEikListBoxObserver
00023 {
00024 public:
00025
00029 static CCalendarAPIexampleSearchContainer* NewL(
00030 const TRect& aRect,
00031 CCalendarAPIexampleSearchView& aView);
00032
00036 virtual ~CCalendarAPIexampleSearchContainer();
00037
00038 private :
00039
00043 CCalendarAPIexampleSearchContainer(CCalendarAPIexampleSearchView& aView);
00044 void ConstructL(const TRect& aRect);
00045
00046 public:
00047
00054 TSearchType SearchType() const;
00055
00056 private:
00057
00058 void SizeChanged();
00059 void HandleResourceChange(TInt aType);
00060
00064 void Draw(const TRect& aRect) const;
00065
00069 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType );
00070
00074 void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);
00075
00076 private:
00077 CAknSingleStyleListBox* iSearchListBox;
00078 CCalendarAPIexampleSearchView& iSearchView;
00079 };
00080
00081 #endif