|
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 MCC_STUBS_H |
|
22 #define MCC_STUBS_H |
|
23 |
|
24 #include "mmccinterfacedef.h" |
|
25 |
|
26 class CMccInterfaceStub : public CBase, public MMccCtrlObserver |
|
27 { |
|
28 public: |
|
29 static CMccInterfaceStub* NewL(); |
|
30 virtual ~CMccInterfaceStub(); |
|
31 |
|
32 public: |
|
33 void MccEventReceived( const TMccEvent& aEvent ); |
|
34 |
|
35 void MccMediaStarted( TUint32 aSessionId, |
|
36 TUint32 aLinkId, |
|
37 TUint32 aStreamId, |
|
38 TUint32 aSinkSourceId ); |
|
39 |
|
40 void MccMediaStopped( TUint32 aSessionId, |
|
41 TUint32 aLinkId, |
|
42 TUint32 aStreamId, |
|
43 TUint32 aSinkSourceId ); |
|
44 |
|
45 void MccMediaPaused( TUint32 aSessionId, |
|
46 TUint32 aLinkId, |
|
47 TUint32 aStreamId, |
|
48 TUint32 aSinkSourceId ); |
|
49 |
|
50 void MccMediaResumed( TUint32 aSessionId, |
|
51 TUint32 aLinkId, |
|
52 TUint32 aStreamId, |
|
53 TUint32 aSinkSourceId ); |
|
54 |
|
55 void MccMediaPrepared( TUint32 aSessionId, |
|
56 TUint32 aLinkId, |
|
57 TUint32 aStreamId, |
|
58 TUint32 aSinkSourceId ); |
|
59 |
|
60 void MccMediaInactive( TUint32 aSessionId, |
|
61 TUint32 aLinkId, |
|
62 TUint32 aStreamId, |
|
63 TUint32 aSinkSourceId ); |
|
64 |
|
65 void MccMediaActive( TUint32 aSessionId, |
|
66 TUint32 aLinkId, |
|
67 TUint32 aStreamId, |
|
68 TUint32 aSinkSourceId ); |
|
69 |
|
70 void MccCtrlError( TInt aError, |
|
71 TUint32 aSessionId, |
|
72 TUint32 aLinkId, |
|
73 TUint32 aStreamId, |
|
74 TUint32 aSinkSourceId ); |
|
75 |
|
76 void UnknownMediaReceived( TUint32 aSessionId, |
|
77 TUint32 aLinkId, |
|
78 TUint32 aStreamId, |
|
79 TUint32 aSinkSourceId, |
|
80 TUint8 aPayloadType ); |
|
81 |
|
82 void WaitForEvent( TUint32 aSessionId, TUint32 aLinkId, |
|
83 TUint32 aStreamId, TMccEventType aEventType ); |
|
84 |
|
85 void WaitForEvent( TUint32 aSessionId, TUint32 aLinkId, |
|
86 TUint32 aStreamId, TUint32 aSinkSourceId, TMccEventType aEventType ); |
|
87 |
|
88 void WaitForEvent( TUint32 aSessionId, TUint32 aLinkId, |
|
89 TUint32 aStreamId, TMccEventType aEventType, TMccDtmfEventType aDtmfEventType ); |
|
90 |
|
91 private: |
|
92 |
|
93 CMccInterfaceStub(); |
|
94 |
|
95 TBool EventsAreEqual( const TMccEvent& aEvent1, |
|
96 const TMccEvent& aEvent2 ) const; |
|
97 |
|
98 void ClearEvent( TMccEvent& aEvent ); |
|
99 |
|
100 void HandleEventReceival( const TMccEvent& aEvent ); |
|
101 |
|
102 private: |
|
103 |
|
104 TMccEvent iEventToWaitFor; |
|
105 |
|
106 }; |
|
107 |
|
108 #endif // MCC_STUBS_H |