|
1 // Copyright (c) 1999-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 @file |
|
18 */ |
|
19 |
|
20 #ifndef SMSSTACKTESTCASE_H |
|
21 #define SMSSTACKTESTCASE_H |
|
22 |
|
23 #include <gsmuelem.h> |
|
24 #include <smsuaddr.H> |
|
25 |
|
26 class TTestCase //: public CSmsPrtTestStep |
|
27 { |
|
28 public: |
|
29 IMPORT_C TTestCase(); |
|
30 IMPORT_C TTestCase(const TDesC& aMsg, const TDesC& aMatch); |
|
31 IMPORT_C TTestCase(const TDesC& aMsg, CSmsInformationElement::TSmsInformationElementIdentifier aId); |
|
32 IMPORT_C TTestCase(const TDesC& aMsg, TSmsFirstOctet::TSmsStatusReportRequest aSRR); |
|
33 IMPORT_C TTestCase(const TDesC& aMsg, TSmsDataCodingScheme::TSmsIndicationType aIndicationType, |
|
34 TSmsDataCodingScheme::TSmsDCSBits7To4 aBits7To4, TSmsDataCodingScheme::TSmsIndicationState iIndicationState); |
|
35 IMPORT_C TTestCase(const TDesC& aMsg); |
|
36 IMPORT_C const TTestCase& operator=(const TTestCase& aTest); |
|
37 IMPORT_C void SetSmsClass(TSmsDataCodingScheme::TSmsClass aClass); |
|
38 IMPORT_C void SetValidityPeriod(const TTimeIntervalMinutes& aTimeInterval); |
|
39 IMPORT_C void SetRecvForever(); |
|
40 |
|
41 private: |
|
42 void CommonInit(); |
|
43 |
|
44 public: |
|
45 TSmsAddrFamily iMatchType; |
|
46 TPtrC iMsg; |
|
47 TPtrC iMatch; |
|
48 CSmsInformationElement::TSmsInformationElementIdentifier iIdentifierMatch; |
|
49 |
|
50 TBool iTestSmsClass; |
|
51 TSmsDataCodingScheme::TSmsClass iSmsClass; |
|
52 TBool iTestValidityPeriod; |
|
53 TTimeIntervalMinutes iValidityPeriod; |
|
54 TBool iTestForever; |
|
55 TBool iTestIndicators; |
|
56 TSmsDataCodingScheme::TSmsIndicationType iIndicationType; // for ESmsAddrMessageIndication |
|
57 TSmsDataCodingScheme::TSmsDCSBits7To4 iBits7To4; // for ESmsAddrMessageIndication |
|
58 TSmsDataCodingScheme::TSmsIndicationState iIndicationState; // for ESmsAddrMessageIndication |
|
59 }; |
|
60 |
|
61 #endif // SMSSTACKTESTCASE_H |