williamr@2: /* williamr@2: * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Interface for the IM application launching williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: williamr@2: #ifndef IMLAUNCHERPLUGIN_H williamr@2: #define IMLAUNCHERPLUGIN_H williamr@2: williamr@2: // INCLUDES williamr@2: #include williamr@2: williamr@2: // UID of this interface williamr@2: const TUid KImLauncherPluginUid = {0x101FB0CC}; williamr@2: williamr@2: /** williamr@2: * Interface class for application launching williamr@2: * williamr@2: * @since 2.6 williamr@2: */ williamr@2: class CImLauncherPlugin : public CBase williamr@2: { williamr@2: public: // Constructors and destructor williamr@2: williamr@2: /** williamr@2: * Two-phased constructor. williamr@2: * @param aApplicationId the Application ID of the application to be launched williamr@2: * @return CImLauncherPlugin instance williamr@2: */ williamr@2: static CImLauncherPlugin* NewL( const TDesC8& aApplicationId ); williamr@2: williamr@2: /** williamr@2: * Destructor. williamr@2: */ williamr@2: virtual ~CImLauncherPlugin(); williamr@2: williamr@2: public: // New functions williamr@2: williamr@2: /** williamr@2: * Method for starting an application which can receive instant messages. williamr@2: * Asynchronous function. williamr@2: * @since 3.0 williamr@2: * @param aStatus Request status williamr@2: * @param aSAP the remote SAP server from where the pending IM came williamr@2: * @param aUserId the user ID who received the IM williamr@2: */ williamr@2: virtual void StartApplicationL( williamr@2: TRequestStatus& aStatus, williamr@2: const TDesC& aSap, williamr@2: const TDesC& aUserId ) = 0; williamr@2: williamr@2: /** williamr@2: * Method for canceling the application start. williamr@2: * @since 2.6 williamr@2: */ williamr@2: virtual void CancelStartApplication() = 0; williamr@2: williamr@2: protected: williamr@2: //Default c'tor williamr@2: inline CImLauncherPlugin(); williamr@2: williamr@2: private: // Data williamr@2: /** iDtor_ID_Key Instance identifier key. When instance of an williamr@2: * implementation is created by ECOM framework, the williamr@2: * framework will assign UID for it. The UID is used in williamr@2: * destructor to notify framework that this instance is williamr@2: * being destroyed and resources can be released. williamr@2: */ williamr@2: TUid iDtor_ID_Key; williamr@2: williamr@2: }; williamr@2: williamr@2: // This includes the implementation of the instantiation functions and williamr@2: // destructor williamr@2: #include "imlauncherplugin.inl" williamr@2: williamr@2: #endif // IMLAUNCHERPLUGIN_H williamr@2: williamr@2: // End of File