equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-2007 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: Obexserviceman client handling for usbobex api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CUSBCLIENTWRAPPER_H |
|
21 #define CUSBCLIENTWRAPPER_H |
|
22 |
|
23 |
|
24 #include <e32base.h> |
|
25 #include "obexsmclient.h" |
|
26 |
|
27 |
|
28 /** |
|
29 * Obexserviceman client handling for usbobex api |
|
30 * |
|
31 * |
|
32 * @since S60 S60 v3.2 |
|
33 */ |
|
34 NONSHARABLE_CLASS (CUSBClientWrapper) : public CBase |
|
35 { |
|
36 |
|
37 |
|
38 public: |
|
39 |
|
40 static CUSBClientWrapper* NewL(); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CUSBClientWrapper(); |
|
46 |
|
47 /** |
|
48 * Turn USB services on or off |
|
49 * |
|
50 * @since S60 v3.2 |
|
51 * @param aUSBStatus the requested USB service status |
|
52 * @param aStatus the Request status |
|
53 * @return None |
|
54 */ |
|
55 void ManageUSBServices(TBool aUSBStatus, TRequestStatus &aStatus); |
|
56 |
|
57 /** |
|
58 * Cancel managment request and turn services off |
|
59 * @since S60 v3.2 |
|
60 * |
|
61 */ |
|
62 void CancelManageUSBServices(); |
|
63 |
|
64 private: |
|
65 |
|
66 |
|
67 CUSBClientWrapper(); |
|
68 |
|
69 void ConstructL(); |
|
70 |
|
71 private: // data |
|
72 |
|
73 /** |
|
74 * ObexServer Manager client |
|
75 */ |
|
76 RObexSMServer iServer; |
|
77 |
|
78 }; |
|
79 #endif // CUSBCLIENTWRAPPER_H |