meetingrequest/mrmbutilsextension/tsrc/module/mrmbutilsextension/inc/MT_mrmbutilsextension.h
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2008 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MRMBUTILSEXTENSION_H__
       
    19 #define __MRMBUTILSEXTENSION_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <ceunittestsuiteclass.h>
       
    23 #include <eunitdecorators.h>
       
    24 #include <cmrmailboxutils.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CMRMBUtilsMBInfoHandler;
       
    28 class CFSMailClient;
       
    29 class CFSMailBox;
       
    30 
       
    31 // CLASS DEFINITION
       
    32 /**
       
    33  * Generated EUnit test suite class.
       
    34  */
       
    35 NONSHARABLE_CLASS( MT_MRMbUtilsExtension ) : 
       
    36 		public CEUnitTestSuiteClass,
       
    37 		public MMRMailboxUtilsObserver
       
    38     {
       
    39 public:  // Constructors and destructor
       
    40 
       
    41 	static MT_MRMbUtilsExtension* NewL();
       
    42 	static MT_MRMbUtilsExtension* NewLC();
       
    43 	~MT_MRMbUtilsExtension();
       
    44 
       
    45 private:
       
    46     void HandleMRMailboxEventL( 
       
    47             MMRMailboxUtilsObserver::TEventType aType );
       
    48 	
       
    49 private: // Constructors
       
    50 
       
    51 	MT_MRMbUtilsExtension();
       
    52 	void ConstructL();
       
    53 	
       
    54 private: // New methods
       
    55 
       
    56 	 void SetupL();
       
    57 	 void SetupWithAllMailboxesL();
       
    58 	 void SetupWithMRMailboxesL();
       
    59 	 
       
    60 	 void Teardown();
       
    61 	
       
    62 	 void T_MRECOMExtensionFoundL();
       
    63 	 
       
    64 	 void T_MRCreateCMailExtensionL();
       
    65 	
       
    66 	 void T_CheckECOMDataL();
       
    67 	 
       
    68 	 void T_FindMRMailboxesL();
       
    69 	 
       
    70 	 void T_FilterNonMRMailboxesL();
       
    71 	 
       
    72 	 void T_FetchSpecificMailboxInformationL();
       
    73 	 
       
    74 	 void T_FetchInvalidMailboxInformationL();
       
    75 	 
       
    76 private: // Data
       
    77 
       
    78 	CFSMailClient* iMailClient;
       
    79 	
       
    80 	RPointerArray<CFSMailBox> iMailboxes;
       
    81 	
       
    82 	CMRMBUtilsMBInfoHandler* iCmailHandler;
       
    83 	
       
    84 	EUNIT_DECLARE_TEST_TABLE;
       
    85     };
       
    86 
       
    87 #endif      //  __MRMBUTILSEXTENSION_H__
       
    88 
       
    89 // EOF