diff -r 33a5d2bbf6fc -r 73a1feb507fb tsrc/musenginestub/inc/musengreceivesession.h --- a/tsrc/musenginestub/inc/musengreceivesession.h Thu Aug 19 09:51:39 2010 +0300 +++ b/tsrc/musenginestub/inc/musengreceivesession.h Tue Aug 31 15:12:07 2010 +0300 @@ -19,17 +19,23 @@ #ifndef MUSHENGREVEIVESESSION_H #define MUSHENGREVEIVESESSION_H - +// INCLUDES +#include "musengmcesession.h" +#include "musenguriparser.h" +#include "musunittesting.h" +#include "lcvideoplayer.h" +#include -#include "musengmcesession.h" +// FORWARD DECLARATIONS +class MMusEngReceiveSessionObserver; +class CMceInSession; -class MMusEngReceiveSessionObserver; - -class CMusEngReceiveSession : public CMusEngMceSession - +class CMusEngReceiveSession : + public CMusEngMceSession, + public MLcVideoPlayer { - + public: // Contructors and destructor /** @@ -40,70 +46,71 @@ * @param aSessionObserver Session specific callbacks * @return CMusEngReceiveSession* New instanse of specified class */ - IMPORT_C static CMusEngReceiveSession* NewL( - const TRect& aRect, - MMusEngReceiveSessionObserver* aSessionObserver ); + static CMusEngReceiveSession* NewL( const TRect& aRect ); /** * Destructor * * @since S60 v3.2 */ ~CMusEngReceiveSession(); - - - public: // API - - /** - * Accept or deny processed invitation - * - * @param aAccept ETrue if session is to be accepted and EFalse if - * to be rejected. - */ - IMPORT_C void AcceptInvitationL(const TBool& aAccept); - + - public: - - /** - * Sets callback interface pointer - * - * @param aSessionObserver Pointer to class which implements interface - */ - IMPORT_C void SetSessionObserver( - MMusEngReceiveSessionObserver* aSessionObserver ); - - - - protected: // internal API + public: // from MLcSession + + void EstablishLcSessionL(); + + MLcVideoPlayer* RemoteVideoPlayer(); + + const TDesC& RemoteDisplayName(); + + + public: // from MLcVideoPlayer + + TLcVideoPlayerState LcVideoPlayerState() const; + + TBool LcIsPlayingL(); + + void LcPlayL(); + + void LcPauseL(); + + MLcWindow* LcWindow(); - /** - * - * @since S60 v3.2 - */ - TBool IsRtpcInactivityTimoutSupported(); - + MLcCameraControl* LcCameraControl(); + + MLcFileControl* LcSourceFile(); + + MLcFileControl* LcDestinationFile(); + + MLcAudioControl* LcAudioControl(); + + MLcZoomControl* LcZoomControl(); + + MLcBrightnessControl* LcBrightnessControl(); - private: // CONSTRUCTORS - - CMusEngReceiveSession( MMusEngReceiveSessionObserver* aSessionObserver, - const TRect& aRect ); - - void ConstructL(); + RPointerArray< MLcValueControl >& LcExtensionControls(); + - public: // HELPERS - - //CMceInSession* InSession(); - - MMusEngReceiveSessionObserver* ReceiveSessionObserver(); + protected: // CONSTRUCTORS + + CMusEngReceiveSession( const TRect& aRect ); - // void CompleteSessionStructureL( CMceInSession& aInSession ); - - - public: // DATA - - // CMceInSession* iTemporaryInSession; // Owned - TBool iAccepInvitation; - + void ConstructL(); + + + protected: // DATA + + // identity of originator parsed form P-Asserted-Identity field + TBuf8 iIdentity; + + HBufC8* iOriginator; + + HBufC* iRemoteDisplayName; + + /** + * Dummy member variable to implement MLcVideoPlayer::LcExtensionControls + */ + RPointerArray< MLcValueControl > iValueControls; }; #endif