phonebookui/cntcommonui/widgets/cntactionpopup.h
changeset 72 6abfb1094884
parent 56 d508aa856878
child 81 640d30f4fb64
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 CNTACTIONPOPUP_H
       
    19 #define CNTACTIONPOPUP_H
       
    20 
       
    21 
       
    22 #include <QObject>
       
    23 #include "cntglobal.h"
       
    24 #include <qtcontactsglobal.h>
       
    25 #include <qcontactdetail.h>
       
    26 
       
    27 class CntActionPopupPrivate;
       
    28 
       
    29 QTM_BEGIN_NAMESPACE
       
    30 class QContact;
       
    31 class QContactDetail;
       
    32 QTM_END_NAMESPACE
       
    33 
       
    34 QTM_USE_NAMESPACE
       
    35 
       
    36 /*
       
    37 * Class for showing popup for Call, Message and Email actions if preffered number is not set
       
    38 */
       
    39 class QTPBK_EXPORT CntActionPopup : public QObject
       
    40 {
       
    41     Q_OBJECT
       
    42     
       
    43 public:
       
    44     CntActionPopup( QContact *contact );
       
    45     ~CntActionPopup();
       
    46     
       
    47     //returns true if the action is supported else false
       
    48     bool showActionPopup(QString action);
       
    49     
       
    50 signals:
       
    51     //Emit signal for the perticular action with the detail selected from the popup
       
    52     void executeContactAction( QContact& aContact,QContactDetail contactDetail, QString actionName );
       
    53     void actionPopupCancelPressed();
       
    54   
       
    55 private:
       
    56     CntActionPopupPrivate* const d_ptr;
       
    57     Q_DECLARE_PRIVATE_D(d_ptr, CntActionPopup)
       
    58     Q_DISABLE_COPY(CntActionPopup)    
       
    59 };
       
    60 
       
    61 #endif // CNTACTIONPOPUP_H
       
    62 
       
    63 // EOF