|
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 * PbkFieldFormatterFactory implementation factory. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __PbkFieldFormatterFactory_H__ |
|
21 #define __PbkFieldFormatterFactory_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MPbkPhoneNumberFormat; |
|
28 class PbkFieldFormatterFactory; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * MPbkPhoneNumberFormat implementation factory. |
|
34 * |
|
35 * @see MPbkPhoneNumberFormat |
|
36 */ |
|
37 NONSHARABLE_CLASS(PbkFieldFormatterFactory) |
|
38 { |
|
39 public: // Interface |
|
40 /** |
|
41 * Creates and returns a MPbkPhoneNumberFormat implementation. |
|
42 * |
|
43 * @param aMaxPhoneNumberDisplayLength maximum length of a phone |
|
44 * number on the display. The returned phone number formatter |
|
45 * may not support longer phone numbers. |
|
46 * @return a phone number formatted implementation. |
|
47 */ |
|
48 static MPbkPhoneNumberFormat* CreatePhoneNumberFormatterL |
|
49 (TInt aMaxPhoneNumberDisplayLength); |
|
50 |
|
51 private: // Disabled functions |
|
52 PbkFieldFormatterFactory(); |
|
53 PbkFieldFormatterFactory(const PbkFieldFormatterFactory&); |
|
54 }; |
|
55 |
|
56 #endif // __PbkFieldFormatterFactory_H__ |
|
57 |
|
58 // End of File |