memspyui/include/MemSpyViewOpenFiles.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 #ifndef MEMSPYVIEWOPENFILES_H
       
    19 #define MEMSPYVIEWOPENFILES_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 
       
    30 
       
    31 class CMemSpyViewOpenFiles : public CMemSpyViewBase
       
    32     {
       
    33 public:
       
    34     CMemSpyViewOpenFiles( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver );
       
    35     ~CMemSpyViewOpenFiles();
       
    36     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    37 
       
    38 public: // From CMemSpyViewBase
       
    39     CEikListBox* ConstructListBoxL();
       
    40     void RefreshL();
       
    41     TBool HandleCommandL( TInt aCommand );
       
    42     TMemSpyViewType ViewType() const;
       
    43     CMemSpyViewBase* PrepareParentViewL();
       
    44     CMemSpyViewBase* PrepareChildViewL();
       
    45 
       
    46 private: // Command handlers
       
    47     void OnCmdListOpenFilesL();
       
    48 
       
    49 private: // From CMemSpyViewBase
       
    50     void SetListBoxModelL();
       
    51     void HandleListBoxItemActionedL( TInt aCurrentIndex );
       
    52 
       
    53 private: // Internal
       
    54     static TBool CompareTEntryObjects( const TEntry& aLeft, const TEntry& aRight );
       
    55 
       
    56 private: // Data members
       
    57     RArray<TThreadId> iThreadIds;
       
    58     const TThreadId* iActionedThreadId;
       
    59     RArray<TEntry> iFileNames;
       
    60     };
       
    61 
       
    62 
       
    63 #endif