0
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef __TrkCmdCodes_H__
|
|
19 |
#define __TrkCmdCodes_H__
|
|
20 |
|
|
21 |
// System includes
|
|
22 |
#include <e32std.h>
|
|
23 |
|
|
24 |
// Constants
|
|
25 |
const TInt KTrkServerMajorVN = 1;
|
|
26 |
const TInt KTrkServerMinorVN = 0;
|
|
27 |
const TInt KTrkServerBuildVN = 0;
|
|
28 |
|
|
29 |
// asynchronous cmd slot count
|
|
30 |
const TInt KTrkServerAsynchronousSlotCount = 8;
|
|
31 |
|
|
32 |
//
|
|
33 |
const TUid KTrkServerUid = { 0x200170B7 };
|
|
34 |
const TUid KTrkAppUid = { 0x200170BB };
|
|
35 |
const TUid KTrkExeUid = { 0x200159E2 };
|
|
36 |
|
|
37 |
// Literal constants
|
|
38 |
|
|
39 |
#if defined(EKA2)
|
|
40 |
_LIT(KTrkServerName, "!TrkServer");
|
|
41 |
#else
|
|
42 |
_LIT(KTrkServerName, "TrkServer");
|
|
43 |
#endif
|
|
44 |
|
|
45 |
_LIT(KTrkServerImageName, "TrkServer");
|
|
46 |
|
|
47 |
_LIT(KServerIntiatedSessionPanic, "TRKSERVER");
|
|
48 |
|
|
49 |
#define KCapabilityCustomCheck 0
|
|
50 |
|
|
51 |
// Enumerations
|
|
52 |
//
|
|
53 |
// The cmd-codes used to communicate between the Trk client and Trk server.
|
|
54 |
//
|
|
55 |
enum TTrkCmdCode
|
|
56 |
{
|
|
57 |
//Custom check
|
|
58 |
ETrkSrvCmdCodeFirst = KCapabilityCustomCheck,
|
|
59 |
ETrkSrvGetVersion,
|
|
60 |
ETrkSrvCmdConnect,
|
|
61 |
ETrkSrvCmdDisConnect,
|
|
62 |
ETrkSrvCmdGetCurrentConnData,
|
|
63 |
ETrkSrvCmdSetCurrentConnData,
|
|
64 |
ETrkSrvCmdGetDebugConnStatus,
|
|
65 |
ETrkSrvDebugConnStatus,
|
|
66 |
ETrkSrvDebugConnStatusCancel,
|
|
67 |
ETrkSrvCmdGetDebuggingStatus,
|
|
68 |
ETrkSrvDebuggingStatus,
|
|
69 |
ETrkSrvDebuggingStatusCancel,
|
|
70 |
ETrkGetPlugAndPlayType,
|
|
71 |
ETrkSetPlugAndPlayType,
|
|
72 |
ETrkSrvCmdCodeShutDownServer,
|
|
73 |
ETrkCmdCodeLast
|
|
74 |
};
|
|
75 |
|
|
76 |
// Identifies server-initiated panics relating to the client session.
|
|
77 |
enum TTrkServerInitiatedClientPanic
|
|
78 |
{
|
|
79 |
//This panic occurs when the client requests a copy of any data attached to any
|
|
80 |
//read request, but does not supply enough buffer space to contain the data.
|
|
81 |
ETrkServerInitiatedClientPanicInsufficientRoomForFileData = 1,
|
|
82 |
|
|
83 |
//This panic usually occurs when a client method tries to write to a descriptor
|
|
84 |
//(sometimes asynchronously), and the client-supplied descriptor is not valid.
|
|
85 |
ETrkServerInitiatedClientPanicBadDescriptor = 2,
|
|
86 |
|
|
87 |
|
|
88 |
//This panic occurs when a client tries to perform an invalid operation.
|
|
89 |
ETrkServerInitiatedClientPanicInvalidOperation = 3,
|
|
90 |
};
|
|
91 |
|
|
92 |
class TTRKVersion
|
|
93 |
{
|
|
94 |
public:
|
|
95 |
TInt iMajor;
|
|
96 |
TInt iMinor;
|
|
97 |
TInt iMajorAPI;
|
|
98 |
TInt iMinorAPI;
|
|
99 |
TInt iBuild;
|
|
100 |
};
|
|
101 |
|
|
102 |
#endif //__TrkCmdCodes_H__
|
|
103 |
|