00001 /* 00002 * Copyright © 2008 Nokia Corporation. 00003 */ 00004 00005 00006 #ifndef CALENDARAPIEXAMPLEENTRYVIEW_H 00007 #define CALENDARAPIEXAMPLEENTRYVIEW_H 00008 00009 // INCLUDE FILES 00010 #include <aknview.h> 00011 00012 #include "CalendarAPIexampleEngine.h" 00013 00014 00015 // CONSTANTS 00016 const TUid KEntryViewId = {2}; 00017 00018 // FORWARD DECLARATIONS 00019 class CCalendarAPIexampleEntryContainer; 00020 class CCalendarAPIexampleDocument; 00021 00022 // CLASS DECLARATION 00023 00024 class CCalendarAPIexampleEntryView : public CAknView 00025 { 00026 public: // Constructors and destructor 00027 00031 static CCalendarAPIexampleEntryView* NewL(MCalendarEngineCommandsInterface& aEngine); 00032 static CCalendarAPIexampleEntryView* NewLC(MCalendarEngineCommandsInterface& aEngine); 00033 00034 CCalendarAPIexampleEntryView( 00035 MCalendarEngineCommandsInterface& aEngine); 00039 void ConstructL(); 00040 00044 virtual ~CCalendarAPIexampleEntryView(); 00045 00046 public: // From CAknView 00047 00052 TUid Id() const; 00053 00060 void HandleCommandL( TInt aCommand ); 00061 00062 private: // New functions 00063 00070 void DoSaveL(); 00071 00078 void DoDeleteL(); 00079 00080 private: // From CAknView 00081 00089 void DoActivateL( const TVwsViewId& aPrevViewId, 00090 TUid aCustomMessageId, 00091 const TDesC8& aCustomMessage ); 00092 00097 void DoDeactivate(); 00098 00099 private: // Data members 00100 00101 CCalendarAPIexampleEntryContainer* iContainer; 00102 //a reference to the engine through its public interface 00103 MCalendarEngineCommandsInterface& iEngine; 00104 TBool iModify; 00105 00106 }; 00107 #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.