email/pop3andsmtpmtm/clientmtms/test/inc/ctestimapsyncdownloadrulessettings.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 2007-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 #ifndef __CTESTIMAPSYNCDOWNLOADRULESSETTINGS_H__
       
    17 #define __CTESTIMAPSYNCDOWNLOADRULESSETTINGS_H__
       
    18 
       
    19 #include <test/tefunit.h>
       
    20 #include <imapset.h>
       
    21 
       
    22 class CEmailAccounts;
       
    23 class CImapSyncDownloadRules;
       
    24 class TImapAccount;
       
    25 
       
    26 /**
       
    27 @internalTechnology
       
    28 @prototype
       
    29 */
       
    30 class CTestImapSyncDownloadRulesSettings : public CActiveTestFixture
       
    31 	{
       
    32 public:
       
    33 	CTestImapSyncDownloadRulesSettings();
       
    34 	~CTestImapSyncDownloadRulesSettings();
       
    35 	
       
    36 	virtual void SetupL();
       
    37 	virtual void TearDownL();
       
    38 
       
    39 	void SetAllRulesL(TInt aVal);
       
    40 	void SetRulesValues(TInt aVal);
       
    41 	void CheckRulesL(const TImapAccount& aAccount, TInt aNumRulesExpected, TInt aVal);
       
    42 	TBool FindAccountL(const TDesC& aAccName, TImapAccount& aAccount);
       
    43 	TBool CreateImapAccountL(const TDesC& aAccName, TImapAccount& aAccount, TBool aUseRules);
       
    44 	void TestCreateImapAccountFullL();
       
    45 	void TestCreateImapAccountEmptyL();
       
    46 	void TestChangeSyncDownloadRulesFullToFullL();
       
    47 	void TestChangeSyncDownloadRulesFullToEmptyL();
       
    48 	void TestChangeSyncDownloadRulesEmptyToFullL();
       
    49 	void TestDeleteImapAccountFullL();
       
    50 	void TestDeleteImapAccountEmptyL();
       
    51 	void TestAddRulesToExistingAccountL();
       
    52 
       
    53 	static CTestSuite* CreateSuiteL(const TDesC& aName);
       
    54 
       
    55 private:
       
    56 	CEmailAccounts* iEmailAccounts;
       
    57 	CImapSyncDownloadRules* iRules;
       
    58 	TUint32 iBearerTypes;
       
    59 	TImImap4GetPartialMailInfo iMailInfo;
       
    60 	};
       
    61 
       
    62 #endif __CTESTIMAPSYNCDOWNLOADRULESSETTINGS_H__