|
1 /* |
|
2 * Copyright (c) 2010 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: Helper class for easydialing. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __EASYDIALINGUTILS_H__ |
|
19 #define __EASYDIALINGUTILS_H__ |
|
20 |
|
21 #include <CPbkContactEngine.h> // for TPbkNameOrder |
|
22 |
|
23 class EasyDialingUtils |
|
24 { |
|
25 public: |
|
26 |
|
27 /* |
|
28 * Creates contact string from first name, last name and company name. |
|
29 * F.ex. "Firstname Lastname\tCompany" |
|
30 * @param aFirstName First name |
|
31 * @param aFirstName Last name |
|
32 * @param aFirstName Comapany name |
|
33 * @param aNameOrder The name ordering to be used |
|
34 * @return Contact string (in cleanupstack) |
|
35 */ |
|
36 static HBufC* CreateContactStringLC( |
|
37 const TDesC& aFirstName, |
|
38 const TDesC& aLastName, |
|
39 const TDesC& aCompanyName, |
|
40 CPbkContactEngine::TPbkNameOrder aNameOrder ); |
|
41 }; |
|
42 |
|
43 #endif //__EASYDIALINGUTILS_H__ |
|
44 |
|
45 |