diff -r 63339781d179 -r 09b1ac925e3f cpsecplugins/devicelockplugin/src/cpremotelockdataformviewitem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cpsecplugins/devicelockplugin/src/cpremotelockdataformviewitem.h Tue Aug 31 16:04:40 2010 +0300 @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2009 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: + * + */ + + +#ifndef CPREMOTELOCKDATAFORMVIEWITEM_H +#define CPREMOTELOCKDATAFORMVIEWITEM_H + +//#include +#include +#include +#include + +class CpRemoteLockDataFormViewItem : public HbDataFormViewItem +{ + Q_OBJECT +public: + enum { CpRemoteLockItem = HbDataFormModelItem::CustomItemBase + 10, + CpCodeEditItem = CpRemoteLockItem + 1 }; + + /* Constructor */ + explicit CpRemoteLockDataFormViewItem(QGraphicsItem *parent = 0); + /* Destructor */ + virtual ~CpRemoteLockDataFormViewItem(); + /* creates a view item */ + virtual HbAbstractViewItem* createItem(); + /**/ + virtual bool canSetModelIndex(const QModelIndex &index) const; +protected: + /* creates a custom widget */ + virtual HbWidget* createCustomWidget(); +}; + + +class CpLockEdit : public HbLineEdit +{ + Q_OBJECT +public: + /* constructor */ + explicit CpLockEdit(const QString &text, QGraphicsItem *parent = 0); + /* destructor */ + virtual ~CpLockEdit(); + /* handles mouse events*/ + void mousePressEvent(QGraphicsSceneMouseEvent *event); +signals: + /* signal when edit box is clicked*/ + void clicked(); +}; + +#endif //CPREMOTELOCKDATAFORMVIEWITEM_H +