equal
deleted
inserted
replaced
|
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 __toolsclientsession_h__ |
|
19 #define __toolsclientsession_h__ |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> |
|
23 |
|
24 enum TConnectionStatus |
|
25 { |
|
26 EUsbNotConnected, |
|
27 EUsbConnected |
|
28 |
|
29 }; |
|
30 typedef TPckg<TConnectionStatus> TConnPkg; |
|
31 |
|
32 // User includes |
|
33 |
|
34 // Classes referenced |
|
35 |
|
36 //The client-side interface to the MetroTrk Tcb server. |
|
37 class RToolsClientSession : public RSessionBase |
|
38 { |
|
39 // CONNECT TO SERVER & VERSIONING |
|
40 public: |
|
41 IMPORT_C RToolsClientSession(); |
|
42 IMPORT_C TInt Connect(); |
|
43 IMPORT_C TVersion Version() const; |
|
44 |
|
45 |
|
46 public: |
|
47 |
|
48 |
|
49 IMPORT_C TInt GetConnStatus(TConnectionStatus& aConnStatus); |
|
50 IMPORT_C void UsbConnNotify(TDes8 &aDes ,TRequestStatus& aStatus); |
|
51 IMPORT_C TInt UsbConnNotifyCancel(); |
|
52 IMPORT_C TInt ShutDownServer(); |
|
53 |
|
54 }; |
|
55 |
|
56 #endif //__toolsclientsession_h__ |