filebrowser/inc/FBFileListView.h
branchRCL_3
changeset 22 fad26422216a
parent 0 d6fe6244b863
equal deleted inserted replaced
21:b3cee849fa46 22:fad26422216a
       
     1 /*
       
     2 * Copyright (c) 2009 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef FILEBROWSERMAINVIEW_H
       
    20 #define FILEBROWSERMAINVIEW_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknview.h>
       
    24 #include <remconcoreapitargetobserver.h>
       
    25 
       
    26 #include "FBStd.h"
       
    27 
       
    28 
       
    29 
       
    30 // CONSTANTS
       
    31 // UID of view
       
    32 const TUid KFileListViewUID = {1};
       
    33 
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 class CFileBrowserFileListContainer;
       
    37 class CFileBrowserModel;
       
    38 class CRemConInterfaceSelector;
       
    39 class CRemConCoreApiTarget;
       
    40 
       
    41 
       
    42 // CLASS DECLARATION
       
    43 
       
    44 /**
       
    45 *  CFileBrowserFileListView view class.
       
    46 * 
       
    47 */
       
    48 class CFileBrowserFileListView : public CAknView, public MRemConCoreApiTargetObserver
       
    49     {
       
    50     public: // Constructors and destructor
       
    51 
       
    52         /**
       
    53         * EPOC default constructor.
       
    54         */
       
    55         void ConstructL();
       
    56 
       
    57         /**
       
    58         * Destructor.
       
    59         */
       
    60         ~CFileBrowserFileListView();
       
    61 
       
    62     public: // Functions from base classes
       
    63         
       
    64         /**
       
    65         * From ?base_class ?member_description
       
    66         */
       
    67         TUid Id() const;
       
    68 
       
    69         /**
       
    70         * From ?base_class ?member_description
       
    71         */
       
    72         void HandleCommandL(TInt aCommand);
       
    73 
       
    74         /**
       
    75         * From ?base_class ?member_description
       
    76         */
       
    77         void HandleClientRectChange();
       
    78 
       
    79     private:
       
    80         // From MEikMenuObserver
       
    81         void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
    82 
       
    83     private:
       
    84         // From MRemConCoreApiTargetObserver
       
    85         void MrccatoCommand(TRemConCoreApiOperationId aOperationId, TRemConCoreApiButtonAction aButtonAct);
       
    86         
       
    87     private:
       
    88 
       
    89         /**
       
    90         * From AknView, ?member_description
       
    91         */
       
    92         void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
       
    93             const TDesC8& aCustomMessage);
       
    94 
       
    95         /**
       
    96         * From AknView, ?member_description
       
    97         */
       
    98         void DoDeactivate();
       
    99 
       
   100     private: // Data
       
   101         CFileBrowserFileListContainer*  iContainer;
       
   102         CFileBrowserModel*              iModel;
       
   103         CRemConInterfaceSelector*       iRemConSelector;
       
   104         CRemConCoreApiTarget*           iRemConTarget;        
       
   105     };
       
   106 
       
   107 #endif
       
   108 
       
   109 // End of File