|
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: |
|
15 * Group name query dialog. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPbkGroupNameQueryDlg_H__ |
|
21 #define __CPbkGroupNameQueryDlg_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknQueryDialog.h> // CAknTextQueryDialog |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CPbkContactEngine; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * @internal Only Phonebook internal use supported! |
|
32 * |
|
33 * Phonebook Group name query dialog. |
|
34 */ |
|
35 class CPbkGroupNameQueryDlg : |
|
36 public CAknTextQueryDialog |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 /** |
|
40 * Creates a new instance of this class. |
|
41 * @param aDataText data text |
|
42 * @param aEngine reference to phonebook engine |
|
43 * @param aNameGeneration if ETrue, also the group name is updated |
|
44 */ |
|
45 IMPORT_C static CPbkGroupNameQueryDlg* NewL(TDes& aDataText, |
|
46 CPbkContactEngine& aEngine, TBool aNameGeneration = ETrue); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CPbkGroupNameQueryDlg(); |
|
52 |
|
53 public: // from CAknTextQueryDialog |
|
54 IMPORT_C TBool OkToExitL(TInt aButtonId); |
|
55 |
|
56 private: // implementation |
|
57 CPbkGroupNameQueryDlg(TDes& aDataText, CPbkContactEngine& aEngine); |
|
58 void ConstructL(TBool aNameGeneration); |
|
59 void UpdateGroupTitleL(); |
|
60 |
|
61 private: // data |
|
62 /// Ref: Contact engine |
|
63 CPbkContactEngine& iEngine; |
|
64 /// Own: group name array |
|
65 CDesCArrayFlat* iGroupLabelsArray; |
|
66 }; |
|
67 |
|
68 #endif // __CPbkGroupNameQueryDlg_H__ |
|
69 |
|
70 // End of File |