videoutils_plat/videoconnutility_api/inc/ipvideo/tvcxconnutilnotifierparams.h
changeset 0 822a42b6c3f1
child 11 d814ed7f9a12
equal deleted inserted replaced
-1:000000000000 0:822a42b6c3f1
       
     1 /*
       
     2 * Copyright (c) 2006 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 the License "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:    data structure for passing messages between con utility and*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef TVCXCONNUTILNOTIFIERPARAMS_
       
    22 #define TVCXCONNUTILNOTIFIERPARAMS_
       
    23 
       
    24 /**
       
    25  * Max lenght of the string passed via message
       
    26  */
       
    27 const TInt KConnUtilMaxMsgLen = 255;
       
    28 
       
    29 /**
       
    30  * implementation UID for the notifier plugin that
       
    31  * videoconnutility uses
       
    32  */
       
    33 const TUid KVcxNotifierImplUid = { 0x20016BA5 };
       
    34 
       
    35 /**
       
    36 *  TVcxNotifierParams class. Class is used as message between 
       
    37 *  vcxconnectionutility and notifier plugin. Message is to be sent to notifier,
       
    38 *  when connection is being created for showing "connecting.." or similar msg and
       
    39 *  when connection creation is ready.
       
    40 *
       
    41 *  When connection is to be created, vcxconnectionutility sends message via through
       
    42 *  notifier server where it's passed to the notifier plugin with uid of KVcxNotifierImplUid
       
    43 *  vcxconnectionutility might pass additional message string to be shown in the dialogg
       
    44 *  with iMsg descriptor.
       
    45 * 
       
    46 *  Event can be either:
       
    47 *  - EConnecting (1), when notifier should show dialog asynchronously
       
    48 *  - EConnected (2), when vcxconnectionutility wants plugin to close dialog synchronously
       
    49 *  enums are defined in vcxconnectionutility.hrh
       
    50 * 
       
    51 * If plugin wants to nofify about closing of dialog before vcxconnectionutility wants it to be closed.
       
    52 * it should complete async dialog showing with result of KErrCancel.
       
    53 *  
       
    54 */
       
    55 class TVcxNotifierParams 
       
    56     {
       
    57     public:      
       
    58 
       
    59         enum TVcxNotifierEventId
       
    60             {
       
    61             EConnecting = 1,
       
    62             EConnected
       
    63             };
       
    64         
       
    65         /**
       
    66         * Event.
       
    67         */        
       
    68         TInt iEvent;
       
    69 
       
    70         /**
       
    71         * String message.
       
    72         */
       
    73         TBuf<KConnUtilMaxMsgLen> iMsg;        
       
    74     };
       
    75 
       
    76 
       
    77 
       
    78 #endif // TVCXCONNUTILNOTIFIERPARAMS_