conversations_plat/im_cv_launcher_api/inc/imcvlauncher.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  launcher class for launching the conversation view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IMCVLAUNCHER_H
       
    21 #define IMCVLAUNCHER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <vwsdef.h>
       
    25 class    MVPbkContactLink;
       
    26 //  INCLUDES
       
    27 /**
       
    28 *  IM conversationview launcher implementation class
       
    29 *
       
    30 *  @lib imcvlauncher
       
    31 *  @since 5.0
       
    32 */
       
    33 class IMCVLauncher
       
    34     {
       
    35 
       
    36     public:  
       
    37     
       
    38 		/**
       
    39 		* LaunchImConversationViewL, launches the imconversation view
       
    40         * @param aActiveViewId , active view details
       
    41         * @param aServiceId - ServiceId        
       
    42         * @param aRecipientUserId , recipient user id used to send the message
       
    43         * @Returns Error Code
       
    44 	    */
       
    45 	    
       
    46 		IMPORT_C static TInt LaunchImConversationViewL(TVwsViewId aActiveViewId,
       
    47 														TInt aServiceId,
       
    48 														const TDesC& aRecipientUserId ,
       
    49 														const TDesC& aDisplayName = KNullDesC, 
       
    50 														MVPbkContactLink* aContactLink = NULL 
       
    51 														) ;
       
    52 														
       
    53 		static TInt PropertySettingsIdL(TUint32 aServiceId ) ;
       
    54 										
       
    55 	private:
       
    56 		/**
       
    57 		* CheckValidServiceL, Checks whether the service is a Valid IM service         
       
    58         * @param aServiceId - ServiceId              
       
    59         * @Returns TBool - ETrue if Valid Service, else EFalse
       
    60 	    */
       
    61 		static TBool CheckValidServiceL(TInt aServiceId);
       
    62 		
       
    63     };
       
    64 
       
    65 #endif      // CIMCVLAUNCHER_H
       
    66 
       
    67 // End of File