phonebookui/pbkcommonui/inc/cntdateeditorviewitem.h
changeset 25 76a2435edfd4
child 31 2a11b5b00470
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phonebookui/pbkcommonui/inc/cntdateeditorviewitem.h	Fri Apr 16 14:53:18 2010 +0300
@@ -0,0 +1,52 @@
+/*
+* 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 CNTDATEEDITORVIEWITEM_H_
+#define CNTDATEEDITORVIEWITEM_H_
+
+#include "cntdetailviewitem.h"
+
+#include <QDate>
+#include <QLocale>
+#include <hbpushbutton.h>
+
+class CntDateEditorViewItem : public CntDetailViewItem
+    {
+    Q_OBJECT
+    
+public:
+    CntDateEditorViewItem( QGraphicsItem* aParent = 0 );
+    ~CntDateEditorViewItem();
+    
+public slots:
+    void clicked(); // push button clicked
+    
+public:
+    HbAbstractViewItem* createItem();
+    HbWidget* createCustomWidget();
+    
+private:
+    QDate editDate( QDate aCurrent, QString aTitle );
+    
+#ifdef PBK_UNIT_TEST
+public:
+#else
+private:
+#endif
+    HbPushButton* mButton;
+    QLocale mLocale;
+    };
+#endif /* CNTDATEEDITORVIEWITEM_H_ */