email/pop3andsmtpmtm/clientmtms/test/inc/t_iapprefs.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <iapprefs.h>
       
    17 
       
    18 class CT_iapprefs : public CBase
       
    19 	{
       
    20 	public:
       
    21 		static CT_iapprefs* NewLC();
       
    22 		~CT_iapprefs();
       
    23 		void TestL();
       
    24 		void HeapTestL();
       
    25 	private:
       
    26 		CImIAPPreferences* iPref;
       
    27 	private:
       
    28 		void TestAllButStoreL();
       
    29 
       
    30 		void TestVersionL();
       
    31 		void TestNoIAPsL();
       
    32 		void TestAddIAPL();
       
    33 		void TestRemoveIAPL();
       
    34 
       
    35 		CT_iapprefs();
       
    36 		CT_iapprefs(CT_iapprefs&); // no implementation, not to be used
       
    37 		void ConstructL();
       
    38 
       
    39 		void TestL(TBool aCondition);
       
    40 		void PopulateChoicesL(int n);
       
    41 
       
    42 		enum { KErrTestFailed = 7801 };
       
    43 
       
    44 		struct PointlessObserver : MMsvSessionObserver
       
    45 			{
       
    46 			void HandleSessionEventL(MMsvSessionObserver::TMsvSessionEvent, void*, void*, void*){};
       
    47 			} iObserver;
       
    48 	};
       
    49