calendarui/views/src/calenmonthdata.cpp
changeset 51 0b38fc5b94c6
parent 18 c198609911f9
child 89 b57382753122
equal deleted inserted replaced
46:ecd7b9840282 51:0b38fc5b94c6
    19 //debug
    19 //debug
    20 #include "calendarui_debug.h"
    20 #include "calendarui_debug.h"
    21 
    21 
    22 //  INCLUDES
    22 //  INCLUDES
    23 #include "calenmonthdata.h"
    23 #include "calenmonthdata.h"
       
    24 #include "OstTraceDefinitions.h"
       
    25 #ifdef OST_TRACE_COMPILER_IN_USE
       
    26 #include "calenmonthdataTraces.h"
       
    27 #endif
       
    28 
    24 
    29 
    25 
    30 
    26 // ================= MEMBER FUNCTIONS =======================
    31 // ================= MEMBER FUNCTIONS =======================
    27 
    32 
    28 // ----------------------------------------------------------------------------
    33 // ----------------------------------------------------------------------------
    32 // ----------------------------------------------------------------------------
    37 // ----------------------------------------------------------------------------
    33 //
    38 //
    34 CalenMonthData::CalenMonthData()
    39 CalenMonthData::CalenMonthData()
    35     : mDay(QDateTime()), mHasEvents(false)
    40     : mDay(QDateTime()), mHasEvents(false)
    36     {
    41     {
    37     TRACE_ENTRY_POINT;
    42     OstTraceFunctionEntry0( CALENMONTHDATA_CALENMONTHDATA_ENTRY );
    38     TRACE_EXIT_POINT;
    43 
       
    44     OstTraceFunctionExit0( CALENMONTHDATA_CALENMONTHDATA_EXIT );
    39     }
    45     }
    40 
    46 
    41 // ----------------------------------------------------------------------------
    47 // ----------------------------------------------------------------------------
    42 // CalenMonthData::CalenMonthData
    48 // CalenMonthData::CalenMonthData
    43 // 
    49 // 
    46 //
    52 //
    47 CalenMonthData::CalenMonthData
    53 CalenMonthData::CalenMonthData
    48 (QDateTime day)
    54 (QDateTime day)
    49     : mDay(day), mHasEvents(false)
    55     : mDay(day), mHasEvents(false)
    50     {
    56     {
    51     TRACE_ENTRY_POINT;
    57     OstTraceFunctionEntry0( DUP1_CALENMONTHDATA_CALENMONTHDATA_ENTRY );
    52     TRACE_EXIT_POINT;
    58     
       
    59     OstTraceFunctionExit0( DUP1_CALENMONTHDATA_CALENMONTHDATA_EXIT );
    53     }
    60     }
    54 
    61 
    55 // ----------------------------------------------------------------------------
    62 // ----------------------------------------------------------------------------
    56 // CalenMonthData::~CalenMonthData
    63 // CalenMonthData::~CalenMonthData
    57 // 
    64 // 
    58 // (other items were commented in a header).
    65 // (other items were commented in a header).
    59 // ----------------------------------------------------------------------------
    66 // ----------------------------------------------------------------------------
    60 //
    67 //
    61 CalenMonthData::~CalenMonthData()
    68 CalenMonthData::~CalenMonthData()
    62     {
    69     {
    63     TRACE_ENTRY_POINT;
    70     OstTraceFunctionEntry0( DUP2_CALENMONTHDATA_CALENMONTHDATA_ENTRY );
    64     TRACE_EXIT_POINT;
    71     
       
    72     OstTraceFunctionExit0( DUP2_CALENMONTHDATA_CALENMONTHDATA_EXIT );
    65     }
    73     }
    66 
    74 
    67 // ---------------------------------------------------------
    75 // ---------------------------------------------------------
    68 // CalenMonthData::Day
    76 // CalenMonthData::Day
    69 // return day
    77 // return day
    70 // (other items were commented in a header).
    78 // (other items were commented in a header).
    71 // ---------------------------------------------------------
    79 // ---------------------------------------------------------
    72 //
    80 //
    73 QDateTime CalenMonthData::Day()
    81 QDateTime CalenMonthData::Day()
    74     {
    82     {
    75     TRACE_ENTRY_POINT;
    83     OstTraceFunctionEntry0( CALENMONTHDATA_DAY_ENTRY );
    76     
    84     
    77     TRACE_EXIT_POINT;
    85     OstTraceFunctionExit0( CALENMONTHDATA_DAY_EXIT );
    78     return mDay;
    86     return mDay;
    79     }
    87     }
    80 
    88 
    81 // -----------------------------------------------------------------------------
    89 // -----------------------------------------------------------------------------
    82 // ?classname::SetHasEvents
    90 // ?classname::SetHasEvents
    84 // (other items were commented in a header).
    92 // (other items were commented in a header).
    85 // -----------------------------------------------------------------------------
    93 // -----------------------------------------------------------------------------
    86 //
    94 //
    87 void CalenMonthData::SetHasEvents(bool hasEvents)
    95 void CalenMonthData::SetHasEvents(bool hasEvents)
    88     {
    96     {
    89     TRACE_ENTRY_POINT;
    97     OstTraceFunctionEntry0( CALENMONTHDATA_SETHASEVENTS_ENTRY );
    90     
    98     
    91     mHasEvents = hasEvents;
    99     mHasEvents = hasEvents;
    92     
   100     
    93     TRACE_EXIT_POINT;
   101     OstTraceFunctionExit0( CALENMONTHDATA_SETHASEVENTS_EXIT );
    94     }
   102     }
    95 
   103 
    96 // -----------------------------------------------------------------------------
   104 // -----------------------------------------------------------------------------
    97 // ?classname::HasEvents
   105 // ?classname::HasEvents
    98 // ?implementation_description
   106 // ?implementation_description
    99 // (other items were commented in a header).
   107 // (other items were commented in a header).
   100 // -----------------------------------------------------------------------------
   108 // -----------------------------------------------------------------------------
   101 //
   109 //
   102 bool CalenMonthData::HasEvents()
   110 bool CalenMonthData::HasEvents()
   103     {
   111     {
   104     TRACE_ENTRY_POINT;
   112     OstTraceFunctionEntry0( CALENMONTHDATA_HASEVENTS_ENTRY );
   105     
   113     
   106     TRACE_EXIT_POINT;
   114     OstTraceFunctionExit0( CALENMONTHDATA_HASEVENTS_EXIT );
   107     return mHasEvents;
   115     return mHasEvents;
   108     }
   116     }
   109 
   117 
   110 void CalenMonthData::setActive(bool isActive)
   118 void CalenMonthData::setActive(bool isActive)
   111     {
   119     {
       
   120     OstTraceFunctionEntry0( CALENMONTHDATA_SETACTIVE_ENTRY );
       
   121     
   112     mIsActive = isActive;
   122     mIsActive = isActive;
       
   123     
       
   124     OstTraceFunctionExit0( CALENMONTHDATA_SETACTIVE_EXIT );
   113     }
   125     }
   114 
   126 
   115 bool CalenMonthData::isActive()
   127 bool CalenMonthData::isActive()
   116     {
   128     {
       
   129     OstTraceFunctionEntry0( CALENMONTHDATA_ISACTIVE_ENTRY );
       
   130     
       
   131     OstTraceFunctionExit0( CALENMONTHDATA_ISACTIVE_EXIT );
   117     return mIsActive;
   132     return mIsActive;
   118     }
   133     }
   119 // End of File
   134 // End of File