1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/tools/coredump/executabledata.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,125 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// Defines target-executable classes used across the Core Dump client/server interface
1.18 +//
1.19 +
1.20 +
1.21 +
1.22 +/**
1.23 + @file
1.24 + @publishedPartner
1.25 + @released
1.26 +*/
1.27 +
1.28 +#ifndef EXECUTABLEDATA_H
1.29 +#define EXECUTABLEDATA_H
1.30 +
1.31 +#include <streamelement.h>
1.32 +
1.33 +
1.34 +/**
1.35 +@publishedPartner
1.36 +@released
1.37 +
1.38 +Class that represents a target executable file from which a process can launched.
1.39 +It is based on CStreamElementBase so it can be streamed between client and server.
1.40 +@see CServerCrashDataSource::GetExecutableListL
1.41 +*/
1.42 +class CExecutableInfo : public CStreamElementBase
1.43 +{
1.44 +
1.45 +public:
1.46 +
1.47 + IMPORT_C static CExecutableInfo* NewL( const TDesC & aName,
1.48 + const TBool aActivelyDebugged,
1.49 + const TBool aPassivelyDebugged );
1.50 +
1.51 + IMPORT_C static CExecutableInfo* NewL( const TDesC8 & aStreamData );
1.52 +
1.53 + IMPORT_C ~CExecutableInfo();
1.54 +
1.55 +public:
1.56 + // Methods specific to CExecutableInfo
1.57 +
1.58 + IMPORT_C void NameL( const TDesC & aName );
1.59 + IMPORT_C const TDesC & Name() const;
1.60 +
1.61 + IMPORT_C TBool ActivelyDebugged( ) const;
1.62 + IMPORT_C void ActivelyDebugged( TBool aActivelyDebugged );
1.63 +
1.64 + IMPORT_C TBool PassivelyDebugged( ) const;
1.65 + IMPORT_C void PassivelyDebugged( TBool aPassivelyDebugged );
1.66 +
1.67 + IMPORT_C TBool Observed( ) const;
1.68 + IMPORT_C void Observed( TBool aFlag );
1.69 +
1.70 +
1.71 +public:
1.72 + // Methods required by streaming interface
1.73 +
1.74 + IMPORT_C TInt static MaxSize();
1.75 +
1.76 + IMPORT_C TInt Size() const;
1.77 +
1.78 + // Initializes ’this’ from stream
1.79 + IMPORT_C void InternalizeL( RReadStream & aStream );
1.80 +
1.81 + // Writes ’this’ to the stream
1.82 + IMPORT_C void ExternalizeL( RWriteStream & aStream, CBufFlat* buf );
1.83 +
1.84 +
1.85 +private:
1.86 +
1.87 + CExecutableInfo( const TBool aActivelyDebugged,
1.88 + const TBool aPassivelyDebugged );
1.89 +
1.90 + CExecutableInfo();
1.91 +
1.92 + void ConstructL( const TDesC & aName );
1.93 +
1.94 +private:
1.95 +
1.96 + /** Symbian kernel executable name */
1.97 + HBufC * iName;
1.98 +
1.99 + /** Actively debugged by client of Debug Security Server */
1.100 + TBool iActivelyDebugged;
1.101 +
1.102 + /** Passively debugged by client of Debug Security Server */
1.103 + TBool iPassivelyDebugged;
1.104 +
1.105 + /** Observed by core dump server */
1.106 + TBool iObserved;
1.107 +
1.108 + /** Externalized size */
1.109 + TUint iSize;
1.110 +
1.111 + // These are not internalised/externalised since they are spare
1.112 + TUint32 iSpare1;
1.113 + TUint32 iSpare2;
1.114 + TUint32 iSpare3;
1.115 + };
1.116 +
1.117 +
1.118 +/**
1.119 +@publishedPartner
1.120 +@released
1.121 +
1.122 +List of CExecutableInfo object pointers
1.123 +@see CExecutableInfo
1.124 +@see RPointerArray
1.125 +*/
1.126 +typedef RPointerArray<CExecutableInfo> RExecutablePointerList;
1.127 +
1.128 +#endif