phonebookui/pbkcommonui/inc/cntactionlauncher.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 18 Aug 2010 09:39:00 +0300
changeset 59 a642906a277a
parent 47 7cbcb2896f0e
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* 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 CNTACTIONLAUNCHER_H_
#define CNTACTIONLAUNCHER_H_

#include <QObject>
#include <qtcontactsglobal.h>
#include <qtcontacts.h>

QTM_USE_NAMESPACE

class CntActionLauncher : public QObject
    {
    Q_OBJECT
    
public:
    CntActionLauncher( QContactManager& aContactManager, QString aAction = QString() );
    ~CntActionLauncher();
    
public:
    bool execute( QContact aContact, QContactDetail aDetail );
    bool execute( QContact aContact, QContactDetail aDetail, QVariantMap aParameters );
    bool execute( QContact aContact, QContactDetail aDetail, QContactActionDescriptor aActionDescriptor );
    
signals:
    void actionExecuted( CntActionLauncher* aAction );
    
private slots:
    void progress( QContactAction::State status );
    
private:
    QString mAction;
    QContactAction* mContactAction;
    QContactManager* mContactManager;
    };
#endif /* CNTACTION_H_ */