diff -r 73a1feb507fb -r bc78a40cd63c tsrc/musenginestub/inc/musengreceivesession.h --- a/tsrc/musenginestub/inc/musengreceivesession.h Tue Aug 31 15:12:07 2010 +0300 +++ b/tsrc/musenginestub/inc/musengreceivesession.h Wed Sep 01 12:31:01 2010 +0100 @@ -19,23 +19,17 @@ #ifndef MUSHENGREVEIVESESSION_H #define MUSHENGREVEIVESESSION_H -// INCLUDES + + #include "musengmcesession.h" -#include "musenguriparser.h" -#include "musunittesting.h" -#include "lcvideoplayer.h" -#include - -// FORWARD DECLARATIONS -class MMusEngReceiveSessionObserver; -class CMceInSession; -class CMusEngReceiveSession : - public CMusEngMceSession, - public MLcVideoPlayer +class MMusEngReceiveSessionObserver; + +class CMusEngReceiveSession : public CMusEngMceSession + { - + public: // Contructors and destructor /** @@ -46,71 +40,70 @@ * @param aSessionObserver Session specific callbacks * @return CMusEngReceiveSession* New instanse of specified class */ - static CMusEngReceiveSession* NewL( const TRect& aRect ); + IMPORT_C static CMusEngReceiveSession* NewL( + const TRect& aRect, + MMusEngReceiveSessionObserver* aSessionObserver ); /** * 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: // from MLcSession - - void EstablishLcSessionL(); - - MLcVideoPlayer* RemoteVideoPlayer(); - - const TDesC& RemoteDisplayName(); - - - public: // from MLcVideoPlayer - - TLcVideoPlayerState LcVideoPlayerState() const; - - TBool LcIsPlayingL(); - - void LcPlayL(); - - void LcPauseL(); - - MLcWindow* LcWindow(); + public: + + /** + * Sets callback interface pointer + * + * @param aSessionObserver Pointer to class which implements interface + */ + IMPORT_C void SetSessionObserver( + MMusEngReceiveSessionObserver* aSessionObserver ); + + + + protected: // internal API - MLcCameraControl* LcCameraControl(); - - MLcFileControl* LcSourceFile(); - - MLcFileControl* LcDestinationFile(); - - MLcAudioControl* LcAudioControl(); - - MLcZoomControl* LcZoomControl(); - - MLcBrightnessControl* LcBrightnessControl(); + /** + * + * @since S60 v3.2 + */ + TBool IsRtpcInactivityTimoutSupported(); + - RPointerArray< MLcValueControl >& LcExtensionControls(); - + private: // CONSTRUCTORS + + CMusEngReceiveSession( MMusEngReceiveSessionObserver* aSessionObserver, + const TRect& aRect ); + + void ConstructL(); - protected: // CONSTRUCTORS - - CMusEngReceiveSession( const TRect& aRect ); + public: // HELPERS + + //CMceInSession* InSession(); + + MMusEngReceiveSessionObserver* ReceiveSessionObserver(); - 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; + // void CompleteSessionStructureL( CMceInSession& aInSession ); + + + public: // DATA + + // CMceInSession* iTemporaryInSession; // Owned + TBool iAccepInvitation; + }; #endif