|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef STUNUDBMEDIATESTSTUBS_H |
|
22 #define STUNUDBMEDIATESTSTUBS_H |
|
23 |
|
24 #include "natfwconnectivityapidefs.h" |
|
25 #include <mmccctrlobserver.h> |
|
26 #include <mmccnetworksettings.h> |
|
27 |
|
28 #include "natfwtestconsolestubs.h" |
|
29 |
|
30 class MTestConsoleStubsObserver; |
|
31 class CNATFWCandidate; |
|
32 class CConsoleBase; |
|
33 |
|
34 class CMediaTestStubs : |
|
35 public CNATConnFWTestConsoleStubs, |
|
36 public MMccCtrlObserver |
|
37 { |
|
38 |
|
39 public: |
|
40 static CMediaTestStubs* NewL( CConsoleBase& aConsole ); |
|
41 |
|
42 virtual ~CMediaTestStubs(); |
|
43 |
|
44 public: |
|
45 |
|
46 void SetObserver( MTestConsoleStubsObserver* aObserver ); |
|
47 |
|
48 |
|
49 // MCC controller observer |
|
50 void MccEventReceived( const TMccEvent& aEvent ); |
|
51 |
|
52 |
|
53 void MccMediaStarted( TUint32 aSessionId, |
|
54 TUint32 aLinkId, |
|
55 TUint32 aStreamId, |
|
56 TUint32 aSinkSourceId ); |
|
57 |
|
58 void MccMediaStopped( TUint32 aSessionId, |
|
59 TUint32 aLinkId, |
|
60 TUint32 aStreamId, |
|
61 TUint32 aSinkSourceId ); |
|
62 |
|
63 void MccMediaPaused( TUint32 aSessionId, |
|
64 TUint32 aLinkId, |
|
65 TUint32 aStreamId, |
|
66 TUint32 aSinkSourceId ); |
|
67 |
|
68 void MccMediaResumed( TUint32 aSessionId, |
|
69 TUint32 aLinkId, |
|
70 TUint32 aStreamId, |
|
71 TUint32 aSinkSourceId ); |
|
72 |
|
73 void MccMediaPrepared( TUint32 aSessionId, |
|
74 TUint32 aLinkId, |
|
75 TUint32 aStreamId, |
|
76 TUint32 aSinkSourceId ); |
|
77 |
|
78 void MccMediaInactive( TUint32 aSessionId, |
|
79 TUint32 aLinkId, |
|
80 TUint32 aStreamId, |
|
81 TUint32 aSinkSourceId ); |
|
82 |
|
83 void MccMediaActive( TUint32 aSessionId, |
|
84 TUint32 aLinkId, |
|
85 TUint32 aStreamId, |
|
86 TUint32 aSinkSourceId ); |
|
87 |
|
88 void MccCtrlError( TInt aError, |
|
89 TUint32 aSessionId, |
|
90 TUint32 aLinkId, |
|
91 TUint32 aStreamId, |
|
92 TUint32 aSinkSourceId ); |
|
93 |
|
94 void UnknownMediaReceived( TUint32 aSessionId, |
|
95 TUint32 aLinkId, |
|
96 TUint32 aStreamId, |
|
97 TUint32 aSinkSourceId, |
|
98 TUint8 aPayloadType ); |
|
99 |
|
100 TMccNetSettings& NetSettings(); |
|
101 |
|
102 protected: |
|
103 |
|
104 CMediaTestStubs( CConsoleBase& aConsole ); |
|
105 |
|
106 private: |
|
107 |
|
108 MTestConsoleStubsObserver* iObserver; |
|
109 TMccNetSettings iNetsettings; |
|
110 }; |
|
111 |
|
112 #endif // STUNUDBMEDIATESTSTUBS_H |