|
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 "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 |
|
19 |
|
20 /** |
|
21 @file |
|
22 */ |
|
23 |
|
24 #ifndef __CMTF_TEST_ACTION_COMPARE_SMS_MESSAGES_H__ |
|
25 #define __CMTF_TEST_ACTION_COMPARE_SMS_MESSAGES_H__ |
|
26 |
|
27 #include "CMtfSynchronousTestAction.h" |
|
28 |
|
29 class CMsvEntry; |
|
30 class CSmsHeader; |
|
31 |
|
32 _LIT(KTestActionCompareSmsMessages,"CompareSmsMessages"); |
|
33 |
|
34 |
|
35 class CMtfTestActionCompareSmsMessages : public CMtfSynchronousTestAction |
|
36 { |
|
37 public: |
|
38 static CMtfTestAction* NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* ActionParameters); |
|
39 virtual ~CMtfTestActionCompareSmsMessages(); |
|
40 |
|
41 public: |
|
42 virtual void ExecuteActionL(); |
|
43 public: |
|
44 enum TResult |
|
45 { |
|
46 EAllMatched = 0, |
|
47 EFailedToMatchHeader, |
|
48 EFailedToMatchBody, |
|
49 EFailedToMatchType, |
|
50 EFailedToMatchServiceId, |
|
51 EFailedToMatchPriority, |
|
52 EFailedToMatchVisibility, |
|
53 EFailedToMatchSize |
|
54 }; |
|
55 |
|
56 private: |
|
57 CMsvSession* iParamSession; |
|
58 |
|
59 private: |
|
60 CMtfTestActionCompareSmsMessages(CMtfTestCase& aTestCase); |
|
61 HBufC* GetBodyTextL(CMsvEntry& aMessage); |
|
62 CSmsHeader* GetSubmitHeaderL(CMsvEntry& aMessage); |
|
63 CSmsHeader* GetDeliverHeaderL(CMsvEntry& aMessage); |
|
64 TBool IsMatchL(CMsvEntry& aFolder1Entry, CMsvEntry& aFolder2Entry); |
|
65 TBool IsMatchHeaderL(CMsvEntry& aFolder1Entry, CMsvEntry& aFolder2Entry); |
|
66 }; |
|
67 |
|
68 |
|
69 #endif |
|
70 |