vtengines/vtmediatorplugin/inc/vtinternalmediatorapi.h
changeset 0 ed9695c8bcbe
child 24 f15ac8e65a02
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     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:  Message Interface between VT mediator plugin and VT application
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VTINTERNALMEDIATORAPI_H
       
    20 #define VTINTERNALMEDIATORAPI_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 /** The category UID for the messages in this header file.
       
    26  * UID for category is not real UID, it just need to unique in Domain
       
    27  */
       
    28 const TUid KCatVideotelInternalEvents = { 0x101F8690 };   
       
    29 const TUid KCatVideotelInternalCommands = { 0x101F8691 };  
       
    30 
       
    31 /**  Version number of this API */
       
    32 const TInt KVideotelMdtrEventVersionMajor( 1 );
       
    33 const TInt KVideotelMdtrEventVersionMinor( 0 );
       
    34 const TInt KVideotelMdtrEventVersionBuild( 0 );
       
    35 
       
    36 /**  Version number of this API */
       
    37 const TInt KVideotelMdtrCommandsVersionMajor( 1 );
       
    38 const TInt KVideotelMdtrCommandsVersionMinor( 0 );
       
    39 const TInt KVideotelMdtrCommandsVersionBuild( 0 );
       
    40 
       
    41 struct TVtVideoTelephonyCallInformation
       
    42 {   
       
    43     /** Max length of display text */
       
    44     enum { TDisplayTextMaxLength = 100 };        
       
    45                                      
       
    46     /** Display text type definition */
       
    47     typedef TBuf<TDisplayTextMaxLength> TDisplayText;
       
    48 
       
    49     /** Remote end CLI identifier (name/number/call id) */
       
    50     TDisplayText iDisplayText;
       
    51     
       
    52     /** Call id of the video call */
       
    53     TInt iCallId;
       
    54                                  
       
    55     /** Indicates voice call creation possibility to remote end (number is
       
    56      *  available)
       
    57      */
       
    58     TBool iVoiceCallPossible; 
       
    59     
       
    60     /** Dataport name or empty buffer if not specified in the event */
       
    61     TName iDataport;
       
    62 
       
    63     /**
       
    64     * Defines which parts of the event date is valid
       
    65     */
       
    66     enum TMessageDataValidity {
       
    67         EDisplayTextValid = 0x01,
       
    68         EDataportValid    = 0x02
       
    69     };
       
    70                                                
       
    71     /** Event data validity */
       
    72     TUint iEventDataValidity;
       
    73         
       
    74 };
       
    75 
       
    76 typedef TPckgBuf<TVtVideoTelephonyCallInformation> TVtMediatorInfoPackage;
       
    77 
       
    78 /**  Events bwtween Video Telephony Mediator plugin and VT application. */
       
    79 enum TVideotelMdtrEvents
       
    80     {
       
    81     /**
       
    82      * Event with TVtVideoTelephonyCallInformation as content
       
    83      * Consuming event requires capability ECapabilityReadDeviceData
       
    84      */
       
    85     EVtMediatorEventVideoCallInformation = 0
       
    86     };
       
    87 
       
    88 enum TVideotelMdtrCommands
       
    89     {
       
    90     EVtMediatorReleaseDataport = 0
       
    91     };
       
    92 
       
    93 #endif // VTINTERNALMEDIATORAPI_H