|
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 |
|
29 NONSHARABLE_CLASS( CCalenStatusPaneUtilsImpl ) : public CBase |
|
30 { |
|
31 public: // Constructor and destructor |
|
32 static CCalenStatusPaneUtilsImpl* NewL( CEikStatusPane* aStatusPane ); |
|
33 virtual ~CCalenStatusPaneUtilsImpl(); |
|
34 |
|
35 public: |
|
36 void SetTitleTextL( TDes& aText ); |
|
37 |
|
38 void SetTitleText( HBufC* aText ); |
|
39 |
|
40 void UnderLineTitleText( TBool aUnderline ); |
|
41 |
|
42 CAknNavigationDecorator* ShowNaviPaneL( const TTime& aActiveDay ); |
|
43 |
|
44 void HideNaviPane(); |
|
45 |
|
46 void MonthNameByActiveTime( TDes& name, const TTime& aTime ); |
|
47 |
|
48 void DayNameByActiveTime( TDes& name, const TTime& aTime ); |
|
49 |
|
50 HBufC* WeekNameByActiveTimeL( const TTime& aTime, TDay aDayFormat, TCalenWeekTitle aType ); |
|
51 |
|
52 void RefreshStatusPane(); |
|
53 private: |
|
54 CCalenStatusPaneUtilsImpl( CEikStatusPane* aStatusPane ); |
|
55 void ConstructL(); |
|
56 |
|
57 private: //DATA |
|
58 CEikStatusPane* iStatusPane; // not own |
|
59 CCalenTitlePane* iTitlePane; // not own |
|
60 CAknNavigationControlContainer* iNaviContainer; // not own |
|
61 CAknNavigationDecorator* iNaviLabel; // own |
|
62 |
|
63 HBufC* iNoYearDateFormat; // own |
|
64 HBufC* iShortDateFormat; // own |
|
65 HBufC* iLongDateFormat; // own |
|
66 CDesCArrayFlat* iMonthArray; // own |
|
67 CDesCArrayFlat* iDayNameArray; // own |
|
68 }; |
|
69 |
|
70 //end of file |
|
71 |