filemanager/App/inc/Cfilemanagersearchresultsview.h
changeset 0 6a9f87576119
equal deleted inserted replaced
-1:000000000000 0:6a9f87576119
       
     1 /*
       
     2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0""
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  View for search results
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CFILEMANAGERSEARCHRESULTSVIEW_H
       
    20 #define CFILEMANAGERSEARCHRESULTSVIEW_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "CFileManagerViewBase.h"
       
    24 
       
    25 // CONSTANTS
       
    26 _LIT8( KFileManagerSearchViewRefreshMsg, "FmgrRefresh" ); 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CFileManagerSearchFileArray;
       
    30 class CAknNavigationControlContainer;
       
    31 class CAknNavigationDecorator;
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34  * Search results view of the application.
       
    35  */
       
    36 class CFileManagerSearchResultsView : public CFileManagerViewBase
       
    37     {
       
    38     public:  // Constructors and destructor        
       
    39         /**
       
    40          * Two-phased constructor.Leaves created view
       
    41 		 * to cleanup stack.
       
    42 		 *
       
    43 		 * @return Newly constructed view 
       
    44          */
       
    45 		static CFileManagerSearchResultsView* NewLC();
       
    46         
       
    47         /**
       
    48 		 * Destructor.
       
    49          */
       
    50         ~CFileManagerSearchResultsView();
       
    51 
       
    52 	public:
       
    53 
       
    54 		/**
       
    55 		 * Forwards DirectoryChange information to active view
       
    56          * @since 2.0
       
    57 		 */
       
    58 		void DirectoryChangedL();
       
    59 
       
    60 	private: // From CAknView
       
    61 		/**
       
    62 		 * @see CAknView
       
    63 		 */
       
    64 		void HandleCommandL( TInt aCommand );
       
    65 
       
    66 		/**
       
    67 		 * @see CAknView
       
    68 		 */
       
    69 		void DoActivateL(
       
    70 		    const TVwsViewId& aPrevViewId,
       
    71 		    TUid aCustomMessageId,
       
    72 		    const TDesC8& aCustomMessage );
       
    73 
       
    74 		/**
       
    75 		 * @see CAknView
       
    76 		 */
       
    77 		void DoDeactivate();
       
    78 
       
    79 		/**
       
    80 		 * @see CAknView
       
    81 		 */
       
    82 		TUid Id() const;
       
    83 
       
    84 	private: // From CFileManagerViewBase
       
    85 		/**
       
    86 		 * @see CFileManagerViewBase
       
    87 		 */
       
    88 		CFileManagerContainerBase* CreateContainerL();
       
    89 
       
    90 		/**
       
    91 		 * @see CFileManagerViewBase
       
    92 		 */
       
    93 		void UpdateCbaL();
       
    94 
       
    95     private:
       
    96         /**
       
    97          * Standard C++ constructor.
       
    98          */
       
    99         CFileManagerSearchResultsView();
       
   100 
       
   101 		/**
       
   102 		 * 2nd phase constructor.
       
   103 		 */
       
   104 		void ConstructL();
       
   105 
       
   106         void CmdBackL();
       
   107 
       
   108         void RefreshTitleL();
       
   109 
       
   110     private:    // Data
       
   111 		/// Ref: Navi pane of the view
       
   112 		CAknNavigationControlContainer* iNaviPane;
       
   113 
       
   114    		/// Ref: Pointer to empty navidecorator, needed for popping up correct decorator
       
   115 		CAknNavigationDecorator* iNaviDecorator;
       
   116 
       
   117     };
       
   118 
       
   119 #endif      // CFILEMANAGERSEARCHRESULTSVIEW_H   
       
   120             
       
   121 // End of File