--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/phonesrv_plat/voice_mailbox_number_api/tsrc/mt_vmbxengine.h Tue Aug 31 15:45:17 2010 +0300
@@ -0,0 +1,140 @@
+/*
+* 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