00001 /* 00002 * Copyright © 2008 Nokia Corporation. 00003 */ 00004 00005 00006 #ifndef CALENDARAPIEXAMPLEENTRYCONTAINER_H 00007 #define CALENDARAPIEXAMPLEENTRYCONTAINER_H 00008 00009 // INCLUDE FILES 00010 #include <coecntrl.h> //CCoeControl 00011 #include <calentry.h> //CCalEntry 00012 00013 // FORWARD DECLARATIONS 00014 class CCalendarAPIexampleEntryItemList; 00015 class CCalHelperEntry; 00016 class CAknView; 00017 00018 // CLASS DECLARATION 00019 00020 class CCalendarAPIexampleEntryContainer : public CCoeControl 00021 { 00022 public: // Constructors and destructor 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 : // New functions 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: // Basic two-phase Symbian OS constructors 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: // Functions from base classes 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: // Data members 00093 00094 CCalendarAPIexampleEntryItemList* iItemList; 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.