diff -r 6e38e48ee756 -r a9afc3a8dbfa deviceupdatesui/deviceupdates/inc/customviewitem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deviceupdatesui/deviceupdates/inc/customviewitem.h Thu Aug 19 17:35:23 2010 +0530 @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2010 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: Custom list item implementation + * + */ + +#ifndef CUSTOMVIEWITEM_H +#define CUSTOMVIEWITEM_H + +#include +#include +#include +#include +#include +#include + +class DmAdvancedView; +const qreal topAndBottomMargin = 0; +const qreal leftMargin = 40; +const qreal rightMargin = 50; + +class CustomViewItem : public HbListViewItem + { +Q_OBJECT +public: + enum + { + ItemType = Hb::ItemType_Last + 1001 + }; + CustomViewItem(DmAdvancedView* serversview, QGraphicsItem * parent = 0); + ~CustomViewItem(); + int type() const; + bool canSetModelIndex(const QModelIndex &index); + HbAbstractViewItem * createItem(); + void updateChildItems(); +private: + HbPushButton *mButton; + DmAdvancedView* callBackView; + }; + +#endif +