examples/ForumNokia/CalendarExample/inc/CalendarAPIexampleSearchContainer.h

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 
00006 #ifndef CALENDARAPIEXAMPLESEARCHCONTAINER_H
00007 #define CALENDARAPIEXAMPLESEARCHCONTAINER_H
00008 
00009 // INCLUDE FILES
00010 #include <coecntrl.h>   //CCoeControl
00011 #include <eiktxlbx.h>   //CEikTextListBox
00012 #include <eikprogi.h>   //CEikProgressInfo
00013 #include "CalendarAPIexampleEngine.h"
00014 #include "CalendarAPIexampleSearchView.h"
00015 #include <aknlists.h> //CAknSingleStyleListBox
00016 #include <eiklbo.h>
00017 
00018 
00019 // CLASS DECLARATION
00020     
00021 class CCalendarAPIexampleSearchContainer :  public CCoeControl,
00022                                             public MEikListBoxObserver
00023     {
00024 public: // Constructors and destructor
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: // New functions
00047         
00054     TSearchType SearchType() const;
00055      
00056 private: // Functions from base classes
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: // Data members
00077     CAknSingleStyleListBox*                 iSearchListBox;
00078     CCalendarAPIexampleSearchView&          iSearchView;
00079     };
00080 
00081 #endif

Generated by  doxygen 1.6.2