calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calencontext.h
author hgs
Mon, 20 Sep 2010 12:44:39 +0530
changeset 75 7ac58b2aae6f
parent 45 b6db4fd4947b
child 81 ce92091cbd61
permissions -rw-r--r--
201037

/*
 * 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:  Calendar context, info on what's currently focused
 *
 */

#ifndef CALENCONTEXT_H
#define CALENCONTEXT_H
#include <QDateTime>

// FORWARD DECLARATIONS
class TCalenInstanceId;
class QDateTime;

// INCLUDES

// CLASS DEFINITIONS
/**
 * The controller handles events from the rest of Calendar and delegates
 * them to the appropriate place (i.e. the action ui classes).
 */
class MCalenContext
	{
public:
	QDateTime focusDateAndTime()
		{
		return QDateTime(QDate(2000, 10, 10));
		}

	void setFocusDate(const QDateTime& focusDateTime)
		{
		Q_UNUSED(focusDateTime);
		}

	void setFocusDateAndTime(const QDateTime& focusDateTime)
		{
		Q_UNUSED(focusDateTime);
		}

	QDateTime defaultCalTimeForViewsL()
		{
		return QDateTime(QDate(2000, 10, 10));
		}
    
	void setFocusDateAndTimeAndInstance( const QDateTime& focusDateTime,
                                         const TCalenInstanceId& aInstanceId )
    {
        Q_UNUSED(focusDateTime);
        Q_UNUSED(aInstanceId);
    }

	};

#endif // CALENCONTEXT_H
// End of file