diff -r 000000000000 -r c8caa15ef882 pressrv_plat/simple_instant_msg_api/inc/simpleinstantmsgobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pressrv_plat/simple_instant_msg_api/inc/simpleinstantmsgobserver.h Tue Feb 02 01:05:17 2010 +0200 @@ -0,0 +1,60 @@ +/* +* Copyright (c) 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: SIMPLE Engine instant message callback observer +* +*/ + +#ifndef M_SIMPLEINSTANTMSGOBSERVER_H +#define M_SIMPLEINSTANTMSGOBSERVER_H + + +#include + + +/** + * MSimpleInstantMsgObserver + * + * SIMPLE Instant Message callback observer + * + * @lib simpleengine.lib + * @since S60 v5.1 + */ +class MSimpleInstantMsgObserver + { + +public: + + /** + * Callback for completion of Send Instant Message Request + * + * @since S60 v5.1 + * @param aOpid Operation ID + * @param aStatus Completion status + */ + virtual void SendInstantMsgReqComplete( TInt aOpid, TInt aStatus ) = 0; + + /** + * Callback for handling of received text message + * + * @since S60 v5.1 + * @param aFrom Message received from + * @param aContent Message content + */ + virtual void HandleReceiveTextMessage( TPtrC8 aFrom, + TPtrC8 aContent ) = 0; + + }; + + +#endif // M_SIMPLEINSTANTMSGOBSERVER_H