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 #include <smstestbase.h> |
|
17 |
|
18 class CSchSmsTest : public CSmsTestBase, MMsvSessionObserver |
|
19 { |
|
20 public: |
|
21 |
|
22 static CSchSmsTest* NewLC(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aCurrentTest); |
|
23 |
|
24 protected: |
|
25 CSchSmsTest(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aCurrentTest); |
|
26 ~CSchSmsTest(); |
|
27 virtual void ConstructL(); |
|
28 |
|
29 void RunL(); |
|
30 void DoCancel(); |
|
31 |
|
32 void TestDeleteScheduleL(); |
|
33 void TestCheckScheduleL(); |
|
34 |
|
35 void ShowMenuL(); |
|
36 virtual void RunAutoL(); |
|
37 |
|
38 void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3); |
|
39 |
|
40 virtual void DoRunSendingL(); |
|
41 virtual void DoRunSchedulingL(); |
|
42 |
|
43 //From CSmsTestBase |
|
44 void DoTestSendingL(const TDesC& aScriptFile); |
|
45 void DoTestSchedulingL(const TDesC& aScriptFile, TTimeIntervalSeconds aFromNow = 5); |
|
46 |
|
47 protected: |
|
48 enum TSmsSendTestState |
|
49 { |
|
50 EStateWaiting, |
|
51 EStateSending, |
|
52 EStateCheckSchedule, |
|
53 EStateDeleteSchedule |
|
54 } iState; |
|
55 }; |
|