|
1 /* |
|
2 * Copyright (c) 2005-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 * This file was autogenerated by rpcgen, but should be modified by the developer. |
|
16 * Make sure you don't use the -component_mod flag in future or this file will be overwritten. |
|
17 * Fri Oct 17 09:37:12 2003 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef __CSPPPCONTROLLER_H__ |
|
25 #define __CSPPPCONTROLLER_H__ |
|
26 |
|
27 |
|
28 /**************************************************************************************** |
|
29 * |
|
30 * Local Includes |
|
31 * |
|
32 ***************************************************************************************/ |
|
33 #include "pppcontroller.h" |
|
34 #include "../ProcessLibrary/proclib.h" |
|
35 |
|
36 |
|
37 /**************************************************************************************** |
|
38 * |
|
39 * Types |
|
40 * |
|
41 ***************************************************************************************/ |
|
42 typedef enum { |
|
43 MM_FIRST, |
|
44 MM_LAST, |
|
45 MM_ERROR |
|
46 } TMultiMatchSemantics; |
|
47 |
|
48 /**************************************************************************************** |
|
49 * |
|
50 * Definition: CSPppcontroller |
|
51 * |
|
52 ***************************************************************************************/ |
|
53 class CSPppcontroller |
|
54 { |
|
55 public: |
|
56 // Standard Methods |
|
57 CSPppcontroller(); |
|
58 ~CSPppcontroller(); |
|
59 int GetKey(); |
|
60 void SetKey( int aKey ); |
|
61 |
|
62 // RPC Service Methods |
|
63 TResult cstr_startpppsession( TPppSessionConfig aArgs ); |
|
64 TResult dstr_removepppsession( int aArgs, int *aDeleteInstance ); |
|
65 TResult killsession( int aArgs ); |
|
66 TResult stopsession( int aArgs ); |
|
67 TPppSessionDesc getsessioninfo( int aArgs ); |
|
68 TVarData getppplog( int aArgs ); |
|
69 |
|
70 private: |
|
71 TResult GetInterfaceName(); |
|
72 TResult UpdateSessionStatus(); |
|
73 TResult CopyFileIntoBuffer( char *aFilename, TVarData *aData ); |
|
74 TResult GetTokenFromFile( string aPrefix, string *aToken, TMultiMatchSemantics aMultiMatchSemantics ); |
|
75 TResult GetIPAddresses(); |
|
76 |
|
77 int iKey; |
|
78 CAProcess *iProcess; |
|
79 TResult StopProcessWithSignal( int aSignal ); |
|
80 TPppSessionConfig iSessionConfig; |
|
81 string iInterfaceName; |
|
82 TPppSessionStatus iSessionStatus; |
|
83 int iLocalIPAddress; |
|
84 int iRemoteIPAddress; |
|
85 }; |
|
86 |
|
87 #endif |