calendarui/commonutils/src/CalenStatusPaneUtils.cpp
changeset 0 f979ecb2b13e
child 25 bf573002ff72
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2007 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 view of calendar application.
       
    15  *
       
    16 */
       
    17 
       
    18  //debug
       
    19  #include "calendarui_debug.h"
       
    20  #include <CalenStatusPaneUtils.h>
       
    21  #include "CalenStatusPaneUtilsImpl.h"
       
    22  
       
    23  
       
    24  // ================= MEMBER FUNCTIONS =========================================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // ?classname::?member_function
       
    28 // ?implementation_description
       
    29 // (other items were commented in a header).
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 EXPORT_C void CCalenStatusPaneUtils::HideNaviPane()
       
    33     {
       
    34     TRACE_ENTRY_POINT;
       
    35     iStatusPaneUtils->HideNaviPane();
       
    36 
       
    37     TRACE_EXIT_POINT;
       
    38     }
       
    39 // -----------------------------------------------------------------------------
       
    40 // ?classname::?member_function
       
    41 // ?implementation_description
       
    42 // (other items were commented in a header).
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45  EXPORT_C CAknNavigationDecorator* CCalenStatusPaneUtils::ShowNaviPaneL( const TTime& aActiveDay )
       
    46     {
       
    47     TRACE_ENTRY_POINT;
       
    48 
       
    49     TRACE_EXIT_POINT;
       
    50     return iStatusPaneUtils->ShowNaviPaneL( aActiveDay );
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // ?classname::?member_function
       
    55 // ?implementation_description
       
    56 // (other items were commented in a header).
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 EXPORT_C CCalenStatusPaneUtils* CCalenStatusPaneUtils::NewL( CEikStatusPane* aStatusPane )
       
    60     {
       
    61     TRACE_ENTRY_POINT;
       
    62     
       
    63     CCalenStatusPaneUtils* self = new(ELeave) CCalenStatusPaneUtils();
       
    64     CleanupStack::PushL( self );
       
    65     self->ConstructL( aStatusPane );
       
    66     CleanupStack::Pop( self );
       
    67     
       
    68     TRACE_EXIT_POINT;
       
    69     return self;
       
    70     }
       
    71     
       
    72 // -----------------------------------------------------------------------------
       
    73 // ?classname::?member_function
       
    74 // ?implementation_description
       
    75 // (other items were commented in a header).
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 CCalenStatusPaneUtils::CCalenStatusPaneUtils()
       
    79     {
       
    80     TRACE_ENTRY_POINT;
       
    81     TRACE_EXIT_POINT;
       
    82     }
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // ?classname::?member_function
       
    86 // ?implementation_description
       
    87 // (other items were commented in a header).
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 void CCalenStatusPaneUtils::ConstructL( CEikStatusPane* aStatusPane )
       
    91     {
       
    92     TRACE_ENTRY_POINT;
       
    93     
       
    94     iStatusPaneUtils = CCalenStatusPaneUtilsImpl::NewL( aStatusPane );
       
    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 EXPORT_C CCalenStatusPaneUtils::~CCalenStatusPaneUtils() 
       
   105     {
       
   106     TRACE_ENTRY_POINT;
       
   107     if( iStatusPaneUtils )
       
   108     {
       
   109     	delete iStatusPaneUtils;
       
   110     }
       
   111     
       
   112     TRACE_EXIT_POINT;
       
   113     }
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // ?classname::?member_function
       
   117 // ?implementation_description
       
   118 // (other items were commented in a header).
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 EXPORT_C void CCalenStatusPaneUtils::SetTitleTextL( TDes& aText )
       
   122     {
       
   123     TRACE_ENTRY_POINT;
       
   124     iStatusPaneUtils->SetTitleTextL( aText );
       
   125 
       
   126     TRACE_EXIT_POINT;
       
   127     }
       
   128 
       
   129 // -----------------------------------------------------------------------------
       
   130 // ?classname::?member_function
       
   131 // ?implementation_description
       
   132 // (other items were commented in a header).
       
   133 // -----------------------------------------------------------------------------
       
   134 //
       
   135 EXPORT_C void CCalenStatusPaneUtils::SetTitleText( HBufC* aText )
       
   136     {
       
   137     TRACE_ENTRY_POINT;
       
   138 		iStatusPaneUtils->SetTitleText( aText );
       
   139     
       
   140     TRACE_EXIT_POINT;
       
   141     }
       
   142 
       
   143 // -----------------------------------------------------------------------------
       
   144 // ?classname::?member_function
       
   145 // ?implementation_description
       
   146 // (other items were commented in a header).
       
   147 // -----------------------------------------------------------------------------
       
   148 //
       
   149 EXPORT_C void CCalenStatusPaneUtils::UnderLineTitleText( TBool aUnderLine )
       
   150     {
       
   151     TRACE_ENTRY_POINT;
       
   152 		iStatusPaneUtils->UnderLineTitleText( aUnderLine );
       
   153     
       
   154     TRACE_EXIT_POINT;
       
   155     }
       
   156     
       
   157 // -----------------------------------------------------------------------------
       
   158 // ?classname::?member_function
       
   159 // ?implementation_description
       
   160 // (other items were commented in a header).
       
   161 // -----------------------------------------------------------------------------
       
   162 //
       
   163 EXPORT_C void CCalenStatusPaneUtils::MonthNameByActiveTime( TDes& name, const TTime& aTime )
       
   164     {
       
   165     TRACE_ENTRY_POINT;
       
   166     
       
   167     iStatusPaneUtils->MonthNameByActiveTime( name, aTime );
       
   168     
       
   169     TRACE_EXIT_POINT;
       
   170     }
       
   171 
       
   172 // -----------------------------------------------------------------------------
       
   173 // ?classname::?member_function
       
   174 // ?implementation_description
       
   175 // (other items were commented in a header).
       
   176 // -----------------------------------------------------------------------------
       
   177 //
       
   178 EXPORT_C void CCalenStatusPaneUtils::DayNameByActiveTime( TDes& name, const TTime& aTime )
       
   179     {
       
   180     TRACE_ENTRY_POINT;
       
   181     iStatusPaneUtils->DayNameByActiveTime( name, aTime );
       
   182     
       
   183     TRACE_EXIT_POINT
       
   184     }
       
   185     
       
   186 // -----------------------------------------------------------------------------
       
   187 // ?classname::?member_function
       
   188 // ?implementation_description
       
   189 // (other items were commented in a header).
       
   190 // -----------------------------------------------------------------------------
       
   191 //
       
   192 EXPORT_C HBufC* CCalenStatusPaneUtils::WeekNameByActiveTimeL( const TTime& aTime,
       
   193                                                                               TDay aDayFormat,
       
   194                                                                               TCalenWeekTitle aType )
       
   195     {
       
   196     TRACE_ENTRY_POINT;
       
   197 
       
   198     HBufC* firstRow = NULL;
       
   199     firstRow = iStatusPaneUtils->WeekNameByActiveTimeL( aTime, aDayFormat, aType );
       
   200     TRACE_EXIT_POINT;
       
   201     return firstRow;
       
   202     }
       
   203 
       
   204 // -----------------------------------------------------------------------------
       
   205 // ?classname::?member_function
       
   206 // ?implementation_description
       
   207 // (other items were commented in a header).
       
   208 // -----------------------------------------------------------------------------
       
   209 //
       
   210 EXPORT_C void CCalenStatusPaneUtils::RefreshStatusPane()
       
   211     {
       
   212     TRACE_ENTRY_POINT;
       
   213     
       
   214     iStatusPaneUtils->RefreshStatusPane();
       
   215     
       
   216     TRACE_EXIT_POINT;
       
   217     }
       
   218 // End of file