messagingapp/msgutils/unieditorutils/unieditorpluginloader/tsrc/testunieditorpluginloader/inc/testunieditorpluginloader.h
changeset 70 a15d9966050f
equal deleted inserted replaced
61:8ba0afbb4637 70:a15d9966050f
       
     1 /*
       
     2  * Copyright (c) 2009 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: Main test class declaration for UnieditorPluginLoader
       
    15  */
       
    16 
       
    17 #ifndef TEST_UNIEDITORPLUGINLOADER_H
       
    18 #define TEST_UNIEDITORPLUGINLOADER_H
       
    19 
       
    20 #ifdef BUILD_TEST_DLL
       
    21 #define TEST_EXPORT Q_DECL_EXPORT
       
    22 #else
       
    23 #define TEST_EXPORT Q_DECL_IMPORT
       
    24 #endif
       
    25 
       
    26 #include <QObject>
       
    27 #include <e32const.h>
       
    28 #include "convergedmessage.h"
       
    29 
       
    30 class UniEditorPluginLoader;
       
    31 
       
    32 //Main Tets Class Declaration
       
    33 class TEST_EXPORT TestUnieditorPluginLoader: public QObject
       
    34     {
       
    35     Q_OBJECT
       
    36 
       
    37 private slots:
       
    38     
       
    39     /**
       
    40 	 * Initialises the whole Test
       
    41 	 **/  
       
    42     void initTestCase();//called before the first testfunction is executed.
       
    43     
       
    44     /**
       
    45 	 * Initialises each Test Case
       
    46 	 **/  
       
    47     void init();//called before each testfunction is executed.
       
    48         
       
    49     /**
       
    50 	 * Creates a MMS messsage
       
    51 	 **/  
       
    52 	void createMMS();
       
    53 	
       
    54 	/**
       
    55 	 * Tests the MMS message
       
    56 	 **/  
       
    57 	void testMMS();
       
    58 	
       
    59 	/**
       
    60 	 * Creates a SMS messsage
       
    61 	 **/  
       
    62 	void createSMS();
       
    63 	
       
    64 	/**
       
    65 	 * Tests the SMS message
       
    66 	 **/  
       
    67 	void testSMS();
       
    68 	
       
    69 	/**
       
    70 	 * Cleans up each Test Case
       
    71 	 **/ 
       
    72 	void cleanup();//called after every testfunction.
       
    73 	
       
    74 	/**
       
    75 	 * Cleans up the whole Test Case
       
    76 	 **/  
       
    77     void cleanupTestCase();//called after the last testfunction was executed.
       
    78 
       
    79 private: //Data
       
    80     
       
    81     /**
       
    82 	 * msgPlugin - SMS/MMS Message Plug-in Loader
       
    83 	 **/  	
       
    84     UniEditorPluginLoader* unieditorPluginLoader;
       
    85 	
       
    86 	/**
       
    87 	 * mmsMsgId - The SMS/MMS message Id
       
    88 	 **/  	
       
    89 	long int msgId;
       
    90 	
       
    91 	/**
       
    92 	 * messageType - type of Message - SMS or MMS
       
    93 	 **/  	
       
    94 	ConvergedMessage::MessageType messageType;
       
    95 	};
       
    96 #endif //TEST_UNIEDITORPLUGINLOADER_H