diff -r 000000000000 -r c8caa15ef882 pressrv_plat/simple_instant_msg_api/inc/simpleinstantmessage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pressrv_plat/simple_instant_msg_api/inc/simpleinstantmessage.h Tue Feb 02 01:05:17 2010 +0200 @@ -0,0 +1,63 @@ +/* +* 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: IM API for Simple Engine +* +*/ + + +#ifndef M_SIMPLEINSTANTMESSAGE_H +#define M_SIMPLEINSTANTMESSAGE_H + + +#include + + +/** + * Class for sending instant messages. + * + * @code + * MSimpleInstantMessage* im = + * TSimpleFactory::NewInstantMessageL( conn, connObs ); + * TInt result = im->SendInstantMessage( text8, recipientsPtr8 ); + * @endcode + * + * @lib simpleengine.lib + * @since S60 v5.1 + */ +class MSimpleInstantMessage + { + +public: + + /** + * Send instant message. + * + * @since S60 v5.1 + * @param aMsgContent message content + * @param aRecipient recipient ID + * @return Operation ID + */ + virtual TInt SendInstantMessage( TPtrC8 aMsgContent, + TPtrC8 aRecipient ) = 0; + + /** + * Destroy this entity. + * + * @since S60 v5.1 + */ + virtual void Close() = 0; + }; + + +#endif // M_SIMPLEINSTANTMESSAGE_H