phonebookengines/cntactions/tsrc/mt_cntactions/mt_cntactions.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:02:44 +0300
changeset 46 efe85016a067
parent 40 b46a585f6909
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2008-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: 
*
*/

#include <QObject>

#include <qtcontacts.h>

QTM_USE_NAMESPACE

Q_DECLARE_METATYPE(QContactAction::State)

class TestCntActions : public QObject
{
    Q_OBJECT

private slots:
    //Init/cleanup the test class
    void initTestCase();
    void cleanupTestCase();
	
    //Init/cleanup each test method
    void init();
    void cleanup();
	
    void emptyContactNoActionSupport();
	
    //call
    void phonenumberCallSupport();
    void phonenumberNoCallSupport();
	
    //message
    void phonenumberMessageSupport();
    void phonenumberNoMessageSupport();

    //video call
    void phonenumberVideoCallSupport();
    void phonenumberNoVideoCallSupport();
	
    //email
    void emailSupport();
    void noEmailSupport();

    //url
    void urlSupport();
    void noUrlSupport();

private:
    QContactManager *m_manager; 
};