diff -r 3104fc151679 -r 9a48e301e94b imstutils/imconversationview/imcvuiengine/inc/mimcvenginemessagehandlerobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imstutils/imconversationview/imcvuiengine/inc/mimcvenginemessagehandlerobserver.h Wed Sep 01 12:33:36 2010 +0100 @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2008-2009 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: message handler observer +* +*/ + +#ifndef MIMCVENGINEMESSAGEHANDLEROBSERVER_H +#define MIMCVENGINEMESSAGEHANDLEROBSERVER_H + +// INCLUDES +#include +#include +#include "imcvuiliterals.h" +#include "mimcvenginemessage.h" +// FORWARD CLASS DECLERATIONS + + +// CLASS DECLARATION +/** + * presence handler interface + * + * @lib imcvengine.dll + * @since 5.0 + */ +class MIMCVEngineMessageHandlerObserver + { + public: + + /** + * @see handle the presence change notification + * to handle the connection lost + */ + virtual void HandlePresenceChangedL(TInt aServiceId, const TDesC& aBuddyId ) = 0 ; + + /** + * Handle message send operation completion. + * @param aResult result to handle. + */ + virtual void HandleOperationCompletdL(TInt aserviceId, MIMCVEngineMessage::TMessagerType aType , TInt aResult) = 0 ; + + /** + * @see HandleConnectionTerminatedL + * to handle the connection lost + * @param aReason, reason report + */ + virtual void HandleConnectionEventL(TInt aServiceId, TIMCVConnectionState aState, TInt aReason ) = 0 ; + + protected: // For protection. + + /** + * Destructor for protection + */ + virtual ~MIMCVEngineMessageHandlerObserver(){} + +}; +#endif // MIMCVENGINEHANDLEROBSERVER_H + +// End of File