equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The SUPL Ethernet Connection Starter plug-in class. |
|
15 // |
|
16 // |
|
17 |
|
18 #include <e32base.h> |
|
19 #include <es_sock.h> |
|
20 #include <es_enum.h> |
|
21 |
|
22 #if (!defined __TE_LBSSUPLCONNSTARTER_H__) |
|
23 #define __TE_LBSSUPLCONNSTARTER_H__ |
|
24 |
|
25 |
|
26 class CTe_LbsSuplConnStarter : public CActive |
|
27 { |
|
28 |
|
29 private: |
|
30 enum TState |
|
31 { |
|
32 EDisconnected, |
|
33 EConnecting, |
|
34 EConnected |
|
35 }; |
|
36 |
|
37 public: |
|
38 static CTe_LbsSuplConnStarter* NewL(TAny* aWatcherParams); |
|
39 |
|
40 virtual ~CTe_LbsSuplConnStarter(); |
|
41 |
|
42 private: |
|
43 CTe_LbsSuplConnStarter(); |
|
44 void ConstructL(); |
|
45 |
|
46 void RunL(); |
|
47 void DoCancel(); |
|
48 |
|
49 void StartConnection(); |
|
50 |
|
51 private: |
|
52 TState iState; |
|
53 |
|
54 RSocketServ iSocketServ; |
|
55 RConnection iConnection; |
|
56 }; |
|
57 |
|
58 #endif //__TE_LBSSUPLCONNSTARTER_H__ |
|
59 |