diff -r 000000000000 -r f979ecb2b13e calendarui/commonutils/src/CalenStatusPaneUtils.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/commonutils/src/CalenStatusPaneUtils.cpp Tue Feb 02 10:12:19 2010 +0200 @@ -0,0 +1,218 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: For view of calendar application. + * +*/ + + //debug + #include "calendarui_debug.h" + #include + #include "CalenStatusPaneUtilsImpl.h" + + + // ================= MEMBER FUNCTIONS ========================================= + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +EXPORT_C void CCalenStatusPaneUtils::HideNaviPane() + { + TRACE_ENTRY_POINT; + iStatusPaneUtils->HideNaviPane(); + + TRACE_EXIT_POINT; + } +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// + EXPORT_C CAknNavigationDecorator* CCalenStatusPaneUtils::ShowNaviPaneL( const TTime& aActiveDay ) + { + TRACE_ENTRY_POINT; + + TRACE_EXIT_POINT; + return iStatusPaneUtils->ShowNaviPaneL( aActiveDay ); + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +EXPORT_C CCalenStatusPaneUtils* CCalenStatusPaneUtils::NewL( CEikStatusPane* aStatusPane ) + { + TRACE_ENTRY_POINT; + + CCalenStatusPaneUtils* self = new(ELeave) CCalenStatusPaneUtils(); + CleanupStack::PushL( self ); + self->ConstructL( aStatusPane ); + CleanupStack::Pop( self ); + + TRACE_EXIT_POINT; + return self; + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +CCalenStatusPaneUtils::CCalenStatusPaneUtils() + { + TRACE_ENTRY_POINT; + TRACE_EXIT_POINT; + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +void CCalenStatusPaneUtils::ConstructL( CEikStatusPane* aStatusPane ) + { + TRACE_ENTRY_POINT; + + iStatusPaneUtils = CCalenStatusPaneUtilsImpl::NewL( aStatusPane ); + TRACE_EXIT_POINT; + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +EXPORT_C CCalenStatusPaneUtils::~CCalenStatusPaneUtils() + { + TRACE_ENTRY_POINT; + if( iStatusPaneUtils ) + { + delete iStatusPaneUtils; + } + + TRACE_EXIT_POINT; + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +EXPORT_C void CCalenStatusPaneUtils::SetTitleTextL( TDes& aText ) + { + TRACE_ENTRY_POINT; + iStatusPaneUtils->SetTitleTextL( aText ); + + TRACE_EXIT_POINT; + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +EXPORT_C void CCalenStatusPaneUtils::SetTitleText( HBufC* aText ) + { + TRACE_ENTRY_POINT; + iStatusPaneUtils->SetTitleText( aText ); + + TRACE_EXIT_POINT; + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +EXPORT_C void CCalenStatusPaneUtils::UnderLineTitleText( TBool aUnderLine ) + { + TRACE_ENTRY_POINT; + iStatusPaneUtils->UnderLineTitleText( aUnderLine ); + + TRACE_EXIT_POINT; + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +EXPORT_C void CCalenStatusPaneUtils::MonthNameByActiveTime( TDes& name, const TTime& aTime ) + { + TRACE_ENTRY_POINT; + + iStatusPaneUtils->MonthNameByActiveTime( name, aTime ); + + TRACE_EXIT_POINT; + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +EXPORT_C void CCalenStatusPaneUtils::DayNameByActiveTime( TDes& name, const TTime& aTime ) + { + TRACE_ENTRY_POINT; + iStatusPaneUtils->DayNameByActiveTime( name, aTime ); + + TRACE_EXIT_POINT + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +EXPORT_C HBufC* CCalenStatusPaneUtils::WeekNameByActiveTimeL( const TTime& aTime, + TDay aDayFormat, + TCalenWeekTitle aType ) + { + TRACE_ENTRY_POINT; + + HBufC* firstRow = NULL; + firstRow = iStatusPaneUtils->WeekNameByActiveTimeL( aTime, aDayFormat, aType ); + TRACE_EXIT_POINT; + return firstRow; + } + +// ----------------------------------------------------------------------------- +// ?classname::?member_function +// ?implementation_description +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +EXPORT_C void CCalenStatusPaneUtils::RefreshStatusPane() + { + TRACE_ENTRY_POINT; + + iStatusPaneUtils->RefreshStatusPane(); + + TRACE_EXIT_POINT; + } +// End of file