diff -r f979ecb2b13e -r c198609911f9 calendarui/views/src/calenmonthdata.cpp --- a/calendarui/views/src/calenmonthdata.cpp Tue Feb 02 10:12:19 2010 +0200 +++ b/calendarui/views/src/calenmonthdata.cpp Fri Apr 16 14:57:40 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2009 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" @@ -11,12 +11,11 @@ * * Contributors: * -* Description: For data of MonthView by one day. - * +* Description: CalenMonthData implementation. +* */ - //debug #include "calendarui_debug.h" @@ -26,88 +25,95 @@ // ================= MEMBER FUNCTIONS ======================= -// C++ default constructor can NOT contain any code, that -// might leave. +// ---------------------------------------------------------------------------- +// CalenMonthData::CalenMonthData +// +// (other items were commented in a header). +// ---------------------------------------------------------------------------- // -TCalenMonthData::TCalenMonthData() - : iDay(TInt64(0)), iHasEvents(EFalse) +CalenMonthData::CalenMonthData() + : mDay(QDateTime()), mHasEvents(false) { TRACE_ENTRY_POINT; TRACE_EXIT_POINT; } -// C++ constructor can NOT contain any code, that -// might leave. +// ---------------------------------------------------------------------------- +// CalenMonthData::CalenMonthData +// +// (other items were commented in a header). +// ---------------------------------------------------------------------------- // -// ----------------------------------------------------------------------------- -// ?classname::?member_function -// ?implementation_description -// (other items were commented in a header). -// ----------------------------------------------------------------------------- -// -TCalenMonthData::TCalenMonthData -(TTime aDay) - : iDay(aDay), iHasEvents(EFalse) +CalenMonthData::CalenMonthData +(QDateTime day) + : mDay(day), mHasEvents(false) { TRACE_ENTRY_POINT; TRACE_EXIT_POINT; } -// Destructor -// ----------------------------------------------------------------------------- -// ?classname::?member_function -// ?implementation_description +// ---------------------------------------------------------------------------- +// CalenMonthData::~CalenMonthData +// // (other items were commented in a header). -// ----------------------------------------------------------------------------- +// ---------------------------------------------------------------------------- // -TCalenMonthData::~TCalenMonthData() +CalenMonthData::~CalenMonthData() { TRACE_ENTRY_POINT; TRACE_EXIT_POINT; } // --------------------------------------------------------- -// TCalenMonthData::Day +// CalenMonthData::Day // return day // (other items were commented in a header). // --------------------------------------------------------- // -TTime TCalenMonthData::Day() +QDateTime CalenMonthData::Day() { TRACE_ENTRY_POINT; TRACE_EXIT_POINT; - return iDay; + return mDay; } // ----------------------------------------------------------------------------- -// ?classname::?member_function +// ?classname::SetHasEvents // ?implementation_description // (other items were commented in a header). // ----------------------------------------------------------------------------- // -void TCalenMonthData::SetHasEvents(TBool aHasEvents) +void CalenMonthData::SetHasEvents(bool hasEvents) { TRACE_ENTRY_POINT; - iHasEvents = aHasEvents; + mHasEvents = hasEvents; TRACE_EXIT_POINT; } // ----------------------------------------------------------------------------- -// ?classname::?member_function +// ?classname::HasEvents // ?implementation_description // (other items were commented in a header). // ----------------------------------------------------------------------------- // -TBool TCalenMonthData::HasEvents() +bool CalenMonthData::HasEvents() { TRACE_ENTRY_POINT; - + TRACE_EXIT_POINT; - return iHasEvents; + return mHasEvents; } +void CalenMonthData::setActive(bool isActive) + { + mIsActive = isActive; + } +bool CalenMonthData::isActive() + { + return mIsActive; + } // End of File