1 // Copyright (c) 2005-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 #ifndef __T_SMSSPECIALINDICATIONSSTEP_H__ |
|
17 #define __T_SMSSPECIALINDICATIONSSTEP_H__ |
|
18 |
|
19 #include <testexecutestepbase.h> |
|
20 #include <stdlib.h> |
|
21 #include <smstestutils.h> |
|
22 #include <es_sock.h> |
|
23 |
|
24 #include "t_smsreplytoserver.h" |
|
25 |
|
26 |
|
27 class EntryObserver : public MMsvEntryObserver |
|
28 { |
|
29 public: |
|
30 virtual void HandleEntryEventL(TMsvEntryEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3); |
|
31 }; |
|
32 |
|
33 class SessionObserver : public MMsvSessionObserver |
|
34 { |
|
35 public: |
|
36 virtual void HandleSessionEventL(TMsvSessionEvent /*aEvent*/, TAny* /*aArg1*/, TAny* /*aArg2*/, TAny* /*aArg3*/){}; |
|
37 }; |
|
38 |
|
39 class CSmsSpecialIndicationsStep : public CTestStep |
|
40 { |
|
41 public: |
|
42 CSmsSpecialIndicationsStep(); |
|
43 ~CSmsSpecialIndicationsStep(); |
|
44 void InitialiseSpecialIndicationsStepL(); |
|
45 virtual TVerdict doTestStepPreambleL(); |
|
46 virtual TVerdict doTestStepPostambleL(); |
|
47 virtual TVerdict doTestStepL(); |
|
48 private: |
|
49 void InitialiseSimTsyL(); |
|
50 void InitialiseTestL(); |
|
51 void StartWatcherL(); |
|
52 TBool WatchersAlreadyRunningL(); |
|
53 void CreateMessageL(); |
|
54 void SetRecipientsL(CSmsHeader& aHeader); |
|
55 void SendMessageL(); |
|
56 TBool CheckMessageL(); |
|
57 private: |
|
58 CSmsTestUtils* iTestUtils; |
|
59 EntryObserver* iEntryObserver; |
|
60 CMsvSession* iSession; |
|
61 SessionObserver* iSessionObserver; |
|
62 CMsvEntry* iEntry; |
|
63 CActiveScheduler* iScheduler; |
|
64 CTestUtilsWatcherStarter* iWatchers; |
|
65 CMsvOperation* iOperation; |
|
66 TMsvId iMessageId; |
|
67 CTestActive* iTestActive; |
|
68 }; |
|
69 |
|
70 _LIT(KSmsSpecialIndicationsStep1,"SmsSpecialIndicationsStep1"); |
|
71 |
|
72 #endif // __T_SMSSPECIALINDICATIONSSTEP_H__ |
|
73 |
|