equal
deleted
inserted
replaced
|
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: Common utility methods for DUN |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CDUNUTILS_H |
|
20 #define C_CDUNUTILS_H |
|
21 |
|
22 #ifdef PRJ_USE_NETWORK_STUBS |
|
23 #include <c32comm_stub.h> |
|
24 #else |
|
25 #include <c32comm.h> |
|
26 #endif |
|
27 #include <e32std.h> |
|
28 |
|
29 /** |
|
30 * This class contains common utility methods for DUN |
|
31 * |
|
32 * @lib dunutils.lib |
|
33 * @since S60 v3.2 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CDunUtils ) : public CBase |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Connects to comms server |
|
42 * |
|
43 * @since S60 3.2 |
|
44 * @param aCommServer Comms server where to connect |
|
45 * @return Symbian error code on error, KErrNone otherwise |
|
46 */ |
|
47 IMPORT_C static TInt ConnectCommsServer( RCommServ& aCommServer ); |
|
48 |
|
49 /** |
|
50 * Sets RComm buffer length |
|
51 * |
|
52 * @since S60 3.2 |
|
53 * @param aComm RComm object whose length to set |
|
54 * @param aLength Length to set to aComm |
|
55 * @return Symbian error code on error, KErrNone otherwise |
|
56 */ |
|
57 IMPORT_C static TInt SetRCommBufferLength( RComm& aComm, TInt aLength ); |
|
58 |
|
59 }; |
|
60 |
|
61 #endif // C_CDUNUTILS_H |