20
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Includes common constants and enums for the AnalyzeTool
|
|
15 |
* StorageServer client and server.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef ATSTORAGESERVERCOMMON_H
|
|
22 |
#define ATSTORAGESERVERCOMMON_H
|
|
23 |
|
|
24 |
|
|
25 |
// INCLUDES
|
|
26 |
|
|
27 |
#include <e32base.h>
|
|
28 |
|
|
29 |
|
|
30 |
// CONSTANTS
|
|
31 |
|
|
32 |
// Server's file name
|
|
33 |
_LIT(KStorageServerFile, "AToolStorageServer.exe");
|
|
34 |
|
|
35 |
// server name
|
|
36 |
_LIT(KStorageServerName,"AToolStorageServer");
|
|
37 |
|
|
38 |
|
|
39 |
// The path of the storage file
|
|
40 |
#ifdef __WINS__
|
|
41 |
_LIT( KATDataFilePath, ":\\logs\\analyzetool\\" );
|
|
42 |
#else
|
|
43 |
_LIT( KATDataFilePath, ":\\analyzetool\\" );
|
|
44 |
_LIT( KATDataFilePath2, ":\\data\\analyzetool\\" );
|
|
45 |
#endif
|
|
46 |
|
|
47 |
// The word size in the current system is 32 bits, which is 4 bytes.
|
|
48 |
const TInt KWordSize = 4;
|
|
49 |
|
|
50 |
// Leak array granularity value
|
|
51 |
const TInt KLeakArrayGranularity = 100;
|
|
52 |
|
|
53 |
// DATA TYPES
|
|
54 |
|
|
55 |
/** Storage Server panic codes */
|
|
56 |
enum TStorageServerPanics
|
|
57 |
{
|
|
58 |
EAToolBadRequest = 1, // An undefined operation request from the client
|
|
59 |
EAToolBadArgument, // Illegal arguments / function parameters
|
|
60 |
EAToolNotAllowed, // An operation is not allowed in the current program state
|
|
61 |
EAToolInternalError, // An internal error has occured
|
|
62 |
EAToolIllegalLogOption // An undefined log option has been requested
|
|
63 |
};
|
|
64 |
|
|
65 |
|
|
66 |
/** Panic categories */
|
|
67 |
_LIT(KCategoryServer,"STSEServer");
|
|
68 |
_LIT(KCategoryClient,"STSEClient");
|
|
69 |
|
|
70 |
inline void StorageServerPanic( const TDesC &aCategory, TStorageServerPanics aReason )
|
|
71 |
{
|
|
72 |
User::Panic(aCategory, aReason);
|
|
73 |
}
|
|
74 |
|
|
75 |
#endif // ATSTORAGESERVERCOMMON_H
|
|
76 |
|
|
77 |
// End of File
|