examples/sfexamples/Wikipedia/inc/SearchView.h

00001 // 
00002 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
00003 // All rights reserved.
00004 // This component and the accompanying materials are made available
00005 // under the terms of the License "Eclipse Public License v1.0"
00006 // which accompanies this distribution, and is available
00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 // 
00009 // Initial Contributors:
00010 // Nokia Corporation - initial contribution.
00011 // 
00012 // Contributors:
00013 // 
00014 // Description:
00015 // 
00016 
00017 
00018 
00019 #ifndef __SEARCH_VIEW_H__
00020 #define __SEARCH_VIEW_H__
00021 
00022 // INCLUDES
00023 #include <aknview.h>
00024 
00025 
00026 // FORWARD DECLARATIONS
00027 class CSearchContainer;
00028 class CRecCountContainer;
00029 
00030 // CONSTANTS
00031 const TInt KRecCountHeight = 35;
00032 
00033 // CLASS DECLARATION
00034 
00040 class CSearchView: public CAknView
00041     {
00042     public:   // Constructors and destructor
00043 
00051         static CSearchView* NewL();
00052 
00060         static CSearchView* NewLC();
00061 
00066         virtual ~CSearchView();
00067 
00068     public: // Functions from base classes from CAknView
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: // From MEikMenuObserver
00111     
00117         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane *aMenuPane );   
00118     
00119         
00120     public: // New functions
00121     
00122         void OpenDetailViewL();
00123         
00124         void OpenAboutViewL();
00125         
00126         TRect SearchRect();
00127         
00128         TRect RecCountRect();
00129         
00130     private:   // Constructors and destructor
00131 
00136         CSearchView();
00137 
00142         void ConstructL();
00143         
00144     private: // Data
00145 
00150         CSearchContainer* iContainer;
00151 
00152         CRecCountContainer* iRecCountContainer;
00153         
00155         TUid iIdentifier;
00156     };
00157 
00158 
00159 #endif // __SEARCH_VIEW_H__
00160 
00161 
00162 // End of File

Generated by  doxygen 1.6.2