phonebookui/cntcommonui/contacteditors/cntaddressviewitem.h
changeset 72 6abfb1094884
parent 61 d30183af6ca6
equal deleted inserted replaced
67:59984e68247d 72:6abfb1094884
       
     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 #ifndef CNTADDRESSVIEWITEM_H_
       
    19 #define CNTADDRESSVIEWITEM_H_
       
    20 
       
    21 #include <hbdataformviewitem.h>
       
    22 #include <hbpushbutton.h>
       
    23 
       
    24 class HbWidget;
       
    25 class HbAbstractViewItem;
       
    26 class XQApplicationManager;
       
    27 class XQAiwRequest;
       
    28 
       
    29 class CntAddressViewItem : public /*CntDetailViewItem*/ HbDataFormViewItem
       
    30     {
       
    31     Q_OBJECT
       
    32     
       
    33 public:
       
    34     CntAddressViewItem( QGraphicsItem* aParent = 0 );
       
    35     ~CntAddressViewItem();
       
    36 
       
    37 private slots:
       
    38     void launchLocationPicker();
       
    39     void handleLocationChange(const QVariant& aValue );
       
    40     
       
    41 public:
       
    42     HbAbstractViewItem* createItem();
       
    43     HbWidget* createCustomWidget();
       
    44     
       
    45     bool canSetModelIndex( const QModelIndex &index ) const;
       
    46     
       
    47 private:
       
    48     XQApplicationManager *mAppManager;
       
    49     XQAiwRequest* mRequest;
       
    50     bool mRequestPending;
       
    51     friend class T_AddressEditorTest;
       
    52 };
       
    53 
       
    54 #endif /* CNTADDRESSVIEWITEM_H_ */