1 // Copyright (c) 2007-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
 
     5 // which accompanies this distribution, and is available
 
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
 
     8 // Initial Contributors:
 
     9 // Nokia Corporation - initial contribution.
 
    14 // Define the interface to the Core Dump Server
 
    25 #ifndef CORE_DUMP_API_H
 
    26 #define CORE_DUMP_API_H
 
    31 #include <processdata.h>
 
    32 #include <executabledata.h>
 
    33 #include <threaddata.h>
 
    34 #include <coredumpserverapi.h>
 
    35 #include <optionconfig.h>
 
    37 #include <debuglogging.h>
 
    43 Definition of the Core Dump Server interface.
 
    44 This is used by clients to interact with the server.
 
    47 class RCoreDumpSession	: public RSessionBase
 
    49         static TInt StartServer();
 
    51 	public:		// Construction
 
    52 		IMPORT_C RCoreDumpSession();
 
    55 		IMPORT_C TInt Connect();
 
    56 		IMPORT_C void Disconnect();
 
    58 		IMPORT_C void GetPluginListL( RPluginList &aPluginList ) const;
 
    59 		IMPORT_C void PluginRequestL(const TPluginRequest &aPluginRequest ) const;
 
    61         IMPORT_C void GetProcessesL( RProcessPointerList &aProcessList ) const;
 
    62         IMPORT_C void GetThreadsL( RThreadPointerList &aThreadsList, const TUint64 aPid = (TUint64)-1 ) const;
 
    63 		IMPORT_C void GetExecutablesL( RExecutablePointerList &aExecutableList ) const;
 
    65         IMPORT_C void ObservationRequestL( const TDesC &aTargetName, const TDesC &aTargetOwnerName, TBool aObserve) const;
 
    67 		IMPORT_C TInt GetNumberConfigParametersL() const;
 
    68 		IMPORT_C COptionConfig * GetConfigParameterL( const TInt aIndex ) const;
 
    69 	    IMPORT_C void SetConfigParameterL( const COptionConfig &aConfig ) const;
 
    71 		IMPORT_C void LoadConfigL( const TDesC & aLoadPath ) const;
 
    72 		IMPORT_C void SaveConfigL( const TDesC & aSavePath ) const;
 
    75         const TDesC8 &GetListLC(const TListRequest &aRequest) const;
 
    76 		TVersion Version() const;
 
    78 	private:	// Data members
 
    80         enum {KConnectionRetries = 3};
 
    84 		TInt iMaxConfigParamSize;
 
    93 #endif // CORE_DUMP_API_H