diff -r 000000000000 -r 8466d47a6819 emailuis/uicomponents/inc/fsseparatordata.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailuis/uicomponents/inc/fsseparatordata.h Thu Dec 17 08:39:21 2009 +0200 @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Data class for a separator item. +* +*/ + + +#ifndef C_FSTSEPARATORDATA_H +#define C_FSTSEPARATORDATA_H + +#include +//#include +#include + +#include "fstreeitemdata.h" + +const TFsTreeItemDataType KFsSeparatorDataType = 6; + +NONSHARABLE_CLASS( CFsSeparatorData ): public CBase, public MFsTreeItemData + { +public: + + /** + * Two-phased constructor + */ + IMPORT_C static CFsSeparatorData* NewL( ); + + /** + * C++ destructor + */ + virtual ~CFsSeparatorData(); + +public: + + /** + * The function sets separator line's color. + * + * @aColor Color of the separator line. + */ + virtual void SetSeparatorColor( const TRgb& aColor ); + + + /** + * The function returns separator line's color. + * + * @return Color of the separator line. + */ + virtual TRgb SeparatorColor() const; + +// from base class MFsTreeItemData + + /** + * From MFsTreeItemData. + * Returns type id of the separator's data class. + */ + virtual TFsTreeItemDataType Type() const; + +protected: + + /** + * C++ constructor + */ + CFsSeparatorData( ); + + /** + * Second phase constructor. + */ + void ConstructL( ); + +protected: //Data + + /** + * Separator's color. + */ + TRgb iColor; + + }; + + +#endif // C_FSTSEPARATORDATA_H