examples/ForumNokia/CalendarExample/inc/CalendarAPIexampleEntriesView.h

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 
00006 #ifndef CALENDARAPIEXAMPLEENTRIESVIEW_H
00007 #define CALENDARAPIEXAMPLEENTRIESVIEW_H
00008 
00009 // INCLUDE FILES
00010 #include <aknview.h>
00011 #include "CalendarAPIExampleEngine.h"
00012 
00013 // CONSTANTS
00014 const TUid KEntriesViewId = {3};
00015 
00016 // FORWARD DECLARATIONS
00017 class CCalendarAPIexampleEntriesContainer;
00018 //class CCalendarAPIexampleDocument;
00019 
00020 
00021 // CLASS DECLARATION
00022 
00023 class CCalendarAPIexampleEntriesView : public CAknView
00024     {
00025 public: // Contructors and destructor
00026 
00027     CCalendarAPIexampleEntriesView(
00028         MCalendarEngineCommandsInterface& aEngine);
00032     void ConstructL();
00033 
00037     virtual ~CCalendarAPIexampleEntriesView();
00038 
00042     static CCalendarAPIexampleEntriesView* NewL(MCalendarEngineCommandsInterface& aEngine);
00043     static CCalendarAPIexampleEntriesView* NewLC(MCalendarEngineCommandsInterface& aEngine);
00044 
00045 public: // From CAknView
00046 
00051     TUid Id() const;
00052 
00059     void HandleCommandL( TInt aCommand );
00060     
00061 private: // New functions
00062 
00068     void DoDeleteL();
00069     
00075     void DoEditL();
00076 
00077 private: // From CAknView
00078 
00086     void DoActivateL(   const TVwsViewId& aPrevViewId,
00087                         TUid aCustomMessageId,
00088                         const TDesC8& aCustomMessage );
00089 
00094     void DoDeactivate();
00095 
00096 private: // Data members
00097 
00098     CCalendarAPIexampleEntriesContainer* iContainer;
00099 
00100     //a reference to the engine through its public interface
00101     MCalendarEngineCommandsInterface& iEngine;
00102     };
00103 
00104 #endif

Generated by  doxygen 1.6.2