emailuis/uicomponents/src/fsseparatordata.cpp
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     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:  Data class for a separator item.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 //#include <fsconfig.h>
       
    20 
       
    21 #include "emailtrace.h"
       
    22 #include "fsseparatordata.h"
       
    23 // <cmail> SF
       
    24 #include <alf/alftexture.h>
       
    25 // </cmail>
       
    26 // ======== MEMBER FUNCTIONS ========
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // Two-phased constructor.
       
    30 // ---------------------------------------------------------------------------
       
    31 //
       
    32 EXPORT_C CFsSeparatorData* CFsSeparatorData::NewL( )
       
    33     {
       
    34     FUNC_LOG;
       
    35     CFsSeparatorData* self = new( ELeave ) CFsSeparatorData();
       
    36     CleanupStack::PushL(self);
       
    37     self->ConstructL( );
       
    38     CleanupStack::Pop(self);
       
    39     return self;
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // C++ destructor.
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 CFsSeparatorData::~CFsSeparatorData() 
       
    47     {
       
    48     FUNC_LOG;
       
    49 
       
    50     }
       
    51 
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 //  The function sets separator line's color.
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 void CFsSeparatorData::SetSeparatorColor( const TRgb& aColor )
       
    58     {
       
    59     FUNC_LOG;
       
    60     iColor = aColor;
       
    61     }
       
    62 
       
    63 
       
    64 // ---------------------------------------------------------------------------
       
    65 //  The function returns separator line's color.
       
    66 // ---------------------------------------------------------------------------
       
    67 //
       
    68 TRgb CFsSeparatorData::SeparatorColor() const
       
    69     {
       
    70     FUNC_LOG;
       
    71     return iColor;
       
    72     }
       
    73 
       
    74 // ---------------------------------------------------------------------------
       
    75 //  Type of the data item.
       
    76 // ---------------------------------------------------------------------------
       
    77 //
       
    78 TFsTreeItemDataType CFsSeparatorData::Type() const
       
    79     {
       
    80     FUNC_LOG;
       
    81     return KFsSeparatorDataType;
       
    82     }
       
    83 
       
    84 // ---------------------------------------------------------------------------
       
    85 //  C++ constructor.
       
    86 // ---------------------------------------------------------------------------
       
    87 //
       
    88 CFsSeparatorData::CFsSeparatorData( )
       
    89     :iColor(KRgbGray)
       
    90     {
       
    91     FUNC_LOG;
       
    92     
       
    93     }
       
    94 
       
    95 // ---------------------------------------------------------------------------
       
    96 //  Second phase constructor.
       
    97 // ---------------------------------------------------------------------------
       
    98 //
       
    99 void CFsSeparatorData::ConstructL( )
       
   100     {
       
   101     FUNC_LOG;
       
   102 
       
   103     }
       
   104