|
1 // Copyright (c) 2006-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 |
|
17 #ifndef __T_SMSDELIVERLASTSEGMENTREPORT_H__ |
|
18 #define __T_SMSDELIVERLASTSEGMENTREPORT_H__ |
|
19 #include <e32base.h> |
|
20 |
|
21 #include <s32std.h> |
|
22 #include <txtrich.h> //CRichText |
|
23 #include <e32test.h> |
|
24 #include <msvuids.h> // ServiceEntry, FolderEntry, etc. |
|
25 #include <mtmuids.h> // query capabilities |
|
26 #include "smutset.h" // sms settings |
|
27 #include "smuthdr.h" // sms header |
|
28 #include "smsclnt.h" // sms (a)sync commands |
|
29 #include "smstestbase.h" |
|
30 |
|
31 |
|
32 GLDEF_D RTest test(_L("SMCM Test Harness")); |
|
33 GLDEF_D CTrapCleanup* theCleanup; |
|
34 |
|
35 LOCAL_C void doMainL(void); |
|
36 GLDEF_C TInt E32Main(void); |
|
37 |
|
38 class CSmsDeliverLastSegmentReport : public CSmsTestBase |
|
39 { |
|
40 public: |
|
41 static CSmsDeliverLastSegmentReport* NewLC(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aNextTest); |
|
42 ~CSmsDeliverLastSegmentReport(); |
|
43 |
|
44 private: |
|
45 CSmsDeliverLastSegmentReport(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aNextTest); |
|
46 void ConstructL(); |
|
47 |
|
48 void RunL() {}; |
|
49 void DoCancel() {}; |
|
50 |
|
51 void ShowMenuL(); |
|
52 void RunAutoL(); |
|
53 |
|
54 //Test Functions |
|
55 void TestSmsSettingsL(); |
|
56 void TestSmsHeaderL(); |
|
57 void TestSettingLastSegmentDeliveryReport(CSmsMessageSettings& aSettings); |
|
58 TBool CompareSettingsFiles( |
|
59 RFs& aFs, const TDesC& aCompare1, const TDesC& aCompare2 |
|
60 ); |
|
61 private: |
|
62 CSmsHeader* iSmsHeader; |
|
63 CRichText* iRichText; |
|
64 CParaFormatLayer* iParaLayer; |
|
65 CCharFormatLayer* iCharLayer; |
|
66 }; |
|
67 |
|
68 #endif |