00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 #ifndef __SEARCH_VIEW_H__
00020 #define __SEARCH_VIEW_H__
00021 
00022 
00023 #include <aknview.h>
00024 
00025 
00026 
00027 class CSearchContainer;
00028 class CRecCountContainer;
00029 
00030 
00031 const TInt KRecCountHeight = 35;
00032 
00033 
00034 
00040 class CSearchView: public CAknView
00041     {
00042     public:   
00043 
00051         static CSearchView* NewL();
00052 
00060         static CSearchView* NewLC();
00061 
00066         virtual ~CSearchView();
00067 
00068     public: 
00069 
00074         TUid Id() const;
00075 
00081         void HandleCommandL( TInt aCommand );
00082         
00089         void HandleSizeChange( TInt aType );
00090 
00098         void DoActivateL( const TVwsViewId& aPrevViewId,
00099                           TUid aCustomMessageId,
00100                           const TDesC8& aCustomMessage );
00101 
00108         void DoDeactivate();              
00109 
00110     private: 
00111     
00117         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane *aMenuPane );   
00118     
00119         
00120     public: 
00121     
00122         void OpenDetailViewL();
00123         
00124         void OpenAboutViewL();
00125         
00126         TRect SearchRect();
00127         
00128         TRect RecCountRect();
00129         
00130     private:   
00131 
00136         CSearchView();
00137 
00142         void ConstructL();
00143         
00144     private: 
00145 
00150         CSearchContainer* iContainer;
00151 
00152         CRecCountContainer* iRecCountContainer;
00153         
00155         TUid iIdentifier;
00156     };
00157 
00158 
00159 #endif // __SEARCH_VIEW_H__
00160 
00161 
00162