phonesrv_plat/voice_mailbox_number_api/tsrc/mt_vmbxengine.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:45:17 +0300
branchRCL_3
changeset 19 7d48bed6ce0c
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2009-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:  Implementation of the Mt_vmbxEngine class
*
*/


#ifndef _MT_VMBXENGINE_H
#define _MT_VMBXENGINE_H

#include <QtTest/QtTest>
#include <QString>
#include <QStringList>
#include <QSignalSpy>
#include <QMetaType>
#include <QObject>


// Class forwards
class CVoiceMailboxEntry;
class CVoiceMailbox;
class HbMainWindow;


/**
 *  Mt_vmbxEngine module test class.
 * 
 *  Tests Mt_vmbxEngine interface.
 *  See cpp file for more information. 
 *
 *  @lib mt_vmbxngine.lib
 */
class Mt_vmbxEngine : public QObject
{
    Q_OBJECT

public:
    Mt_vmbxEngine();

    virtual ~Mt_vmbxEngine();

private slots: 

    /*!
        Called before the first testfunction is executed.
    */
    void initTestCase();

    /*!
        Called after the last testfunction has been executed.
    */
    void cleanupTestCase();

    /*!
        Create an empty vmbx entry
    */
    void testCreateVmbxEntry();
    
    /*!
        Create CVoiceMailbox Api
    */
    void testCreateVmbxMailbox();

    /*!
        Test middle case,CheckConfiguration
    */
    void testCheckConfiguration();

    /**
    * Test middle case,CreateWindow
    * 
    * provide window for UI
    */
    void testCreateWindow();
 

   /**
   * Test middle case,SaveProvisionedEntry
   * 
   */
   void testSaveProvisionedEntry();

     /**
     * Test middle case,query VmbxMailbox
     * 
     */
    void testQueryVmbxMailbox();
    
    /**
    * Test middle case,cancel observer for vmbx number changed
    * 
    */
   void testNotifyVmbxNumberChangeCancel();

   /**
   * Test middle case,delete HbMainWindow
   * 
   */  
   void testDeleteWindow();

     /**
     * Test middle case,delete CVoiceMailbox
     */
    void testDeleteVmbxMailbox();
    
    /**
    * Test last case,delete CVoiceMailboxEntry
    */
   void testDeleteVmbxEntry();

private:  //data

    /**
     * Own.
     */
    CVoiceMailboxEntry* mVmbxEntry;

    /**
     * Own.
     */
    CVoiceMailbox* mVmbxEngine;
 
    /**
     * Own.
     */
    HbMainWindow* mWindow;
};

#endif // _MT_VMBXENGINE_H