|
1 /* |
|
2 * Copyright (c) 2002 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: Declaration of Active Iap |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __ACTIVEIAPPLUGIN_H__ |
|
21 #define __ACTIVEIAPPLUGIN_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include "ConnDlgPlugin.h" |
|
26 #include "ActiveIAPListing.h" |
|
27 |
|
28 |
|
29 // FORWARD DECLARATION |
|
30 class CIapDialog; |
|
31 |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CActiveCConnDlgIapPlugin class, |
|
37 * an active object for CConnDlgIapPlugin |
|
38 */ |
|
39 NONSHARABLE_CLASS( CActiveCConnDlgIapPlugin ) : public CActiveIAPListing |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * NewL function |
|
44 * @param aPlugin a pointer to notifier plugin |
|
45 * @param aIAPId iap id |
|
46 * @param aPrefs preferences pointer |
|
47 */ |
|
48 static CActiveCConnDlgIapPlugin* NewL( CConnDlgIapPlugin* aPlugin, |
|
49 const TConnectionPrefs& aPrefs ); |
|
50 |
|
51 /** |
|
52 * StartSearchIAPsL setactive and starts active object |
|
53 */ |
|
54 void StartSearchIAPsL(); |
|
55 |
|
56 /** |
|
57 * Destructor |
|
58 */ |
|
59 virtual ~CActiveCConnDlgIapPlugin(); |
|
60 |
|
61 /** |
|
62 * Cancels the active object |
|
63 */ |
|
64 void Cancel(); |
|
65 |
|
66 |
|
67 protected: |
|
68 /** |
|
69 * ConstructL |
|
70 */ |
|
71 void ConstructL(); |
|
72 |
|
73 /** |
|
74 * Constructor |
|
75 * @param aPlugin a pointer to notifier plugin |
|
76 * @param aIAPId iap id |
|
77 * @param aPrefs preferences pointer |
|
78 */ |
|
79 CActiveCConnDlgIapPlugin( CConnDlgIapPlugin* aPlugin, |
|
80 const TConnectionPrefs& aPrefs ); |
|
81 |
|
82 /** |
|
83 * DoCancel from CActive |
|
84 */ |
|
85 virtual void DoCancel(); |
|
86 |
|
87 /** |
|
88 * RunL from CActive |
|
89 */ |
|
90 virtual void RunL(); |
|
91 |
|
92 /** |
|
93 * Gives back, refresh interval of scan for network |
|
94 */ |
|
95 TInt GetRefreshInterval(); |
|
96 |
|
97 |
|
98 protected: |
|
99 |
|
100 // a pointer to notifer, not owned |
|
101 CConnDlgIapPlugin* iPlugin; |
|
102 |
|
103 ///< Pointer to the dialog, not owned |
|
104 CIapDialog* iDialog; |
|
105 |
|
106 TBool isDialogDeleting; |
|
107 |
|
108 }; |
|
109 |
|
110 |
|
111 #endif |
|
112 |
|
113 // End of File |