diff -r 59984e68247d -r 6abfb1094884 phonebookui/cntcommonui/widgets/cntactionpopup.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookui/cntcommonui/widgets/cntactionpopup.h Tue Sep 21 17:07:25 2010 +0300 @@ -0,0 +1,63 @@ +/* +* 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 CNTACTIONPOPUP_H +#define CNTACTIONPOPUP_H + + +#include +#include "cntglobal.h" +#include +#include + +class CntActionPopupPrivate; + +QTM_BEGIN_NAMESPACE +class QContact; +class QContactDetail; +QTM_END_NAMESPACE + +QTM_USE_NAMESPACE + +/* +* Class for showing popup for Call, Message and Email actions if preffered number is not set +*/ +class QTPBK_EXPORT CntActionPopup : public QObject +{ + Q_OBJECT + +public: + CntActionPopup( QContact *contact ); + ~CntActionPopup(); + + //returns true if the action is supported else false + bool showActionPopup(QString action); + +signals: + //Emit signal for the perticular action with the detail selected from the popup + void executeContactAction( QContact& aContact,QContactDetail contactDetail, QString actionName ); + void actionPopupCancelPressed(); + +private: + CntActionPopupPrivate* const d_ptr; + Q_DECLARE_PRIVATE_D(d_ptr, CntActionPopup) + Q_DISABLE_COPY(CntActionPopup) +}; + +#endif // CNTACTIONPOPUP_H + +// EOF