memspyui/ui/avkon/inc/MemSpyViewSystemConfig.h
branchRCL_3
changeset 21 b3cee849fa46
equal deleted inserted replaced
20:48060abbbeaf 21:b3cee849fa46
       
     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 MEMSPYVIEWSYSTEMCONFIG_H
       
    19 #define MEMSPYVIEWSYSTEMCONFIG_H
       
    20 
       
    21 // System includes
       
    22 #include <hal.h>
       
    23 #include <f32file.h>
       
    24 #include <coecntrl.h>
       
    25 #include <aknlists.h>
       
    26 
       
    27 // User includes
       
    28 #include "MemSpyViewBase.h"
       
    29 
       
    30 // Classes referenced
       
    31 
       
    32 
       
    33 class CMemSpyViewSystemConfig : public CMemSpyViewBase
       
    34     {
       
    35 public:
       
    36     CMemSpyViewSystemConfig( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver );
       
    37     ~CMemSpyViewSystemConfig();
       
    38     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    39 
       
    40 public: // From CMemSpyViewBase
       
    41     void RefreshL();
       
    42     TMemSpyViewType ViewType() const;
       
    43     CMemSpyViewBase* PrepareParentViewL();
       
    44     CMemSpyViewBase* PrepareChildViewL();
       
    45 
       
    46 private: // From CMemSpyViewBase
       
    47     void SetListBoxModelL();
       
    48 
       
    49 private: // Internal enumerations 
       
    50 
       
    51     enum TMemSpyDisplayMode
       
    52 	    {
       
    53 	    ENone,
       
    54 	    EGray2,
       
    55 	    EGray4,
       
    56 	    EGray16,
       
    57 	    EGray256,
       
    58 	    EColor16,
       
    59 	    EColor256,
       
    60 	    EColor64K,
       
    61 	    EColor16M,
       
    62 	    ERgb,
       
    63 	    EColor4K,
       
    64 	    EColor16MU,
       
    65 	    EColor16MA,
       
    66 	    EColor16MAP,
       
    67 	    EColorLast
       
    68 	    };
       
    69 
       
    70 private: // Internal methods
       
    71     static void GetManufacturer( TDes& aBuf );
       
    72     static void GetDeviceFamily( TDes& aBuf );
       
    73     static void GetCPU( TDes& aBuf );
       
    74     static void GetCPUABI( TDes& aBuf );
       
    75     static void GetStartupReason( TDes& aBuf );
       
    76     static void GetKeyboard( TDes& aBuf );
       
    77     static void GetMachineUid( TDes& aBuf );
       
    78     static void GetDisplayType( TDes& aBuf );
       
    79     static void GetDisplayMode( TDes& aBuf, TMemSpyDisplayMode aMode );
       
    80     //
       
    81     static TInt GetHALValue( HALData::TAttribute aAttribute, TInt& aValue );
       
    82     TInt GetHALValueAsStringL( HALData::TAttribute aAttribute, const TDesC& aCaption, const TDesC* aSuffix = NULL );
       
    83     TInt GetHALValueAsNumericL( HALData::TAttribute aAttribute, const TDesC& aCaption, const TDesC* aSuffix = NULL, TInt aWidth = -1 );
       
    84     TInt GetHALValueAsHexL( HALData::TAttribute aAttribute, const TDesC& aCaption, const TDesC* aSuffix = NULL );
       
    85     TInt GetHALValueAsYesNoL( HALData::TAttribute aAttribute, const TDesC& aCaption, const TDesC* aSuffix = NULL );
       
    86     TInt GetHALValueAsDriveLetterL( HALData::TAttribute aAttribute, const TDesC& aCaption, const TDesC* aSuffix = NULL );
       
    87 
       
    88 private:
       
    89     void AddItemL( const TDesC& aCaption, const TDesC& aValue, const TDesC* aSuffix = NULL );
       
    90     void AddItemL( TDriveNumber aDrive, const TDesC& aCaption, const TDesC* aSuffix = NULL );
       
    91 
       
    92 private: // Data members
       
    93     CDesCArrayFlat* iModel;
       
    94     };
       
    95 
       
    96 
       
    97 #endif