mmsharing/mmshavailability/inc/mmusavacapabilityqueryobserver.h
changeset 22 496ad160a278
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Capability query observer 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MMUSAVACAPABILITYQUERYOBSERVER_H
       
    19 #define MMUSAVACAPABILITYQUERYOBSERVER_H
       
    20 
       
    21 #include <sipstrconsts.h>
       
    22 #include <bamdesca.h>
       
    23 #include <mussettingskeys.h>
       
    24 
       
    25 class CMusAvaCapabilityQueryBase;
       
    26 
       
    27 
       
    28 
       
    29 /**
       
    30  * Capability Query Observer
       
    31  *
       
    32  * @lib musavailabilityplugin.lib
       
    33  */
       
    34 class MMusAvaCapabilityQueryObserver
       
    35     {
       
    36 public: 
       
    37 
       
    38     virtual void CapabilitiesResolved( const CMusAvaCapabilityQueryBase& aSentQuery ) = 0;
       
    39     
       
    40     virtual void CapabilitiesResolvedL( const TDesC& aUri ) = 0;
       
    41     
       
    42     virtual void SetCapabilitiesResolvedForCingular() = 0;
       
    43     
       
    44     virtual TBool CapabilitiesResolvedForCingular() = 0;
       
    45 
       
    46     /**
       
    47      * This is to advertise MMusAvaCapabilityQueryObserver implementors
       
    48      * about sip header change. It is mainly used in below scneraio but could
       
    49      * be used in future if anyother sip headers has to be set.
       
    50      * 
       
    51      * Incase if we receive OPTIONS request already and 
       
    52      * P-Asserted-Identity Header is present then OPTIONS
       
    53      * request should be sent to this ID. This function should be
       
    54      * called to configure this id in CMusAvaSettingsImp& iSettings
       
    55      *
       
    56      * @aHeaders Array of SIP Headers.    
       
    57      * @aHeaderType Type of the header.
       
    58      * Leavs if Array is empty or pointer is NULL.
       
    59      * Ownership Transferred.
       
    60      */
       
    61     virtual void SipHeadersL(const MDesCArray& aHeaders,
       
    62                           SipStrConsts::TStrings aHeaderType)=0;
       
    63     
       
    64     /**
       
    65      * Advertise about video codec capabilities     
       
    66      */
       
    67     virtual void VideoCodecsResolvedL( const MDesCArray& aVideoCodecs ) = 0;
       
    68     
       
    69     virtual TBool CapabilityQueryAnswered( TBool aAnswered = EFalse ) = 0;
       
    70     
       
    71     /**
       
    72      * Advertise about fast mode capability 
       
    73      */
       
    74     virtual void FastModeResolved( MusSettingsKeys::TFastMode aMode ) = 0;
       
    75     };
       
    76 
       
    77 
       
    78 #endif //MMUSAVACAPABILITYQUERYOBSERVER_H
       
    79