mmsharing/mmshavailability/inc/musavasipheaderutil.h
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     1 /*
       
     2 * Copyright (c) 2005-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 "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:  Sent capability query (OPTIONS)
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMUSAVASIPHEADERUTIL_H
       
    20 #define CMUSAVASIPHEADERUTIL_H
       
    21 
       
    22 
       
    23 #include <e32base.h>    
       
    24 #include <stringpool.h>
       
    25 
       
    26 class CSIPHeaderBase;
       
    27 class CSIPRequestElements;
       
    28 class CSIPConnection;
       
    29 
       
    30 /**
       
    31  * Utility class to add some of the sip headers.
       
    32  * @precondition SIPStrings::OpenL() and
       
    33  *               SdpCodecStringPool::OpenL() should be called.
       
    34  *               Else most of the function will leave.
       
    35  * @lib AlwaysOnlinePlugin.dll
       
    36  */
       
    37 class CMusAvaSipheaderUtil : public CBase
       
    38     {
       
    39 
       
    40 public: 
       
    41 
       
    42     /**
       
    43      * Utility class to add some of the sip headers.
       
    44      * @precondition SIPStrings::OpenL() and
       
    45      *               SdpCodecStringPool::OpenL() should be called.
       
    46      *               Else most of the function will leave.
       
    47      * @lib AlwaysOnlinePlugin.dll
       
    48      */
       
    49 
       
    50     static void AddAcceptContactHeaderL( 
       
    51                             RPointerArray<CSIPHeaderBase>& aRequestHeaders,
       
    52                             const RStringF& aFeatureTag );
       
    53 
       
    54     /**
       
    55      * Utility class to add some of the sip headers.
       
    56      * @precondition SIPStrings::OpenL() and
       
    57      *               SdpCodecStringPool::OpenL() should be called.
       
    58      *               Else most of the function will leave.
       
    59      * @lib AlwaysOnlinePlugin.dll
       
    60      */
       
    61 
       
    62     static void AddAcceptEncodingHeaderL( 
       
    63                             RPointerArray<CSIPHeaderBase>& aRequestHeaders );
       
    64 
       
    65     /**
       
    66      * Utility class to add some of the sip headers.
       
    67      * @precondition SIPStrings::OpenL() and
       
    68      *               SdpCodecStringPool::OpenL() should be called.
       
    69      *               Else most of the function will leave.
       
    70      * @lib AlwaysOnlinePlugin.dll
       
    71      */
       
    72 
       
    73     static void AddAcceptLanguageHeaderL( 
       
    74                             RPointerArray<CSIPHeaderBase>& aRequestHeaders );
       
    75 
       
    76     /**
       
    77      * Utility class to add some of the sip headers.
       
    78      * @precondition SIPStrings::OpenL() and
       
    79      *               SdpCodecStringPool::OpenL() should be called.
       
    80      *               Else most of the function will leave.
       
    81      * @lib AlwaysOnlinePlugin.dll
       
    82      */
       
    83 
       
    84     static void AddSdpL( CSIPRequestElements* aRequest,HBufC8* aContent );
       
    85 
       
    86     /**
       
    87      * Utility class to add some of the sip headers.
       
    88      * @precondition SIPStrings::OpenL() and
       
    89      *               SdpCodecStringPool::OpenL() should be called.
       
    90      *               Else most of the function will leave.
       
    91      * @lib AlwaysOnlinePlugin.dll
       
    92      */
       
    93 
       
    94     static void AddPreferredIdentityHeaderL( 
       
    95                             RPointerArray<CSIPHeaderBase>& aRequestHeaders,
       
    96                             const TDesC8& aVal );
       
    97 
       
    98     /**
       
    99      * Utility class to add some of the sip headers.
       
   100      * @precondition SIPStrings::OpenL() and
       
   101      *               SdpCodecStringPool::OpenL() should be called.
       
   102      *               Else most of the function will leave.
       
   103      * @lib AlwaysOnlinePlugin.dll
       
   104      */
       
   105 
       
   106     static void LocalHostL(const CSIPConnection& aConn, TPtrC8& aLocalHost);
       
   107 
       
   108     /**
       
   109      * Utility class to add some of the sip headers.
       
   110      * @precondition SIPStrings::OpenL() and
       
   111      *               SdpCodecStringPool::OpenL() should be called.
       
   112      *               Else most of the function will leave.
       
   113      * @lib AlwaysOnlinePlugin.dll
       
   114      */
       
   115 
       
   116     static void AddAcceptSdpHeaderL(RPointerArray<CSIPHeaderBase>& aRequestHeaders );
       
   117     
       
   118     /**
       
   119      * Utility class to add SIP privacy header when the PS key
       
   120      * NMusSessionInformationApi::KMusClirSetting PS indicates so.
       
   121      * @lib AlwaysOnlinePlugin.dll
       
   122      */
       
   123     static void AddPrivacyHeaderL( 
       
   124                              RPointerArray<CSIPHeaderBase>& aRequestHeaders );
       
   125     
       
   126     };
       
   127 
       
   128 
       
   129 #endif // CMUSAVASIPHEADERUTIL_H