|
1 /* |
|
2 * Copyright (c) 2007-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IAUPDATEDIALOGUTIL_H |
|
21 #define IAUPDATEDIALOGUTIL_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 |
|
28 //FORWARD DECLARATIONS |
|
29 class MIAUpdateNode; |
|
30 |
|
31 |
|
32 /** |
|
33 * TIAUpdateTextLinkObserver |
|
34 * |
|
35 * Observer interface function for observing text link. |
|
36 */ |
|
37 class MIAUpdateTextLinkObserver |
|
38 { |
|
39 public: |
|
40 virtual void TextLinkL( TInt aLinkId ) = 0; |
|
41 }; |
|
42 |
|
43 |
|
44 /** |
|
45 * TIAUpdateDialogParam |
|
46 * |
|
47 * This class is used as general dialog parameter type. |
|
48 */ |
|
49 class TIAUpdateDialogParam |
|
50 { |
|
51 public: |
|
52 TInt iCountSuccessfull; |
|
53 TInt iCountCancelled; |
|
54 TInt iCountFailed; |
|
55 TInt iShowCloseAllText; |
|
56 TInt iResourceId; |
|
57 MIAUpdateNode* iNode; |
|
58 MIAUpdateTextLinkObserver* iLinkObserver; |
|
59 |
|
60 public: |
|
61 TIAUpdateDialogParam(); |
|
62 |
|
63 }; |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 /** |
|
69 * IAUpdateDialogUtil |
|
70 * |
|
71 * IAUpdateDialogUtil contains general dialog utilities. |
|
72 */ |
|
73 class IAUpdateDialogUtil |
|
74 { |
|
75 public: |
|
76 static void ShowMessageQueryL( const TDesC& aTitle, const TDesC& aText) ; |
|
77 static void ShowMessageQueryL( const TDesC& aTitle, TInt aResource ); |
|
78 |
|
79 static void ShowInformationQueryL( const TDesC& aText ); |
|
80 static void ShowInformationQueryL( TInt aResource ); |
|
81 |
|
82 static TInt ShowConfirmationQueryL( const TDesC& aText, TInt aSoftkeyResourceId ); |
|
83 static TInt ShowConfirmationQueryL( TInt aResource, TInt aSoftkeyResourceId ); |
|
84 |
|
85 static void Panic( TInt aReason ); |
|
86 }; |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 #endif // IAUPDATEDIALOGUTIL_H |
|
93 |
|
94 // End of File |