phonebookui/cnthistorymodel/tsrc/mt_cnthistorymodel/mt_cnthistorymodel.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:42:23 +0300
changeset 31 2a11b5b00470
parent 27 de1630741fbe
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* 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

class CntHistoryModel;

class TestCntHistoryModel : public QObject
{
    Q_OBJECT

private slots:
    void init();
    void cleanup();
	
    void testLogsInsertions();
    void testLogsRemovals();
    void testLogsUpdates();
    void testMsgInsertions();
    void testMsgRemovals();
    void testMsgUpdates();
    void testReadLogEvent();
    void testReadMsgEvent();
	void testRoles();
	void testSorting();
	void testClear();
	void testMarkSeen();
	
private:
	QContactManager* cm;
	CntHistoryModel* model;
};