equal
deleted
inserted
replaced
|
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 #include "sendas.h" |
|
19 |
|
20 #include <smsuaddr.h> |
|
21 |
|
22 class CSmsSendAsTest : public CSmsTestBase, MSendAsObserver |
|
23 { |
|
24 public: |
|
25 static CSmsSendAsTest* NewL(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aNextTest); |
|
26 |
|
27 private: |
|
28 CSmsSendAsTest(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aNextTest); |
|
29 ~CSmsSendAsTest(); |
|
30 |
|
31 virtual void ConstructL(); |
|
32 |
|
33 void RunL(); |
|
34 void DoCancel(); |
|
35 |
|
36 void ShowMenuL(); |
|
37 void RunAutoL(); |
|
38 |
|
39 void TestSendAsL(); |
|
40 void TestSendingL(); |
|
41 void DoRunSendingL(); |
|
42 |
|
43 void DeleteChildrenL(TMsvId aParent); |
|
44 |
|
45 TBool CapabilityOK(TUid aCapability, TBool aResponse); |
|
46 |
|
47 void CompareHeadersL(const CSmsHeader& aHeader1, const CSmsHeader& aHeader2) const; |
|
48 void CompareSettingsL(const CSmsMessageSettings& aS1, const CSmsMessageSettings& aS2); |
|
49 |
|
50 |
|
51 private: |
|
52 /** @enum ESendAsTestState |
|
53 * Enum defining the states of this test harness |
|
54 */ |
|
55 enum ESendAsTestState |
|
56 { |
|
57 EStateWaiting, |
|
58 EStateSending |
|
59 } iState; |
|
60 |
|
61 RSocketServ iSocketServ; //< A Socket Server |
|
62 RSocket iSocket; //< A Socket |
|
63 }; |