memspyui/ui/avkon/inc/MemSpyViewKernelContainers.h
changeset 48 da3ec8478e66
parent 47 11fa016241a4
child 54 9347c563e054
equal deleted inserted replaced
47:11fa016241a4 48:da3ec8478e66
     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 MEMSPYVIEWKERNELCONTAINERS_H
       
    19 #define MEMSPYVIEWKERNELCONTAINERS_H
       
    20 
       
    21 // System includes
       
    22 #include <hal.h>
       
    23 #include <coecntrl.h>
       
    24 #include <aknlists.h>
       
    25 #include <BADESCA.H>
       
    26 
       
    27 // User includes
       
    28 #include "MemSpyViewBase.h"
       
    29 
       
    30 #include <memspy/driver/memspydriverenumerationsshared.h>
       
    31 #include <memspy/api/memspyapikernelobject.h>
       
    32 
       
    33 // Classes referenced
       
    34 class CMemSpyEngineGenericKernelObjectContainer;
       
    35 
       
    36 class RMemSpySession;
       
    37 
       
    38 class CMemSpyViewKernelContainers : public CMemSpyViewBase
       
    39     {
       
    40 public:
       
    41     CMemSpyViewKernelContainers( RMemSpySession& aSession, MMemSpyViewObserver& aObserver );
       
    42     ~CMemSpyViewKernelContainers();
       
    43     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    44 
       
    45 public: // From CMemSpyViewBase
       
    46     void RefreshL();
       
    47     TMemSpyViewType ViewType() const;
       
    48     CMemSpyViewBase* PrepareParentViewL();
       
    49     CMemSpyViewBase* PrepareChildViewL();    
       
    50     TPtrC TypeAsString( TMemSpyDriverContainerType aType );
       
    51     
       
    52     
       
    53 public: // Menu framework
       
    54     TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_KERNEL_CONTAINERS; }
       
    55     TInt MenuCascadeCommandId() const { return EMemSpyCmdKernelContainers; }
       
    56 
       
    57 private: // From CMemSpyViewBase
       
    58     void SetListBoxModelL();
       
    59     TBool HandleCommandL( TInt aCommand );
       
    60 
       
    61 private: // Command handlers
       
    62     void OnCmdOutputAllContainerContentsL();
       
    63 
       
    64 private: // Internal methods
       
    65 
       
    66 private: // Data members
       
    67     //CMemSpyEngineGenericKernelObjectContainer* iModel;
       
    68     RArray<CMemSpyApiKernelObject*> iKernelObjects; //array of raw items data
       
    69     };
       
    70 
       
    71 
       
    72 #endif