qcpix/tsrc/qtcpixunittests/inc/ut_qtcpixdocument.h
author hgs
Mon, 26 Jul 2010 12:27:31 +0530
changeset 13 fcb2a58c181b
parent 0 671dee74050a
permissions -rw-r--r--
201029

/*
* Copyright (c) 2010 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 UT_QTCPIXDOCUMENT_H_
#define UT_QTCPIXDOCUMENT_H_

#include <QtTest/QtTest>

class CpixDocument;
class CpixDocumentTester: public QObject
    {
    Q_OBJECT
private slots:
    void testNewInstance();
    void testGetSetName();
    void testGetSetName_data();
    void testGetSetDocId();
    void testGetSetDocId_data();
    void testGetSetExcerpt();
    void testGetSetExcerpt_data();
    void testGetFieldCount();
    void testAddGetField();
    
    //private slots that are run before and after each testcase.
    void init();
    void cleanup();
    
private:
    CpixDocument* iDoc;
    };

#endif /* UT_QTCPIXDOCUMENT_H_ */