diff -r 33a5d2bbf6fc -r 73a1feb507fb mmsharing/livecommsui/lcui/tsrc/mustester/Stubs/mceclientstub/inc/mceinsessionobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmsharing/livecommsui/lcui/tsrc/mustester/Stubs/mceclientstub/inc/mceinsessionobserver.h Tue Aug 31 15:12:07 2010 +0300 @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef MMCEINSESSIONOBSERVER_H +#define MMCEINSESSIONOBSERVER_H + +// INCLUDES +#include + +// FORWARD DECLARATIONS +class CMceSession; +class CMceInSession; +class TMceTransactionDataContainer; + +// CLASS DECLARATION + +/** +* An interface to be implemented by users of MCE if they wish to receive +* invitations to session from network. +* +* This observer is set using CMceManager::SetInSessionObserver function. +* +* @lib mceclient.lib +*/ +class MMceInSessionObserver + { + + public: // Functions + + /** + * Incoming session invitation. The CMceInSession is given to the + * application as a callback. + * @param aSession, pointer to the incoming session. Ownership is + * transferred. + * @param aContainer, if present, holds details of + * transaction causing state change. + */ + virtual void IncomingSession( + CMceInSession* aSession, + TMceTransactionDataContainer* aContainer ) = 0; + + /** + * Incoming session update. The new updated CMceInSession is given to the + * application as a callback. + * @param aOrigSession, the original session to be updated. This instance + * cannot be used anymore, all actions done using aUpdatedSession instance. + * @param aUpdatedSession, pointer to the new updated session. Ownership is + * transferred. + * @param aContainer, if present, holds details of + * update transaction. + */ + virtual void IncomingUpdate( + CMceSession& aOrigSession, + CMceInSession* aUpdatedSession, + TMceTransactionDataContainer* aContainer ) = 0; + + }; + +#endif