author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
permissions | -rw-r--r-- |
williamr@4 | 1 |
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@4 | 2 |
// All rights reserved. |
williamr@4 | 3 |
// This component and the accompanying materials are made available |
williamr@4 | 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 |
williamr@4 | 5 |
// which accompanies this distribution, and is available |
williamr@4 | 6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
williamr@4 | 7 |
// |
williamr@4 | 8 |
// Initial Contributors: |
williamr@4 | 9 |
// Nokia Corporation - initial contribution. |
williamr@4 | 10 |
// |
williamr@4 | 11 |
// Contributors: |
williamr@4 | 12 |
// |
williamr@4 | 13 |
// Description: |
williamr@4 | 14 |
// Defines ECOM-plugin related classes used accross the Core Dump client/server interface |
williamr@4 | 15 |
// |
williamr@4 | 16 |
|
williamr@4 | 17 |
|
williamr@4 | 18 |
|
williamr@4 | 19 |
/** |
williamr@4 | 20 |
@file |
williamr@4 | 21 |
@publishedPartner |
williamr@4 | 22 |
@released |
williamr@4 | 23 |
*/ |
williamr@4 | 24 |
|
williamr@4 | 25 |
#ifndef PLUGINDATA_H |
williamr@4 | 26 |
#define PLUGINDATA_H |
williamr@4 | 27 |
|
williamr@4 | 28 |
/** |
williamr@4 | 29 |
@publishedPartner |
williamr@4 | 30 |
@released |
williamr@4 | 31 |
|
williamr@4 | 32 |
Class used between Core Dump Server and its clients to request |
williamr@4 | 33 |
the server to carry out actions on plugins, such as load/unload. |
williamr@4 | 34 |
@see CCrashConfig::LoadPlugin() |
williamr@4 | 35 |
*/ |
williamr@4 | 36 |
class TPluginRequest |
williamr@4 | 37 |
{ |
williamr@4 | 38 |
public: |
williamr@4 | 39 |
|
williamr@4 | 40 |
/** |
williamr@4 | 41 |
Type of plugin to request |
williamr@4 | 42 |
*/ |
williamr@4 | 43 |
enum TPluginType |
williamr@4 | 44 |
{ |
williamr@4 | 45 |
/** A formatter plugin */ |
williamr@4 | 46 |
EFormatter, |
williamr@4 | 47 |
/** A writer plugin */ |
williamr@4 | 48 |
EWriter |
williamr@4 | 49 |
}; |
williamr@4 | 50 |
|
williamr@4 | 51 |
|
williamr@4 | 52 |
/** Whether to load or unload the plugin */ |
williamr@4 | 53 |
TBool iLoad; |
williamr@4 | 54 |
|
williamr@4 | 55 |
/** Type of plugin */ |
williamr@4 | 56 |
TPluginType iPluginType; |
williamr@4 | 57 |
|
williamr@4 | 58 |
/** @internalTechnology */ |
williamr@4 | 59 |
TUint iIndex; |
williamr@4 | 60 |
|
williamr@4 | 61 |
/** Plugin UID, used to check correct plugin */ |
williamr@4 | 62 |
TUid iUid; |
williamr@4 | 63 |
|
williamr@4 | 64 |
/** @internalTechnology */ |
williamr@4 | 65 |
TUint32 iSpare1; |
williamr@4 | 66 |
|
williamr@4 | 67 |
/** @internalTechnology */ |
williamr@4 | 68 |
TUint32 iSpare2; |
williamr@4 | 69 |
}; |
williamr@4 | 70 |
|
williamr@4 | 71 |
|
williamr@4 | 72 |
/** Maximum length allowed for a plugin's name */ |
williamr@4 | 73 |
#define KPluginNameLength (50) |
williamr@4 | 74 |
|
williamr@4 | 75 |
/** Maximum length allowed for a plugin's description */ |
williamr@4 | 76 |
#define KPluginDescriptionLength (250) |
williamr@4 | 77 |
|
williamr@4 | 78 |
/** |
williamr@4 | 79 |
@publishedPartner |
williamr@4 | 80 |
@released |
williamr@4 | 81 |
|
williamr@4 | 82 |
Detailed information about a plugin. |
williamr@4 | 83 |
@see RPluginList |
williamr@4 | 84 |
@see TPluginInfoBlock |
williamr@4 | 85 |
*/ |
williamr@4 | 86 |
class TPluginInfo |
williamr@4 | 87 |
{ |
williamr@4 | 88 |
public: |
williamr@4 | 89 |
|
williamr@4 | 90 |
/** Plugin's own version. |
williamr@4 | 91 |
From rss file::IMPLEMENTATION_INFO::version_no */ |
williamr@4 | 92 |
TUint iVersion; |
williamr@4 | 93 |
|
williamr@4 | 94 |
/** Plugin's unique UID. |
williamr@4 | 95 |
From rss file::IMPLEMENTATION_INFO::implementation_uid */ |
williamr@4 | 96 |
TUid iUid; |
williamr@4 | 97 |
|
williamr@4 | 98 |
/** Plugin's own name. |
williamr@4 | 99 |
From rss file::IMPLEMENTATION_INFO::display_name */ |
williamr@4 | 100 |
TBufC<KPluginNameLength> iName; |
williamr@4 | 101 |
|
williamr@4 | 102 |
/** Plugin's own description obtained from |
williamr@4 | 103 |
CCoreDumpFormatter->GetDescription() |
williamr@4 | 104 |
@see CCoreDumpFormatter */ |
williamr@4 | 105 |
TBufC<KPluginDescriptionLength> iDescription; |
williamr@4 | 106 |
|
williamr@4 | 107 |
/** Plugin type : from TPluginRequest::TPluginType */ |
williamr@4 | 108 |
TPluginRequest::TPluginType iType; |
williamr@4 | 109 |
|
williamr@4 | 110 |
/** Plugin loaded state. */ |
williamr@4 | 111 |
TBool iLoaded; |
williamr@4 | 112 |
|
williamr@4 | 113 |
/** Reserved for future use |
williamr@4 | 114 |
@internalTechnology */ |
williamr@4 | 115 |
TUint32 iSpare1; |
williamr@4 | 116 |
|
williamr@4 | 117 |
/** @internalTechnology */ |
williamr@4 | 118 |
TUint32 iSpare2; |
williamr@4 | 119 |
}; |
williamr@4 | 120 |
|
williamr@4 | 121 |
|
williamr@4 | 122 |
/** |
williamr@4 | 123 |
@publishedPartner |
williamr@4 | 124 |
@released |
williamr@4 | 125 |
|
williamr@4 | 126 |
List of TPluginInfo objects. |
williamr@4 | 127 |
@see TPluginInfo |
williamr@4 | 128 |
@see RArray |
williamr@4 | 129 |
*/ |
williamr@4 | 130 |
typedef RArray<TPluginInfo> RPluginList; |
williamr@4 | 131 |
|
williamr@4 | 132 |
|
williamr@4 | 133 |
|
williamr@4 | 134 |
#endif |