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 class CNewIapDialog. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __NEWIAPDIALOG_H__ |
|
20 #define __NEWIAPDIALOG_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <AknQueryDialog.h> |
|
26 #include <agentdialog.h> |
|
27 #include "ExpiryTimerCallback.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CConnDlgNewIapPlugin; |
|
31 class CExpiryTimer; |
|
32 |
|
33 // CLASS DECLARATIONS |
|
34 |
|
35 /** |
|
36 * Class implementing New IAP warning dialog. |
|
37 */ |
|
38 NONSHARABLE_CLASS( CNewIapDialog ) : public CAknQueryDialog, public MExpiryTimerCallback |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Constructor the CNewIapDialog class |
|
44 * @param aPlugin plugin pointer |
|
45 * @param aConnect connect to the IAP |
|
46 * @param aPrefs preferences infomation |
|
47 * @return - |
|
48 */ |
|
49 CNewIapDialog( CConnDlgNewIapPlugin* aPlugin, |
|
50 TBool& aConnect, |
|
51 const TNewIapConnectionPrefs& aPrefs ); |
|
52 |
|
53 /** |
|
54 * Destructor |
|
55 */ |
|
56 virtual ~CNewIapDialog(); |
|
57 |
|
58 /** |
|
59 * CBA handling function |
|
60 * @param aButtonId button Uid |
|
61 * @return TBool exit or no |
|
62 */ |
|
63 virtual TBool OkToExitL( TInt aButtonId ); |
|
64 |
|
65 /** |
|
66 * Dialog expiration timeout callback |
|
67 */ |
|
68 void HandleTimedOut(); |
|
69 |
|
70 private: |
|
71 /** |
|
72 * PreLayoutDynInitL function |
|
73 * @param - |
|
74 * @return - |
|
75 */ |
|
76 void PreLayoutDynInitL(); |
|
77 |
|
78 private: |
|
79 // Pointer to the plugin |
|
80 CConnDlgNewIapPlugin* iPlugin; |
|
81 |
|
82 // Specifies way of closing of the dialog. ETrue when 'Yes' or 'Done' |
|
83 // softkeys pressed. |
|
84 TBool& iConnect; |
|
85 |
|
86 // Selected preferences |
|
87 const TNewIapConnectionPrefs& iPrefs; |
|
88 |
|
89 // Pointer for dialog expiration timer |
|
90 CExpiryTimer* iExpiryTimer; |
|
91 }; |
|
92 |
|
93 |
|
94 #endif |
|
95 |
|
96 // End of File |
|