cpsecplugins/devicelockplugin/src/cpremotelockdataformviewitem.h
changeset 19 098e361762d2
child 59 881d92421467
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cpsecplugins/devicelockplugin/src/cpremotelockdataformviewitem.h	Fri May 14 16:43:26 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 <seccodeuiglobal.h>
+#include <hbdataformviewitem.h>
+#include <hbdataformmodelitem.h>
+#include <hblineedit.h>
+
+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
+