memspyui/include/MemSpyViewChunkList.h
changeset 0 d6fe6244b863
equal deleted inserted replaced
-1:000000000000 0:d6fe6244b863
       
     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 #ifndef MEMSPYVIEWCHUNKLIST_H
       
    19 #define MEMSPYVIEWCHUNKLIST_H
       
    20 
       
    21 // System includes
       
    22 #include <coecntrl.h>
       
    23 #include <aknlists.h>
       
    24 
       
    25 // User includes
       
    26 #include "MemSpyViewBase.h"
       
    27 
       
    28 // Classes referenced
       
    29 class CMemSpyEngineChunkList;
       
    30 class CMemSpyEngineChunkEntry;
       
    31 
       
    32 
       
    33 
       
    34 
       
    35 class CMemSpyViewChunkBase : public CMemSpyViewBase
       
    36     {
       
    37 public:
       
    38     CMemSpyViewChunkBase( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyEngineChunkList* aList );
       
    39     ~CMemSpyViewChunkBase();
       
    40 
       
    41 public: // From CMemSpyViewBase
       
    42     TBool HandleCommandL( TInt aCommand );
       
    43 
       
    44 public: // Menu framework
       
    45     TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_CHUNK_LIST; }
       
    46     TInt MenuCascadeCommandId() const { return EMemSpyCmdChunk; }
       
    47 
       
    48 protected: // Command handlers
       
    49     void OnCmdListingL();
       
    50 
       
    51 protected: // Data members
       
    52     CMemSpyEngineChunkList* iList;
       
    53     };
       
    54 
       
    55 
       
    56 
       
    57 
       
    58 class CMemSpyViewChunkList : public CMemSpyViewChunkBase
       
    59     {
       
    60 public:
       
    61     CMemSpyViewChunkList( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver );
       
    62     CMemSpyViewChunkList( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyEngineChunkList& aList );
       
    63     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    64 
       
    65 public: // From CMemSpyViewBase
       
    66     TMemSpyViewType ViewType() const;
       
    67     CMemSpyViewBase* PrepareParentViewL();
       
    68     CMemSpyViewBase* PrepareChildViewL();
       
    69 
       
    70 private: // From CMemSpyViewBase
       
    71     void SetListBoxModelL();
       
    72     void HandleListBoxItemActionedL( TInt aIndex );
       
    73     void HandleListBoxItemSelectedL( TInt aIndex );
       
    74 
       
    75 private: // Data members
       
    76     CMemSpyEngineChunkEntry* iCurrentChunk;
       
    77     };
       
    78 
       
    79 
       
    80 
       
    81 class CMemSpyViewChunkDetails : public CMemSpyViewChunkBase
       
    82     {
       
    83 public:
       
    84     CMemSpyViewChunkDetails( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyEngineChunkList& aList, CMemSpyEngineChunkEntry& aSelectedChunk );
       
    85     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    86 
       
    87 public: // From CMemSpyViewBase
       
    88     void RefreshL();
       
    89     TMemSpyViewType ViewType() const;
       
    90     CMemSpyViewBase* PrepareParentViewL();
       
    91 
       
    92 private: // From CMemSpyViewBase
       
    93     void SetListBoxModelL();
       
    94 
       
    95 private: // Data members
       
    96     CMemSpyEngineChunkEntry& iChunk;
       
    97     };
       
    98 
       
    99 
       
   100 
       
   101 #endif