common/tools/ats/smoketest/messaging/Inc/TestMessStoreProcessUtil.h
changeset 117 483f966c6335
child 872 17498133d9ad
equal deleted inserted replaced
113:7f0174848f99 117:483f966c6335
       
     1 /**
       
     2 * Copyright (c) 2003-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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * This contains CTestMessStoreProcessUtil. Base class process what is in the message store
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @file TestMessStoreProcessUtil.h
       
    26 */
       
    27 
       
    28 #if (!defined __TEST_MESS_STORE_PROCESS_UTIL_H__)
       
    29 #define __TEST_MESS_STORE_PROCESS_UTIL_H__
       
    30 
       
    31 #include "TestMessBase.h"
       
    32 
       
    33 class CTestMessStoreProcessUtil : public CBase
       
    34 {
       
    35 public:
       
    36 	CTestMessStoreProcessUtil(CTestMessBase& aTestStep, TBool aReadOnly);
       
    37 
       
    38 	//
       
    39 	TInt	ProcessEntryL(TMsvId aMsvId);
       
    40 
       
    41 protected:
       
    42 	// Process the CImHeader information
       
    43 	virtual void	ProcessImHeaderL(CImHeader& aHeader) = 0;
       
    44 
       
    45 	// Process the CImMimeHeader information
       
    46 	virtual void	ProcessImMimeHeaderL(CImMimeHeader& aHeader) = 0;
       
    47 
       
    48 	// Process the CImIAPPreferences information
       
    49 	virtual void	ProcessInternetAccessPreferencesL(CImIAPPreferences& aPreferences) = 0;
       
    50 
       
    51 	// Process the CSmsHeader information
       
    52 	virtual void	ProcessSmsHeaderStreamL(CSmsHeader& aHeader) = 0;
       
    53 
       
    54 
       
    55 	// Process the CRichText information
       
    56 	virtual void	ProcessRichTextBodyL(CRichText& aBodyText) = 0;
       
    57 
       
    58 	// Convert Text to character set information
       
    59 	TBool			ValidCharacterSetInfo(const TPtrC& aCharacterSetType, TUint &aCharSetVal);
       
    60 
       
    61 private:
       
    62 	// Process the CImHeader information
       
    63 	void	ProcessImHeaderL(CMsvStore& aStore);
       
    64 
       
    65 	// Process the CImMimeHeader information
       
    66 	void	ProcessImMimeHeaderL(CMsvStore& aStore);
       
    67 
       
    68 
       
    69 	// Process the CSmsHeader information
       
    70 	void	ProcessSmsHeaderStreamL(CMsvStore& aStore);
       
    71 
       
    72 
       
    73 	// Process the CRichText information
       
    74 	void	ProcessRichTextBodyL(CMsvStore& aStore);
       
    75 
       
    76 protected:
       
    77 	CTestMessBase&	iTestStep;
       
    78 
       
    79 private:
       
    80 	TBool			iReadOnly;
       
    81 };
       
    82 
       
    83 #endif /* __TEST_MESS_STORE_PROCESS_UTIL_H__ */