testapps/rschandler/Common/inc/ResourceHandler_DataStructs.h
branchRCL_3
changeset 11 493058e57c8c
parent 0 9736f095102e
equal deleted inserted replaced
10:4ca382093dae 11:493058e57c8c
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __ResourceHandler_DataStructs_H
       
    17 #define __ResourceHandler_DataStructs_H
       
    18 
       
    19 
       
    20 #include <e32std.h> //descriptors, TUidType etc
       
    21 
       
    22 struct TListData
       
    23 /** Stores library, server, device and logical channel data */
       
    24 {
       
    25 	TFullName iName;
       
    26 };
       
    27 
       
    28 struct TProcessData
       
    29 /** Stores process details */
       
    30 	{
       
    31 	TBuf<8> iIdString;
       
    32 	TFullName iProcessName; // this is a TBuf (big)
       
    33 	TBuf<8> iPriorityString;
       
    34 	TBuf<1> iProtectedIndicator;
       
    35 	TBuf<1> iSystemIndicator;
       
    36 	TBuf<8> iOwnerIdString;
       
    37 	TBuf<15> iExitTypeString;
       
    38 	TBuf<8> iExitReasonString;
       
    39 	TExitCategoryName iExitCategoryName; // this is a TBuf
       
    40 	TBuf<KMaxUidName> iUidType0String;	//Note: buffer could be shorter as UID is converted to hexadecimal format
       
    41 	TBuf<KMaxUidName> iUidType1String;
       
    42 	TBuf<KMaxUidName> iUidType2String;
       
    43 	TFileName iFileName; // this is a TBuf
       
    44 	};
       
    45 
       
    46 struct TThreadData
       
    47 /** Stores thread details */
       
    48 	{
       
    49 	TBuf<8> iIdString;
       
    50 	TFullName iThreadName; // this is a TBuf (big)
       
    51 	TBuf<10> iPriorityString;
       
    52 	TBuf<8> iOwnerIdString;
       
    53 	TBuf<8> iStackSizeString;
       
    54 	TBuf<8> iHeapSizeString;
       
    55 	TBuf<1> iProtectedIndicator;
       
    56 	TBuf<1> iSystemIndicator;
       
    57 	TBuf<15> iExitTypeString;
       
    58 	TBuf<8> iExitReasonString;
       
    59 	TExitCategoryName iExitCategoryName; // this is a TBuf
       
    60 	};
       
    61 
       
    62 
       
    63 
       
    64 struct TChunkData
       
    65 /** Stores chunk details */
       
    66 	{
       
    67 	TFullName iChunkName; // this is a TBuf (big)
       
    68 	TBuf<8> iSizeString;
       
    69 	TBuf<8> iMaxSizeString;
       
    70 	TBuf<1> iReadableIndicator;
       
    71 	TBuf<1> iWritableIndicator;
       
    72 	};
       
    73 
       
    74 struct TSemaphoreData
       
    75 /** Stores semaphore details */
       
    76 	{
       
    77 	TFullName iSemaphoreName; // this is a TBuf (big)
       
    78 	TBuf<8> iHexCountString;
       
    79 	TBuf<8> iDecCountString;
       
    80 	};
       
    81 
       
    82 struct TMutexData
       
    83 /** Stores mutex details */
       
    84 	{
       
    85 	TFullName iMutexName; // this is a TBuf (big)
       
    86 	TBuf<8> iHexCountString;
       
    87 	TBuf<8> iDecCountString;
       
    88 	};
       
    89 
       
    90 struct TDriveData
       
    91 /** Stores drive details */
       
    92 	{
       
    93 	TFullName iDriveName; // this is a TBuf (big)
       
    94 	TFullName iVolumeName; // this is a TBuf (big) //volume mounted on drive
       
    95 	TBuf<2> iDriveNumberString;
       
    96 	TBuf<20> iMediaString; //Media mounted on drive
       
    97 	TBuf<12> iAttributesString;
       
    98 	TBuf<12> iSpaceString;
       
    99 	TBuf<12> iFreeSpaceString;
       
   100 	};
       
   101 
       
   102 struct THalData
       
   103 /**Stores HAL attributes data*/
       
   104 {
       
   105 	TBuf<4> iNumberString; //sequential number for each item
       
   106 	TBuf<30> iName;
       
   107 	TBuf<1> iDynamicIndicator;
       
   108 	TBuf<12> iDecValString; //Decimal attribute value - not sure of purpose of this
       
   109 	TBuf<12> iHexValString; //Hex attribute value - not sure of purpose of this
       
   110 };
       
   111 
       
   112 #endif