0
|
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 "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 |
// Define the interface to the Core Dump Server
|
|
15 |
//
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file
|
|
21 |
@publishedPartner
|
|
22 |
@released
|
|
23 |
*/
|
|
24 |
|
|
25 |
#ifndef CORE_DUMP_API_H
|
|
26 |
#define CORE_DUMP_API_H
|
|
27 |
|
|
28 |
#include <e32base.h>
|
|
29 |
|
|
30 |
|
|
31 |
#include <processdata.h>
|
|
32 |
#include <executabledata.h>
|
|
33 |
#include <threaddata.h>
|
|
34 |
#include <coredumpserverapi.h>
|
|
35 |
#include <optionconfig.h>
|
|
36 |
|
|
37 |
#include <debuglogging.h>
|
|
38 |
#include <crashdata.h>
|
|
39 |
|
|
40 |
/**
|
|
41 |
@publishedPartner
|
|
42 |
@released
|
|
43 |
|
|
44 |
Definition of the Core Dump Server interface.
|
|
45 |
This is used by clients to interact with the server.
|
|
46 |
|
|
47 |
*/
|
|
48 |
class RCoreDumpSession : public RSessionBase
|
|
49 |
{
|
|
50 |
static TInt StartServer();
|
|
51 |
|
|
52 |
public: // Construction
|
|
53 |
IMPORT_C RCoreDumpSession();
|
|
54 |
|
|
55 |
public:
|
|
56 |
IMPORT_C TInt Connect();
|
|
57 |
IMPORT_C void Disconnect();
|
|
58 |
|
|
59 |
IMPORT_C void GetPluginListL( RPluginList &aPluginList ) const;
|
|
60 |
IMPORT_C void PluginRequestL(const TPluginRequest &aPluginRequest ) const;
|
|
61 |
|
|
62 |
IMPORT_C void GetProcessesL( RProcessPointerList &aProcessList ) const;
|
|
63 |
IMPORT_C void GetThreadsL( RThreadPointerList &aThreadsList, const TUint64 aPid = (TUint64)-1 ) const;
|
|
64 |
IMPORT_C void GetExecutablesL( RExecutablePointerList &aExecutableList ) const;
|
|
65 |
|
|
66 |
IMPORT_C void ObservationRequestL( const TDesC &aTargetName, const TDesC &aTargetOwnerName, TBool aObserve) const;
|
|
67 |
|
|
68 |
IMPORT_C TInt GetNumberConfigParametersL() const;
|
|
69 |
IMPORT_C COptionConfig * GetConfigParameterL( const TInt aIndex ) const;
|
|
70 |
IMPORT_C void SetConfigParameterL( const COptionConfig &aConfig ) const;
|
|
71 |
|
|
72 |
IMPORT_C void LoadConfigL( const TDesC & aLoadPath ) const;
|
|
73 |
IMPORT_C void SaveConfigL( const TDesC & aSavePath ) const;
|
|
74 |
|
|
75 |
IMPORT_C void GetFormattersL( RPluginPointerList &aFormatterList ) const;
|
|
76 |
IMPORT_C void GetWritersL( RPluginPointerList &aWriterList ) const;
|
|
77 |
|
|
78 |
IMPORT_C void ListCrashesInFlashL(RCrashInfoPointerList& aCrashes) const;
|
|
79 |
IMPORT_C void DeleteCrashLogL(TInt aCrashId) const;
|
|
80 |
IMPORT_C void DeleteCrashPartitionL() const;
|
|
81 |
IMPORT_C void ProcessCrashLogL(const TInt aCrashId);
|
|
82 |
|
|
83 |
IMPORT_C void ProcessCrashLog(TInt aCrashId, TRequestStatus &aStatus);
|
|
84 |
IMPORT_C TInt CancelProcessCrashLog(TInt aCrashId);
|
|
85 |
|
|
86 |
private:
|
|
87 |
const TDesC8 &GetListLC(const TListRequest &aRequest) const;
|
|
88 |
TVersion Version() const;
|
|
89 |
|
|
90 |
private: // Data members
|
|
91 |
|
|
92 |
enum {KConnectionRetries = 3};
|
|
93 |
|
|
94 |
TBool iConnected;
|
|
95 |
|
|
96 |
TInt iMaxConfigParamSize;
|
|
97 |
|
|
98 |
TUint32 iSpare0;
|
|
99 |
TUint32 iSpare1;
|
|
100 |
TUint32 iSpare2;
|
|
101 |
TUint32 iSpare3;
|
|
102 |
};
|
|
103 |
|
|
104 |
|
|
105 |
#endif // CORE_DUMP_API_H
|