|
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 #ifndef MUSHENGREVEIVESESSION_H |
|
20 #define MUSHENGREVEIVESESSION_H |
|
21 |
|
22 |
|
23 |
|
24 #include "musengmcesession.h" |
|
25 |
|
26 |
|
27 class MMusEngReceiveSessionObserver; |
|
28 |
|
29 class CMusEngReceiveSession : public CMusEngMceSession |
|
30 |
|
31 { |
|
32 |
|
33 public: // Contructors and destructor |
|
34 |
|
35 /** |
|
36 * Creates new MultimediaSharing Receive session. |
|
37 * |
|
38 * @param aRect UI drawing area. It is allowed handle from engine |
|
39 * @param aEngObserver Engine specific callbacks |
|
40 * @param aSessionObserver Session specific callbacks |
|
41 * @return CMusEngReceiveSession* New instanse of specified class |
|
42 */ |
|
43 IMPORT_C static CMusEngReceiveSession* NewL( |
|
44 const TRect& aRect, |
|
45 MMusEngReceiveSessionObserver* aSessionObserver ); |
|
46 /** |
|
47 * Destructor |
|
48 * |
|
49 * @since S60 v3.2 |
|
50 */ |
|
51 ~CMusEngReceiveSession(); |
|
52 |
|
53 |
|
54 public: // API |
|
55 |
|
56 /** |
|
57 * Accept or deny processed invitation |
|
58 * |
|
59 * @param aAccept ETrue if session is to be accepted and EFalse if |
|
60 * to be rejected. |
|
61 */ |
|
62 IMPORT_C void AcceptInvitationL(const TBool& aAccept); |
|
63 |
|
64 |
|
65 public: |
|
66 |
|
67 /** |
|
68 * Sets callback interface pointer |
|
69 * |
|
70 * @param aSessionObserver Pointer to class which implements interface |
|
71 */ |
|
72 IMPORT_C void SetSessionObserver( |
|
73 MMusEngReceiveSessionObserver* aSessionObserver ); |
|
74 |
|
75 |
|
76 |
|
77 protected: // internal API |
|
78 |
|
79 /** |
|
80 * |
|
81 * @since S60 v3.2 |
|
82 */ |
|
83 TBool IsRtpcInactivityTimoutSupported(); |
|
84 |
|
85 |
|
86 private: // CONSTRUCTORS |
|
87 |
|
88 CMusEngReceiveSession( MMusEngReceiveSessionObserver* aSessionObserver, |
|
89 const TRect& aRect ); |
|
90 |
|
91 void ConstructL(); |
|
92 |
|
93 public: // HELPERS |
|
94 |
|
95 //CMceInSession* InSession(); |
|
96 |
|
97 MMusEngReceiveSessionObserver* ReceiveSessionObserver(); |
|
98 |
|
99 // void CompleteSessionStructureL( CMceInSession& aInSession ); |
|
100 |
|
101 |
|
102 public: // DATA |
|
103 |
|
104 // CMceInSession* iTemporaryInSession; // Owned |
|
105 TBool iAccepInvitation; |
|
106 |
|
107 }; |
|
108 |
|
109 #endif |
|
110 |