|
1 /* |
|
2 * Copyright (c) 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: Class CCatalogsRemoveAccesspointShutdownOperation declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CATALOGSREMOVEACCESSPOINTSHUTDOWNOPERATION_H |
|
20 #define C_CATALOGSREMOVEACCESSPOINTSHUTDOWNOPERATION_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "catalogsshutdownoperation.h" |
|
25 #include "catalogsaccesspointobserver.h" |
|
26 |
|
27 class TCatalogsConnectionMethod; |
|
28 class CCatalogsNetworkManager; |
|
29 |
|
30 |
|
31 class CCatalogsRemoveAccesspointShutdownOperation |
|
32 : public CCatalogsShutdownOperation, |
|
33 public MCatalogsAccessPointObserver |
|
34 { |
|
35 public: |
|
36 |
|
37 static CCatalogsRemoveAccesspointShutdownOperation* NewL( |
|
38 const TUid& aFamilyUid, |
|
39 const TUint32 aApnId ); |
|
40 |
|
41 virtual ~CCatalogsRemoveAccesspointShutdownOperation(); |
|
42 |
|
43 protected: // MCatalogsAccessPointObserver |
|
44 |
|
45 void HandleAccessPointEventL( |
|
46 const TCatalogsConnectionMethod& aAp, |
|
47 const TCatalogsAccessPointEvent& aEvent ); |
|
48 |
|
49 protected: |
|
50 |
|
51 static TInt CallbackRemoveAccessPoint( TAny* aData ); |
|
52 |
|
53 CCatalogsRemoveAccesspointShutdownOperation( |
|
54 const TUid& aFamilyUid, |
|
55 const TUint32 aApnId ); |
|
56 |
|
57 protected: // CCatalogsShutdownOperation |
|
58 |
|
59 void DoExecuteL(); |
|
60 void DoCancel(); |
|
61 |
|
62 private: |
|
63 |
|
64 void RemoveAccessPoint(); |
|
65 |
|
66 private: |
|
67 |
|
68 TUint32 iApnId; |
|
69 CCatalogsNetworkManager* iNetworkManager; // not owned |
|
70 CPeriodic* iTimer; // owned |
|
71 }; |
|
72 |
|
73 #endif /* C_CATALOGSREMOVEACCESSPOINTSHUTDOWNOPERATION_H */ |