|
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 CSmsSendTestBase : public CSmsTestBase, MMsvSessionObserver |
|
19 { |
|
20 protected: |
|
21 CSmsSendTestBase(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aCurrentTest); |
|
22 ~CSmsSendTestBase(); |
|
23 virtual void ConstructL(); |
|
24 |
|
25 void RunL(); |
|
26 void DoCancel(); |
|
27 |
|
28 virtual void TestSendingL() = 0; |
|
29 virtual void TestSchedulingL() = 0; |
|
30 |
|
31 void ShowMenuL(); |
|
32 virtual void RunAutoL(); |
|
33 |
|
34 void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3); |
|
35 |
|
36 virtual void DoRunSendingL(); |
|
37 virtual void DoRunSchedulingL(); |
|
38 |
|
39 //From CSmsTestBase |
|
40 void DoTestSendingL(const TDesC& aScriptFile); |
|
41 void DoTestSchedulingL(const TDesC& aScriptFile, TTimeIntervalSeconds aFromNow = 5); |
|
42 |
|
43 private: |
|
44 void TestForwardSentMsgL(); |
|
45 |
|
46 protected: |
|
47 enum TSmsSendTestState |
|
48 /** @enum TSmsSendTestState |
|
49 * Enum defining the states of this test harness |
|
50 */ |
|
51 { |
|
52 EStateWaiting, |
|
53 EStateSending, |
|
54 EStateScheduling, |
|
55 EStateSchedulingThenSend, |
|
56 EStateOther |
|
57 } iState; |
|
58 }; |