|
1 /* |
|
2 * Copyright (c) 2007-2009 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: Definition for mrui address selection query |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRADDRESSSELECTIONQUERY_H_ |
|
20 #define CESMRADDRESSSELECTIONQUERY_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 //<cmail> |
|
25 #include "esmrdef.h" |
|
26 //</cmail> |
|
27 |
|
28 // FORWARD DECLARATIONS: |
|
29 class CDesC16ArrayFlat; |
|
30 class CAknPopupList; |
|
31 class CEikonEnv; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CESMRAddressSelectionQuery provides address selection to user |
|
37 * when contact has multiple addresses |
|
38 * |
|
39 */ |
|
40 NONSHARABLE_CLASS( CESMRAddressSelectionQuery : public CBase ) |
|
41 { |
|
42 public: |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 */ |
|
46 static CESMRAddressSelectionQuery* NewL(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CESMRAddressSelectionQuery(); |
|
52 |
|
53 public: //Implementation |
|
54 /* |
|
55 * ExecuteAddresXsSelectionListL shows the address selection list |
|
56 * and returns the selection |
|
57 * |
|
58 * @param aAddressArray the address data from a contact |
|
59 * @return index of the list query selection or negative for cancel |
|
60 */ |
|
61 TInt ExecuteAddressSelectionListL( const RPointerArray<HBufC>& aAddressArray ); |
|
62 |
|
63 private: // Constructors |
|
64 CESMRAddressSelectionQuery(); |
|
65 void ConstructL(); |
|
66 |
|
67 private: // Implementation |
|
68 TInt ExecuteL( const RPointerArray<HBufC>& aAddressArray ); |
|
69 void SetListQueryTextsL( CDesC16ArrayFlat* aItemArray, |
|
70 CAknPopupList* aPopupList, |
|
71 const RPointerArray<HBufC>& aAddressArray ); |
|
72 |
|
73 private: // Data |
|
74 /// Own: Resource offset; |
|
75 TInt iResourceOffset; |
|
76 /// Ref: |
|
77 CEikonEnv* iEnv; |
|
78 }; |
|
79 |
|
80 |
|
81 #endif // CESMRADDRESSSELECTIONQUERY_H_ |
|
82 |
|
83 // End of File |