calendarui/views/src/calenmonthdata.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:11:28 +0300
changeset 49 5de72ea7a065
parent 18 c198609911f9
child 51 0b38fc5b94c6
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* 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"
* 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:  CalenMonthData implementation.
*
*/


//debug
#include "calendarui_debug.h"

//  INCLUDES
#include "calenmonthdata.h"


// ================= MEMBER FUNCTIONS =======================

// ----------------------------------------------------------------------------
// CalenMonthData::CalenMonthData
// 
// (other items were commented in a header).
// ----------------------------------------------------------------------------
//
CalenMonthData::CalenMonthData()
    : mDay(QDateTime()), mHasEvents(false)
    {
    TRACE_ENTRY_POINT;
    TRACE_EXIT_POINT;
    }

// ----------------------------------------------------------------------------
// CalenMonthData::CalenMonthData
// 
// (other items were commented in a header).
// ----------------------------------------------------------------------------
//
CalenMonthData::CalenMonthData
(QDateTime day)
    : mDay(day), mHasEvents(false)
    {
    TRACE_ENTRY_POINT;
    TRACE_EXIT_POINT;
    }

// ----------------------------------------------------------------------------
// CalenMonthData::~CalenMonthData
// 
// (other items were commented in a header).
// ----------------------------------------------------------------------------
//
CalenMonthData::~CalenMonthData()
    {
    TRACE_ENTRY_POINT;
    TRACE_EXIT_POINT;
    }

// ---------------------------------------------------------
// CalenMonthData::Day
// return day
// (other items were commented in a header).
// ---------------------------------------------------------
//
QDateTime CalenMonthData::Day()
    {
    TRACE_ENTRY_POINT;
    
    TRACE_EXIT_POINT;
    return mDay;
    }

// -----------------------------------------------------------------------------
// ?classname::SetHasEvents
// ?implementation_description
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
void CalenMonthData::SetHasEvents(bool hasEvents)
    {
    TRACE_ENTRY_POINT;
    
    mHasEvents = hasEvents;
    
    TRACE_EXIT_POINT;
    }

// -----------------------------------------------------------------------------
// ?classname::HasEvents
// ?implementation_description
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
bool CalenMonthData::HasEvents()
    {
    TRACE_ENTRY_POINT;
    
    TRACE_EXIT_POINT;
    return mHasEvents;
    }

void CalenMonthData::setActive(bool isActive)
    {
    mIsActive = isActive;
    }

bool CalenMonthData::isActive()
    {
    return mIsActive;
    }
// End of File