66
|
1 |
/*
|
|
2 |
* Copyright (c) 2002, 2003 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 |
// CLASS DECLARATION
|
|
20 |
#include <badesca.h>
|
|
21 |
#include <calenconstants.h>
|
|
22 |
|
|
23 |
// Forward declaration
|
|
24 |
class CAknNavigationControlContainer;
|
|
25 |
class CEikStatusPane;
|
|
26 |
class CAknNavigationDecorator;
|
|
27 |
class CCalenTitlePane;
|
|
28 |
class TRgb;
|
|
29 |
|
|
30 |
NONSHARABLE_CLASS( CCalenStatusPaneUtilsImpl ) : public CBase
|
|
31 |
{
|
|
32 |
public: // Constructor and destructor
|
|
33 |
static CCalenStatusPaneUtilsImpl* NewL( CEikStatusPane* aStatusPane );
|
|
34 |
virtual ~CCalenStatusPaneUtilsImpl();
|
|
35 |
|
|
36 |
public:
|
|
37 |
void SetTitleTextL( TDes& aText );
|
|
38 |
|
|
39 |
void SetTitleText( HBufC* aText );
|
|
40 |
|
|
41 |
void UnderLineTitleText( TBool aUnderline );
|
|
42 |
|
|
43 |
CAknNavigationDecorator* ShowNaviPaneL( const TTime& aActiveDay );
|
|
44 |
CAknNavigationDecorator* ShowNaviPaneL( const TDesC& aName, const TRgb aColor );
|
|
45 |
|
|
46 |
void HideNaviPane();
|
|
47 |
|
|
48 |
void MonthNameByActiveTime( TDes& name, const TTime& aTime );
|
|
49 |
|
|
50 |
void DayNameByActiveTime( TDes& name, const TTime& aTime );
|
|
51 |
|
|
52 |
HBufC* WeekNameByActiveTimeL( const TTime& aTime, TDay aDayFormat, TCalenWeekTitle aType );
|
|
53 |
|
|
54 |
void RefreshStatusPane();
|
|
55 |
private:
|
|
56 |
CCalenStatusPaneUtilsImpl( CEikStatusPane* aStatusPane );
|
|
57 |
void ConstructL();
|
|
58 |
|
|
59 |
private: //DATA
|
|
60 |
CEikStatusPane* iStatusPane; // not own
|
|
61 |
CCalenTitlePane* iTitlePane; // not own
|
|
62 |
CAknNavigationControlContainer* iNaviContainer; // not own
|
|
63 |
CAknNavigationDecorator* iNaviLabel; // own
|
|
64 |
|
|
65 |
HBufC* iNoYearDateFormat; // own
|
|
66 |
HBufC* iShortDateFormat; // own
|
|
67 |
HBufC* iLongDateFormat; // own
|
|
68 |
CDesCArrayFlat* iMonthArray; // own
|
|
69 |
CDesCArrayFlat* iDayNameArray; // own
|
|
70 |
};
|
|
71 |
|
|
72 |
//end of file
|
|
73 |
|