cpsecplugins/devicelockplugin/src/cpremotelockdataformviewitem.h
branchRCL_3
changeset 22 03674e5abf46
parent 21 09b1ac925e3f
child 23 94da73d93b58
equal deleted inserted replaced
21:09b1ac925e3f 22:03674e5abf46
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0""
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  
       
    15  *
       
    16  */
       
    17 
       
    18 
       
    19 #ifndef CPREMOTELOCKDATAFORMVIEWITEM_H
       
    20 #define CPREMOTELOCKDATAFORMVIEWITEM_H
       
    21 
       
    22 //#include <seccodeuiglobal.h>
       
    23 #include <hbdataformviewitem.h>
       
    24 #include <hbdataformmodelitem.h>
       
    25 #include <hblineedit.h>
       
    26 
       
    27 class CpRemoteLockDataFormViewItem : public HbDataFormViewItem
       
    28 {
       
    29 	Q_OBJECT
       
    30 public:
       
    31 	enum { CpRemoteLockItem = HbDataFormModelItem::CustomItemBase + 10,
       
    32            CpCodeEditItem = CpRemoteLockItem + 1 };
       
    33 
       
    34 	/* Constructor */
       
    35     explicit CpRemoteLockDataFormViewItem(QGraphicsItem *parent = 0);
       
    36     /* Destructor */
       
    37     virtual ~CpRemoteLockDataFormViewItem();
       
    38     /* creates a view item */
       
    39     virtual HbAbstractViewItem* createItem();
       
    40     /**/
       
    41 	virtual bool canSetModelIndex(const QModelIndex &index) const;
       
    42 protected:
       
    43 	/* creates a custom widget */
       
    44     virtual HbWidget* createCustomWidget();
       
    45 };
       
    46 
       
    47 
       
    48 class CpLockEdit : public HbLineEdit
       
    49 {
       
    50     Q_OBJECT
       
    51 public:
       
    52     /* constructor */
       
    53     explicit CpLockEdit(const QString &text, QGraphicsItem *parent = 0);
       
    54     /* destructor */
       
    55     virtual ~CpLockEdit();
       
    56     /* handles mouse events*/
       
    57     void mousePressEvent(QGraphicsSceneMouseEvent *event);
       
    58 signals:
       
    59     /* signal when edit box is clicked*/
       
    60     void clicked();
       
    61 };
       
    62 
       
    63 #endif //CPREMOTELOCKDATAFORMVIEWITEM_H
       
    64