|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Phonebook 2 general confirmation query. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBK2GENERALCONFIRMATIONQUERY_H |
|
20 #define CPBK2GENERALCONFIRMATIONQUERY_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CAknQueryDialog; |
|
27 class MVPbkBaseContact; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Phonebook 2 general confirmation query. |
|
33 */ |
|
34 class CPbk2GeneralConfirmationQuery : public CBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Creates a new instance of this class. |
|
40 * |
|
41 * @return A new instance of this class. |
|
42 */ |
|
43 IMPORT_C static CPbk2GeneralConfirmationQuery* NewL(); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CPbk2GeneralConfirmationQuery(); |
|
49 |
|
50 public: // Interface |
|
51 |
|
52 /** |
|
53 * Executes the dialog. |
|
54 * |
|
55 * @param aContact The contact whose name is used in the dialog. |
|
56 * @param aResId Resource id for the text to be shown. |
|
57 * @return Greater than zero if the user confirmed. |
|
58 * Less than zero or zero in other cases. |
|
59 */ |
|
60 IMPORT_C TInt ExecuteLD( |
|
61 const MVPbkBaseContact& aContact, |
|
62 TInt aResId ); |
|
63 |
|
64 |
|
65 /** |
|
66 * Executes this dialog to confirm deletion of a multiple contacts. |
|
67 * |
|
68 * @param aAmountOfContacts The amount of contacts to |
|
69 * operate with. Should be greater |
|
70 * than one. |
|
71 * @param aResId Resource id for the text |
|
72 * to be shown. |
|
73 * @return Greater than zero if the user confirmed. |
|
74 * Less than zero or zero in other cases. |
|
75 */ |
|
76 IMPORT_C TInt ExecuteLD( |
|
77 TInt aAmountOfContacts, |
|
78 TInt aResId ); |
|
79 /** |
|
80 * Executes the dialog. |
|
81 * |
|
82 * @param aContact The contact whose name is used in the dialog. |
|
83 * @param aResId Resource id for the text to be shown. |
|
84 * @param aFormatFlag Format flag info for string |
|
85 * @return Greater than zero if the user confirmed. |
|
86 * Less than zero or zero in other cases. |
|
87 */ |
|
88 IMPORT_C TInt ExecuteLD |
|
89 ( const MVPbkBaseContact& aContact, TInt aResId, TInt aFormatFlag ); |
|
90 |
|
91 /** |
|
92 * Force the query dialog to terminate as getting choice of |
|
93 * right softkey |
|
94 */ |
|
95 IMPORT_C void StopQuery(); |
|
96 |
|
97 private: // Implementation |
|
98 CPbk2GeneralConfirmationQuery(); |
|
99 |
|
100 private: |
|
101 CAknQueryDialog* iQueryDlg; |
|
102 }; |
|
103 |
|
104 #endif // CPBK2GENERALCONFIRMATIONQUERY_H |
|
105 |
|
106 // End of File |