00001
00002
00003
00004
00005
00006 #ifndef CALENDARAPIEXAMPLEENTRYCONTAINER_H
00007 #define CALENDARAPIEXAMPLEENTRYCONTAINER_H
00008
00009
00010 #include <coecntrl.h>
00011 #include <calentry.h>
00012
00013
00014 class CCalendarAPIexampleEntryItemList;
00015 class CCalHelperEntry;
00016 class CAknView;
00017
00018
00019
00020 class CCalendarAPIexampleEntryContainer : public CCoeControl
00021 {
00022 public:
00023
00027 static CCalendarAPIexampleEntryContainer* NewL(
00028 const TRect& aRect,
00029 const TDesC& aName,
00030 const TDateTime& aDate,
00031 const TBool& aAlarm,
00032 const TDateTime& aAlarmTime,
00033 const TInt& aSync);
00034
00038 virtual ~CCalendarAPIexampleEntryContainer();
00039
00040 public :
00041
00047 TBool SaveL();
00048
00049 void GetValues(TDes& aName, TTime& aDate,
00050 TBool& aAlarm, TTime& aAlarmTime,
00051 TInt& aSync);
00052
00053 void SetValues( const TDesC& aName,
00054 const TDateTime& aDate,
00055 const TBool& aAlarm,
00056 const TDateTime& aAlarmTime,
00057 const TInt& aSync) ;
00058
00059
00060 private:
00061
00065 CCalendarAPIexampleEntryContainer();
00066 void ConstructL(const TRect& aRect,const TDesC& aName,
00067 const TDateTime& aDate,
00068 const TBool& aAlarm,
00069 const TDateTime& aAlarmTime,
00070 const TInt& aSync);
00071
00072 private:
00073
00074 void SizeChanged();
00075 void HandleResourceChange(TInt aType);
00076
00080 TInt CountComponentControls() const;
00081
00085 CCoeControl* ComponentControl(TInt aIndex) const;
00086
00090 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType );
00091
00092 private:
00093
00094 CCalendarAPIexampleEntryItemList* iItemList;
00095 };
00096
00097 #endif