phonebookui/pbkcommonui/inc/cntdateeditorviewitem.h
author hgs
Fri, 03 Sep 2010 14:32:33 +0300
changeset 66 554fe4dbbb59
parent 46 efe85016a067
permissions -rw-r--r--
201035

/*
* 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 HbAction;

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:
    void editDate( QDate aCurrent, QString aTitle );
    void changeDate( QDate aNewDate );
    
private slots:
    void handleEditDate( HbAction *aAction );
    
    
private:
    HbPushButton* mButton;
    QLocale mLocale;
    
    friend class T_DateEditorTest;
    };
#endif /* CNTDATEEDITORVIEWITEM_H_ */