diff -r d189ee25cf9d -r 3533d4323edc emailcontacts/contactactionmenu/inc/cfsccontactactionmenulistbox.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailcontacts/contactactionmenu/inc/cfsccontactactionmenulistbox.h Wed Sep 01 12:28:57 2010 +0100 @@ -0,0 +1,102 @@ +/* +* Copyright (c) 2008 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: Definition of class CFscContactActionMenuListBox. +* +*/ + + +#ifndef C_FSCCONTACTACTIONMENULISTBOX_H +#define C_FSCCONTACTACTIONMENULISTBOX_H + +#include +#include +#include + +// +#include "fsccontactactionmenudefines.h" +// + +// DEFINES +#define CFSCCONTACTACTIONMENULISTBOXBASE CEikColumnListBox + +// FORWARD DECLARATIONS + +/** + * Contact Action Menu List Box implementation. + * + * @since S60 3.1 + */ +class CFscContactActionMenuListBox + : public CFSCCONTACTACTIONMENULISTBOXBASE + { + +public: // Public constructor and destructor + + /** + * Constructor. + */ + CFscContactActionMenuListBox(); + + /** + * Destructor. + */ + virtual ~CFscContactActionMenuListBox(); + + /** + * Second phase constructor. + * + * @param aParent Parent control + * @param aFlags Listbox flags + */ + void ConstructL( const CCoeControl* aParent, TInt aFlags = 0 ); + +public: // From Base class + + /** + * Draw + * + * @param aRect rect + */ + virtual void Draw( const TRect& aRect ) const; + + /** + * MopSupplyObject + * + */ + TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); + +public: // Own Methods + + /** + * Set background rect of the listbox. + * @param aRect Rectangle parameter. + */ + virtual void SetBackgroundRect( const TRect& aRect ); + +private: // data + + /** + * Rectangle of list background + */ + TRect iBackgroundRect; + + /** + * Background control + * Owned + */ + CAknsFrameBackgroundControlContext* iBgContext; + }; + +#endif // C_FSCCONTACTACTIONMENULISTBOX_H +