|
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 __TrkSrvCliSession_h__ |
|
19 #define __TrkSrvCliSession_h__ |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> |
|
23 #include <f32file.h> |
|
24 #include "TrkConnData.h" |
|
25 // User includes |
|
26 |
|
27 // Classes referenced |
|
28 typedef TPckg<TBool> TDebugState; |
|
29 typedef TPckg<TTrkConnStatus> TConnState; |
|
30 |
|
31 //class TTrkConnData; |
|
32 |
|
33 |
|
34 //The client-side interface to the Trk server. |
|
35 class RTrkSrvCliSession : public RSessionBase |
|
36 { |
|
37 // CONNECT TO SERVER & VERSIONING |
|
38 public: |
|
39 RTrkSrvCliSession(); |
|
40 TInt ConnectToServer(); |
|
41 |
|
42 // TRK server CMD SPECIFIC FUNCTIONALITY |
|
43 public: |
|
44 TInt GetTrkVersion(TInt& aMajorVersion, TInt& aMinorVersion, TInt& aMajorAPIVersion, TInt& aMinorAPIVersion, TInt& aBuildNumber); |
|
45 TInt Connect(); |
|
46 TInt DisConnect(); |
|
47 TInt GetCurrentConnData(TTrkConnData& aConnData); |
|
48 TInt SetCurrentConnData(TTrkConnData& aConnData); |
|
49 TInt GetDebugConnStatus(TTrkConnStatus& aConnStatus, TDes& aConnMsg); |
|
50 void DebugConnStatusNotify(TDes8& aConnStatus, TDes& aConnMsg, TRequestStatus& aStatus); |
|
51 TInt DebugConnStatusNotifyCancel(); |
|
52 TInt GetDebuggingStatus(TBool& aDebugging); |
|
53 void DebuggingStatusNotify(TDes8& aDebugging, TRequestStatus& aStatus); |
|
54 TInt DebuggingStatusNotifyCancel(); |
|
55 TInt GetPlugAndPlayType(TBool& aPlugandPlay); |
|
56 TInt SetPlugAndPlayType(TBool aPlugandPlay); |
|
57 TInt ShutDownServer(); |
|
58 }; |
|
59 |
|
60 #endif //__TrkSrvCliSession_h__ |