|
1 /* |
|
2 * Copyright (c) 2005-2006 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 #ifndef MUSUICONTACTUTIL_H |
|
20 #define MUSUICONTACTUTIL_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <coemain.h> |
|
24 #include <CPbkContactEngine.h> |
|
25 #include <CPbkContactItem.h> |
|
26 |
|
27 class MusUiContactUtil |
|
28 { |
|
29 |
|
30 public: |
|
31 |
|
32 /** |
|
33 */ |
|
34 static TBool ShareViewFieldExistsL( CCoeEnv& aEnv, TInt aContactId ); |
|
35 |
|
36 /** |
|
37 */ |
|
38 static TBool CheckPbContactForVSAddressesL( CCoeEnv& aEnv, |
|
39 const TDesC& aOriginator, |
|
40 TInt aContactId); |
|
41 /** |
|
42 */ |
|
43 static TBool MatchTextWithPbFieldsL( CCoeEnv& aEnv, |
|
44 TPbkFieldId aFieldId, |
|
45 const TDesC& aText, |
|
46 TInt aContactId); |
|
47 /** |
|
48 */ |
|
49 static void ActivateContactViewL( CCoeEnv& aEnv, |
|
50 TContactItemId aId, |
|
51 const TDesC& aTypedAddress, |
|
52 const TDesC& aMusTelNumberValue ); |
|
53 |
|
54 private: |
|
55 |
|
56 /** |
|
57 */ |
|
58 static void EditContactL( CPbkContactItem& aContact, |
|
59 TBool aNewOne, |
|
60 CPbkContactEngine* aPbkContactEngine, |
|
61 const TDesC& aTypedAddress, |
|
62 const TDesC& aMusTelNumberValue, |
|
63 TContactItemId aId ); |
|
64 |
|
65 /** |
|
66 */ |
|
67 static CContactTextField* EditableContactFieldL( |
|
68 CPbkContactItem& aContact, |
|
69 TInt aFieldId, |
|
70 CPbkContactEngine* aPbkContactEngine ); |
|
71 }; |
|
72 |
|
73 |
|
74 |
|
75 #endif // MUSUICONTACTUTIL_H |