25
|
1 |
/*
|
|
2 |
* Copyright (c) 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: Common variables and defines for all fieldbuilders
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef ESMRFIELDBUILDERDEF_H
|
|
20 |
#define ESMRFIELDBUILDERDEF_H
|
|
21 |
|
|
22 |
_LIT( KAddressDelimeterSemiColon, ";" );
|
|
23 |
_LIT( KTimeFieldSeparator, " - ");
|
|
24 |
_LIT( KEmptySpace, " ");
|
|
25 |
_LIT(KDefaultMailBoxURI, "mailbox://");
|
|
26 |
const TText8 KDefaultMailBoxURISeparator = '/';
|
|
27 |
|
|
28 |
const TUint KSemiColon = 59;//ascii letter
|
|
29 |
const TUint KComma = 44;//ascii letter
|
|
30 |
|
|
31 |
const TInt KTextLimit( 2000 );
|
|
32 |
const TInt KMaxAddressFieldLines = 3;
|
|
33 |
|
|
34 |
//needed to offset the difference that HandleEdwinSizeEventL forces on this control
|
|
35 |
//compared to layout manager sizes
|
|
36 |
const TInt KViewerDifference = 3;
|
|
37 |
const TInt KEditorDifference (2);
|
|
38 |
const TInt KViewerSmallFontDifference = 2;
|
|
39 |
|
|
40 |
#define TTIME_MAXIMUMDATE (TTime(TDateTime(2100, EDecember, 31-1, 23, 59, 59, 999999)))
|
|
41 |
#define TTIME_MINIMUMDATE (TTime(TDateTime(1900, EJanuary, 1-1, 0, 0, 0, 0)))
|
|
42 |
|
|
43 |
#define TTIME_TIMEFIELDMAXIMUMDATE (TTime(TDateTime(9999, EDecember, 31-1, 23, 59, 59, 999999)))
|
|
44 |
#define TTIME_TIMEFIELDMINIMUMDATE (TTime(TDateTime(0000, EJanuary, 1-1, 0, 0, 0, 0)))
|
|
45 |
|
|
46 |
const TInt KBufferLength = 32;
|
|
47 |
const TInt KDateStringLength( 64 );
|
|
48 |
const TInt KMaxTextLength (255);
|
|
49 |
|
|
50 |
const TInt KAllDayEventDurationInDays( 1 );
|
|
51 |
|
|
52 |
#endif//ESMRFIELDBUILDERDEF_H
|