calendarui/views/src/calenmonthdata.cpp
changeset 0 f979ecb2b13e
child 18 c198609911f9
child 65 12af337248b1
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002 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:   For data of MonthView by one day.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 //debug
       
    21 #include "calendarui_debug.h"
       
    22 
       
    23 //  INCLUDES
       
    24 #include "calenmonthdata.h"
       
    25 
       
    26 
       
    27 // ================= MEMBER FUNCTIONS =======================
       
    28 
       
    29 // C++ default constructor can NOT contain any code, that
       
    30 // might leave.
       
    31 //
       
    32 TCalenMonthData::TCalenMonthData()
       
    33     : iDay(TInt64(0)), iHasEvents(EFalse)
       
    34     {
       
    35     TRACE_ENTRY_POINT;
       
    36     TRACE_EXIT_POINT;
       
    37     }
       
    38 
       
    39 // C++ constructor can NOT contain any code, that
       
    40 // might leave.
       
    41 //
       
    42 // -----------------------------------------------------------------------------
       
    43 // ?classname::?member_function
       
    44 // ?implementation_description
       
    45 // (other items were commented in a header).
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 TCalenMonthData::TCalenMonthData
       
    49 (TTime aDay)
       
    50     : iDay(aDay), iHasEvents(EFalse)
       
    51     {
       
    52     TRACE_ENTRY_POINT;
       
    53     TRACE_EXIT_POINT;
       
    54     }
       
    55 
       
    56 // Destructor
       
    57 // -----------------------------------------------------------------------------
       
    58 // ?classname::?member_function
       
    59 // ?implementation_description
       
    60 // (other items were commented in a header).
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 TCalenMonthData::~TCalenMonthData()
       
    64     {
       
    65     TRACE_ENTRY_POINT;
       
    66     TRACE_EXIT_POINT;
       
    67     }
       
    68 
       
    69 // ---------------------------------------------------------
       
    70 // TCalenMonthData::Day
       
    71 // return day
       
    72 // (other items were commented in a header).
       
    73 // ---------------------------------------------------------
       
    74 //
       
    75 TTime TCalenMonthData::Day()
       
    76     {
       
    77     TRACE_ENTRY_POINT;
       
    78     
       
    79     TRACE_EXIT_POINT;
       
    80     return iDay;
       
    81     }
       
    82 
       
    83 // -----------------------------------------------------------------------------
       
    84 // ?classname::?member_function
       
    85 // ?implementation_description
       
    86 // (other items were commented in a header).
       
    87 // -----------------------------------------------------------------------------
       
    88 //
       
    89 void TCalenMonthData::SetHasEvents(TBool aHasEvents)
       
    90     {
       
    91     TRACE_ENTRY_POINT;
       
    92     
       
    93     iHasEvents = aHasEvents;
       
    94     
       
    95     TRACE_EXIT_POINT;
       
    96     }
       
    97 
       
    98 // -----------------------------------------------------------------------------
       
    99 // ?classname::?member_function
       
   100 // ?implementation_description
       
   101 // (other items were commented in a header).
       
   102 // -----------------------------------------------------------------------------
       
   103 //
       
   104 TBool TCalenMonthData::HasEvents()
       
   105     {
       
   106     TRACE_ENTRY_POINT;
       
   107           
       
   108     TRACE_EXIT_POINT;
       
   109     return iHasEvents;
       
   110     }
       
   111 
       
   112 
       
   113 // End of File