1 /** |
|
2 * Copyright (c) 1999-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 * Header for the mainframe of the smsprot test programs |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 */ |
|
25 |
|
26 #ifndef __TE_SMSPRTTESTCASE_H__ |
|
27 #define __TE_SMSPRTTESTCASE_H__ |
|
28 |
|
29 #include <e32base.h> |
|
30 #include <es_sock.h> |
|
31 #include <f32file.h> |
|
32 #include "e32test.h" |
|
33 #include "c32comm.h" |
|
34 #include <simtsy.h> |
|
35 #include "Gsmumsg.h" |
|
36 #include "gsmubuf.h" |
|
37 #include "gsmuset.h" |
|
38 #include "smsustrm.h" |
|
39 #include "smsuaddr.h" |
|
40 |
|
41 |
|
42 class TTestCase //: public CSmsPrtTestStep |
|
43 { |
|
44 public: |
|
45 TTestCase(); |
|
46 TTestCase(const TDesC& aMsg, const TDesC& aMatch); |
|
47 TTestCase(const TDesC& aMsg, CSmsInformationElement::TSmsInformationElementIdentifier aId); |
|
48 TTestCase(const TDesC& aMsg, TSmsFirstOctet::TSmsStatusReportRequest aSRR); |
|
49 TTestCase(const TDesC& aMsg, TSmsDataCodingScheme::TSmsIndicationType aIndicationType, |
|
50 TSmsDataCodingScheme::TSmsDCSBits7To4 aBits7To4, TSmsDataCodingScheme::TSmsIndicationState iIndicationState); |
|
51 TTestCase(const TDesC& aMsg); |
|
52 const TTestCase& operator=(const TTestCase& aTest); |
|
53 void SetSmsClass(TSmsDataCodingScheme::TSmsClass aClass); |
|
54 void SetValidityPeriod(const TTimeIntervalMinutes& aTimeInterval); |
|
55 void SetRecvForever(); |
|
56 private: |
|
57 void CommonInit(); |
|
58 public: |
|
59 TSmsAddrFamily iMatchType; |
|
60 TPtrC iMsg; |
|
61 TPtrC iMatch; |
|
62 CSmsInformationElement::TSmsInformationElementIdentifier iIdentifierMatch; |
|
63 |
|
64 TBool iTestSmsClass; |
|
65 TSmsDataCodingScheme::TSmsClass iSmsClass; |
|
66 TBool iTestValidityPeriod; |
|
67 TTimeIntervalMinutes iValidityPeriod; |
|
68 TBool iTestForever; |
|
69 TBool iTestIndicators; |
|
70 TSmsDataCodingScheme::TSmsIndicationType iIndicationType; // for ESmsAddrMessageIndication |
|
71 TSmsDataCodingScheme::TSmsDCSBits7To4 iBits7To4; // for ESmsAddrMessageIndication |
|
72 TSmsDataCodingScheme::TSmsIndicationState iIndicationState; // for ESmsAddrMessageIndication |
|
73 }; |
|
74 |
|
75 #endif |
|