--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calencontext.h Tue Jul 06 14:14:56 2010 +0300
@@ -0,0 +1,59 @@
+/*
+ * 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));
+ }
+
+ };
+
+#endif // CALENCONTEXT_H
+// End of file