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 #include <smsuaddr.h> |
|
18 |
|
19 class CSmsCancelTest : public CSmsTestBase, MMsvSessionObserver |
|
20 { |
|
21 public: |
|
22 static CSmsCancelTest* NewLC(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aCurrentTest); |
|
23 |
|
24 private: |
|
25 CSmsCancelTest(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aCurrentTest); |
|
26 ~CSmsCancelTest(); |
|
27 virtual void ConstructL(); |
|
28 |
|
29 void RunL(); |
|
30 void DoCancel(); |
|
31 |
|
32 void TestCancelSendingL(); |
|
33 void TestCancelSendingAfterScheduleL(); |
|
34 void TestCancelReadScL(); |
|
35 void TestCancelWriteScL(); |
|
36 void TestCancelReadSimParamsL(); |
|
37 void TestCancelEnumerateL(); |
|
38 |
|
39 void ShowMenuL(); |
|
40 virtual void RunAutoL(); |
|
41 |
|
42 void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3); |
|
43 void CancelIfSendingL(const CMsvEntrySelection& aSelection); |
|
44 |
|
45 virtual void DoRunSendingL(); |
|
46 virtual void DoRunSchedulingL(); |
|
47 |
|
48 RSocketServ iSocketServ; //< A Socket Server |
|
49 RSocket iSocket; //< A Socket |
|
50 |
|
51 |
|
52 protected: |
|
53 enum TSmsSendTestState |
|
54 { |
|
55 EStateWaiting, |
|
56 EStateSending, |
|
57 EStateScheduling |
|
58 } iState; |
|
59 }; |
|