|
1 /* |
|
2 * Copyright (c) 2005 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 #ifndef MUSHENGTWOWAYSESSION_H |
|
20 #define MUSHENGTWOWAYSESSION_H |
|
21 |
|
22 // USER |
|
23 #include "musengmcesession.h" |
|
24 |
|
25 // SYSTEM |
|
26 #include <ecam.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class MMusEngLiveSessionObserver; |
|
30 class CMceDisplaySink; |
|
31 class MMusEngTwoWaySessionObserver; |
|
32 class CMusEngRemoteVideoPlayer; |
|
33 |
|
34 |
|
35 class CMusEngTwoWaySession : public CMusEngMceSession |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Creates new MultimediaSharing Live session. |
|
40 * @return CMusEngTwoWaySession* New instanse of specified class |
|
41 */ |
|
42 static CMusEngTwoWaySession* NewL(); |
|
43 |
|
44 |
|
45 public: |
|
46 |
|
47 /** |
|
48 * Destructor |
|
49 */ |
|
50 ~CMusEngTwoWaySession(); |
|
51 |
|
52 public: |
|
53 |
|
54 void EnableDisplayL( TBool aEnable ); |
|
55 |
|
56 void SetOrientationL( MMusEngDisplayHandler::TDisplayOrientation aOrientation ); |
|
57 |
|
58 void EstablishLcSessionL(); |
|
59 |
|
60 void TerminateLcSessionL(); |
|
61 |
|
62 MLcVideoPlayer* RemoteVideoPlayer(); |
|
63 public: |
|
64 |
|
65 /** |
|
66 * Sets both remote (receiving video) and local (viewfinder) rects. |
|
67 * |
|
68 */ |
|
69 void SetRectsL( const TRect& aRemoteRect, |
|
70 const TRect& aLocalRect ); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * Constructor |
|
76 */ |
|
77 CMusEngTwoWaySession(); |
|
78 |
|
79 /** |
|
80 * Second-phase constructor |
|
81 */ |
|
82 void ConstructL(); |
|
83 |
|
84 }; |
|
85 |
|
86 #endif |
|
87 |