examples/ForumNokia/CalendarExample/inc/CalendarAPIexampleSearchView.h

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 
00006 #ifndef CALENDARAPIEXAMPLESEARCHVIEW_H
00007 #define CALENDARAPIEXAMPLESEARCHVIEW_H
00008 
00009 // INCLUDE FILES
00010 #include <aknview.h>
00011 #include "CalendarAPIexampleEngine.h"
00012 // CONSTANTS
00013 const TUid KSearchViewId = {1};
00014 
00015 // FORWARD DECLARATIONS
00016 class CCalendarAPIexampleSearchContainer;
00017 //class CCalendarAPIexampleDocument;
00018 
00019 
00020 // CLASS DECLARATION
00021 
00022 class CCalendarAPIexampleSearchView : public CAknView
00023     {
00024 public: // Constructors and destructor
00025 
00029     static CCalendarAPIexampleSearchView* NewL(MCalendarEngineCommandsInterface& aEngine);
00030     static CCalendarAPIexampleSearchView* NewLC(MCalendarEngineCommandsInterface& aEngine);
00031 
00032     CCalendarAPIexampleSearchView(MCalendarEngineCommandsInterface& aEngine);
00036     void ConstructL();
00037 
00041     virtual ~CCalendarAPIexampleSearchView();
00042 
00043 public: // From CAknView
00044 
00049     TUid Id() const;
00050 
00057     void HandleCommandL( TInt aCommand );
00058    
00059 private: // New functions
00060 
00067     void DoSearchL();
00068     
00074     void DoAddL();
00075 
00076 private: // From CAknView
00077 
00085     void DoActivateL(   const TVwsViewId& aPrevViewId,
00086                         TUid aCustomMessageId,
00087                         const TDesC8& aCustomMessage );
00088 
00093     void DoDeactivate();
00094     
00095  
00096 
00097 private: // Data members
00098 
00099     CCalendarAPIexampleSearchContainer* iContainer;
00100     //a reference to the engine through its public interface
00101     MCalendarEngineCommandsInterface& iEngine;
00102  
00103     
00104     };
00105 #endif

Generated by  doxygen 1.6.2