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