diff -r 000000000000 -r f0cf47e981f9 mmsharing/mmshavailability/inc/musavasipheaderutil.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmsharing/mmshavailability/inc/musavasipheaderutil.h Thu Dec 17 08:44:37 2009 +0200 @@ -0,0 +1,129 @@ +/* +* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Sent capability query (OPTIONS) +* +*/ + + +#ifndef CMUSAVASIPHEADERUTIL_H +#define CMUSAVASIPHEADERUTIL_H + + +#include +#include + +class CSIPHeaderBase; +class CSIPRequestElements; +class CSIPConnection; + +/** + * Utility class to add some of the sip headers. + * @precondition SIPStrings::OpenL() and + * SdpCodecStringPool::OpenL() should be called. + * Else most of the function will leave. + * @lib AlwaysOnlinePlugin.dll + */ +class CMusAvaSipheaderUtil : public CBase + { + +public: + + /** + * Utility class to add some of the sip headers. + * @precondition SIPStrings::OpenL() and + * SdpCodecStringPool::OpenL() should be called. + * Else most of the function will leave. + * @lib AlwaysOnlinePlugin.dll + */ + + static void AddAcceptContactHeaderL( + RPointerArray& aRequestHeaders, + const RStringF& aFeatureTag ); + + /** + * Utility class to add some of the sip headers. + * @precondition SIPStrings::OpenL() and + * SdpCodecStringPool::OpenL() should be called. + * Else most of the function will leave. + * @lib AlwaysOnlinePlugin.dll + */ + + static void AddAcceptEncodingHeaderL( + RPointerArray& aRequestHeaders ); + + /** + * Utility class to add some of the sip headers. + * @precondition SIPStrings::OpenL() and + * SdpCodecStringPool::OpenL() should be called. + * Else most of the function will leave. + * @lib AlwaysOnlinePlugin.dll + */ + + static void AddAcceptLanguageHeaderL( + RPointerArray& aRequestHeaders ); + + /** + * Utility class to add some of the sip headers. + * @precondition SIPStrings::OpenL() and + * SdpCodecStringPool::OpenL() should be called. + * Else most of the function will leave. + * @lib AlwaysOnlinePlugin.dll + */ + + static void AddSdpL( CSIPRequestElements* aRequest,HBufC8* aContent ); + + /** + * Utility class to add some of the sip headers. + * @precondition SIPStrings::OpenL() and + * SdpCodecStringPool::OpenL() should be called. + * Else most of the function will leave. + * @lib AlwaysOnlinePlugin.dll + */ + + static void AddPreferredIdentityHeaderL( + RPointerArray& aRequestHeaders, + const TDesC8& aVal ); + + /** + * Utility class to add some of the sip headers. + * @precondition SIPStrings::OpenL() and + * SdpCodecStringPool::OpenL() should be called. + * Else most of the function will leave. + * @lib AlwaysOnlinePlugin.dll + */ + + static void LocalHostL(const CSIPConnection& aConn, TPtrC8& aLocalHost); + + /** + * Utility class to add some of the sip headers. + * @precondition SIPStrings::OpenL() and + * SdpCodecStringPool::OpenL() should be called. + * Else most of the function will leave. + * @lib AlwaysOnlinePlugin.dll + */ + + static void AddAcceptSdpHeaderL(RPointerArray& aRequestHeaders ); + + /** + * Utility class to add SIP privacy header when the PS key + * NMusSessionInformationApi::KMusClirSetting PS indicates so. + * @lib AlwaysOnlinePlugin.dll + */ + static void AddPrivacyHeaderL( + RPointerArray& aRequestHeaders ); + + }; + + +#endif // CMUSAVASIPHEADERUTIL_H