phonesrv_plat/voice_mailbox_number_api/tsrc/mt_vmbxengine.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 /*
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of the Mt_vmbxEngine class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _MT_VMBXENGINE_H
       
    20 #define _MT_VMBXENGINE_H
       
    21 
       
    22 #include <QtTest/QtTest>
       
    23 #include <QString>
       
    24 #include <QStringList>
       
    25 #include <QSignalSpy>
       
    26 #include <QMetaType>
       
    27 #include <QObject>
       
    28 
       
    29 
       
    30 // Class forwards
       
    31 class CVoiceMailboxEntry;
       
    32 class CVoiceMailbox;
       
    33 class HbMainWindow;
       
    34 
       
    35 
       
    36 /**
       
    37  *  Mt_vmbxEngine module test class.
       
    38  * 
       
    39  *  Tests Mt_vmbxEngine interface.
       
    40  *  See cpp file for more information. 
       
    41  *
       
    42  *  @lib mt_vmbxngine.lib
       
    43  */
       
    44 class Mt_vmbxEngine : public QObject
       
    45 {
       
    46     Q_OBJECT
       
    47 
       
    48 public:
       
    49     Mt_vmbxEngine();
       
    50 
       
    51     virtual ~Mt_vmbxEngine();
       
    52 
       
    53 private slots: 
       
    54 
       
    55     /*!
       
    56         Called before the first testfunction is executed.
       
    57     */
       
    58     void initTestCase();
       
    59 
       
    60     /*!
       
    61         Called after the last testfunction has been executed.
       
    62     */
       
    63     void cleanupTestCase();
       
    64 
       
    65     /*!
       
    66         Create an empty vmbx entry
       
    67     */
       
    68     void testCreateVmbxEntry();
       
    69     
       
    70     /*!
       
    71         Create CVoiceMailbox Api
       
    72     */
       
    73     void testCreateVmbxMailbox();
       
    74 
       
    75     /*!
       
    76         Test middle case,CheckConfiguration
       
    77     */
       
    78     void testCheckConfiguration();
       
    79 
       
    80     /**
       
    81     * Test middle case,CreateWindow
       
    82     * 
       
    83     * provide window for UI
       
    84     */
       
    85     void testCreateWindow();
       
    86  
       
    87 
       
    88    /**
       
    89    * Test middle case,SaveProvisionedEntry
       
    90    * 
       
    91    */
       
    92    void testSaveProvisionedEntry();
       
    93 
       
    94      /**
       
    95      * Test middle case,query VmbxMailbox
       
    96      * 
       
    97      */
       
    98     void testQueryVmbxMailbox();
       
    99     
       
   100     /**
       
   101     * Test middle case,cancel observer for vmbx number changed
       
   102     * 
       
   103     */
       
   104    void testNotifyVmbxNumberChangeCancel();
       
   105 
       
   106    /**
       
   107    * Test middle case,delete HbMainWindow
       
   108    * 
       
   109    */  
       
   110    void testDeleteWindow();
       
   111 
       
   112      /**
       
   113      * Test middle case,delete CVoiceMailbox
       
   114      */
       
   115     void testDeleteVmbxMailbox();
       
   116     
       
   117     /**
       
   118     * Test last case,delete CVoiceMailboxEntry
       
   119     */
       
   120    void testDeleteVmbxEntry();
       
   121 
       
   122 private:  //data
       
   123 
       
   124     /**
       
   125      * Own.
       
   126      */
       
   127     CVoiceMailboxEntry* mVmbxEntry;
       
   128 
       
   129     /**
       
   130      * Own.
       
   131      */
       
   132     CVoiceMailbox* mVmbxEngine;
       
   133  
       
   134     /**
       
   135      * Own.
       
   136      */
       
   137     HbMainWindow* mWindow;
       
   138 };
       
   139 
       
   140 #endif // _MT_VMBXENGINE_H