|
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 * UI control for Phonebook's "Add to group". |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPbkAddToGroup_H__ |
|
21 #define __CPbkAddToGroup_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <cntdef.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CPbkContactEngine; |
|
29 class CPbkGroupPopup; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * @internal Only Phonebook internal use supported! |
|
35 * |
|
36 * Phonebooks Add to Group popup list. |
|
37 */ |
|
38 class CPbkAddToGroup : public CBase |
|
39 { |
|
40 public: // interface |
|
41 /** |
|
42 * Creates a new instance of this class. |
|
43 */ |
|
44 IMPORT_C static CPbkAddToGroup* NewL(); |
|
45 |
|
46 /** |
|
47 * Executes and deletes (also if a leave occurs) this dialog. |
|
48 * |
|
49 * @param aEngine Phonebook engine |
|
50 * @return the selected group id or KNullContactId |
|
51 */ |
|
52 IMPORT_C TContactItemId ExecuteLD(CPbkContactEngine& aEngine); |
|
53 |
|
54 /** |
|
55 * Destructor. Also makes ExecuteLD return like the dialog was cancelled. |
|
56 */ |
|
57 ~CPbkAddToGroup(); |
|
58 |
|
59 private: // Implementation |
|
60 CPbkAddToGroup(); |
|
61 |
|
62 private: // data |
|
63 /// Own: group selection popup |
|
64 CPbkGroupPopup* iGroupPopup; |
|
65 /// Ref: destructor sets referred TBool to ETrue |
|
66 TBool* iDestroyedPtr; |
|
67 }; |
|
68 |
|
69 #endif // __CPbkAddToGroup_H__ |
|
70 |
|
71 // End of File |