66
|
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 C_AICALENDARPLUGIN2CONSTANTDATA_H
|
|
20 |
#define C_AICALENDARPLUGIN2CONSTANTDATA_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <e32base.h>
|
|
24 |
#include <hscontentpublisher.h>
|
|
25 |
|
|
26 |
// FORWARD DECLARATIONS
|
|
27 |
class MAiContentItemIterator;
|
|
28 |
|
|
29 |
|
|
30 |
/**
|
|
31 |
* Constant data container.
|
|
32 |
* Active Idle Calendar plug-in 2 constant data container.
|
|
33 |
*
|
|
34 |
* @lib aicalendarplugin2
|
|
35 |
* @since S60 3.2
|
|
36 |
*/
|
|
37 |
NONSHARABLE_CLASS( CAICalendarPlugin2ConstantData ) : public CBase
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
|
|
41 |
// Construction
|
|
42 |
|
|
43 |
static CAICalendarPlugin2ConstantData* NewL();
|
|
44 |
|
|
45 |
virtual ~CAICalendarPlugin2ConstantData();
|
|
46 |
|
|
47 |
// New methods
|
|
48 |
|
|
49 |
const TDesC& TimeFormatUsual();
|
|
50 |
|
|
51 |
const TDesC& DateFormatWithoutYearWithZero();
|
|
52 |
|
|
53 |
const TDesC& MakeEventOnL( const TTime& aTime );
|
|
54 |
|
|
55 |
TAny* GetPropertyL( CHsContentPublisher::TProperty aProperty );
|
|
56 |
|
|
57 |
/**
|
|
58 |
* Tell if we need to append end time to "not today timed" events.
|
|
59 |
*/
|
|
60 |
TBool iAppendEndTimeToOngoingItems;
|
|
61 |
|
|
62 |
/**
|
|
63 |
* Tell if we need to use alternate publish for upcoming and ongoing items.
|
|
64 |
*/
|
|
65 |
TBool iUseAlternatePublish;
|
|
66 |
|
|
67 |
/**
|
|
68 |
* Open event in viewer.
|
|
69 |
*/
|
|
70 |
TBool iOpenInViewer;
|
|
71 |
|
|
72 |
/**
|
|
73 |
* Amount of days that we handle as not today categorized.
|
|
74 |
* 1 means tomorrow only etc. 1 - 7.
|
|
75 |
*/
|
|
76 |
TInt iDaysToHandleAsNotToday;
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Open first valid entry on index zero.
|
|
80 |
*/
|
|
81 |
TBool iOpenFirstValid;
|
|
82 |
|
|
83 |
/**
|
|
84 |
* Publish status text and icon with alternate id.
|
|
85 |
*/
|
|
86 |
TBool iUseAlternateInfoPublish;
|
|
87 |
private:
|
|
88 |
|
|
89 |
// Construction
|
|
90 |
|
|
91 |
CAICalendarPlugin2ConstantData();
|
|
92 |
|
|
93 |
void ConstructL();
|
|
94 |
|
|
95 |
private: // Data members
|
|
96 |
|
|
97 |
/**
|
|
98 |
* Usual time format string (examples: "15:45" or "10:20 AM").
|
|
99 |
* Own.
|
|
100 |
*/
|
|
101 |
HBufC* iTimeFormatUsual;
|
|
102 |
|
|
103 |
/**
|
|
104 |
* Short date format string ("15/2/06").
|
|
105 |
* Own.
|
|
106 |
*/
|
|
107 |
HBufC* iDateFormatShortWithZero;
|
|
108 |
|
|
109 |
/**
|
|
110 |
* Short date format string ("05/02").
|
|
111 |
* Own.
|
|
112 |
*/
|
|
113 |
HBufC* iDateFormatWithoutYearWithZero;
|
|
114 |
|
|
115 |
/**
|
|
116 |
* Plugin content iterator.
|
|
117 |
* Own.
|
|
118 |
*/
|
|
119 |
MAiContentItemIterator* iContent;
|
|
120 |
|
|
121 |
/**
|
|
122 |
* Resource content iterator.
|
|
123 |
* Own.
|
|
124 |
*/
|
|
125 |
MAiContentItemIterator* iResources;
|
|
126 |
|
|
127 |
/**
|
|
128 |
* Event content iterator.
|
|
129 |
* Own.
|
|
130 |
*/
|
|
131 |
MAiContentItemIterator* iEvents;
|
|
132 |
|
|
133 |
/**
|
|
134 |
* String for "Next event on [day] [date]"
|
|
135 |
* Own.
|
|
136 |
*/
|
|
137 |
HBufC* iNextEventOnCombined;
|
|
138 |
|
|
139 |
};
|
|
140 |
|
|
141 |
#endif // C_AICALENDARPLUGIN2CONSTANTDATA_H
|
|
142 |
|
|
143 |
|
|
144 |
// End of File
|