|
1 /* |
|
2 * Copyright (c) 2006-2008 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: Main client side interface of DUN |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef R_RDUNCLIENT_H |
|
20 #define R_RDUNCLIENT_H |
|
21 |
|
22 #include <e32def.h> |
|
23 #include <e32std.h> |
|
24 #include <locodserviceplugin.h> |
|
25 |
|
26 class MDunActive; |
|
27 |
|
28 /** |
|
29 * Main client side interface of DUN |
|
30 * Manages service from/to LOCOD |
|
31 * |
|
32 * @since S60 v3.2 |
|
33 */ |
|
34 class RDun : public RSessionBase |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 RDun(); |
|
40 |
|
41 /** |
|
42 * This function starts DUN open/close for different medias |
|
43 * |
|
44 * @since S60 3.2 |
|
45 * @param aRequest Request to manage |
|
46 * @param aReqStatus Active object's request status |
|
47 * @return Symbian error code on error, KErrNone otherwise |
|
48 */ |
|
49 TInt ManageService( MDunActive* aRequest, TRequestStatus& aReqStatus ); |
|
50 |
|
51 /** |
|
52 * This function gets the active connection |
|
53 * (For testing purposes only). |
|
54 * |
|
55 * @since S60 5.0 |
|
56 * @return Active connection if found, NULL otherwise |
|
57 */ |
|
58 TAny* ActiveConnection(); |
|
59 |
|
60 /** |
|
61 * Version number |
|
62 * |
|
63 * @since S60 3.2 |
|
64 * @return Version number of DUN |
|
65 */ |
|
66 TVersion Version() const; |
|
67 |
|
68 /** |
|
69 * This function connects to DUN server and creates a new session. |
|
70 * |
|
71 * @since S60 3.2 |
|
72 * @return Symbian error code on error, KErrNone otherwise |
|
73 */ |
|
74 TInt Connect(); |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // R_RDUNCLIENT_H |