calendarui/views/dayview/tsrc/unittests/unittest_calendayutils/agendaentry.h
changeset 81 ce92091cbd61
equal deleted inserted replaced
75:7ac58b2aae6f 81:ce92091cbd61
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Mocked class AgendaEntry
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef AGENDAENTRY_H
       
    19 #define AGENDAENTRY_H
       
    20 
       
    21 // System includes
       
    22 #include <QObject>
       
    23 #include <QDate>
       
    24 #include <QDateTime>
       
    25 
       
    26 class AgendaEntry
       
    27 {
       
    28 public:
       
    29     AgendaEntry() {
       
    30         
       
    31     }
       
    32     virtual ~AgendaEntry() {
       
    33         
       
    34     }
       
    35     
       
    36     bool setStartAndEndTime(
       
    37             const QDateTime& startTime, const QDateTime& endTime) {
       
    38         mStartTime = startTime;
       
    39         mEndTime = endTime;
       
    40         
       
    41         return true;
       
    42     }
       
    43     
       
    44     QDateTime startTime() const {
       
    45         return mStartTime;
       
    46     }
       
    47     
       
    48     QDateTime endTime() const {
       
    49         return mEndTime;
       
    50     }
       
    51 
       
    52     QDateTime mStartTime;
       
    53     QDateTime mEndTime;
       
    54 };
       
    55 
       
    56 #endif // AGENDAENTRY_H
       
    57 
       
    58 // End of file  --Don't remove this.