epoc32/include/sipresolvedclient.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/sipresolvedclient.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/sipresolvedclient.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,109 @@
     1.4 -sipresolvedclient.h
     1.5 +/*
     1.6 +* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:
    1.19 +* Name        : SipResolvedClient.h
    1.20 +* Part of     : SDK API, SIP Client Resolver API
    1.21 +* Version     : 1.0
    1.22 +*
    1.23 +*/
    1.24 +
    1.25 +
    1.26 +
    1.27 +#ifndef CSIPRESOLVEDCLIENT_H
    1.28 +#define CSIPRESOLVEDCLIENT_H
    1.29 +
    1.30 +// INCLUDES
    1.31 +#include <ecom/ecom.h>
    1.32 +#include <stringpool.h>
    1.33 +
    1.34 +//FORWARD DECLARATIONS
    1.35 +class CSIPHeaderBase;
    1.36 +class CSIPContentTypeHeader;
    1.37 +
    1.38 +// CONSTANTS
    1.39 +/** Interface UID of this ECOM interface*/
    1.40 +const TUid KSIPResolvedClientIFUid = { 0x102010dd };
    1.41 +
    1.42 +// CLASS DEFINITION
    1.43 +/**
    1.44 +* @publishedAll
    1.45 +* @released
    1.46 +*
    1.47 +* Interface that clients must realize
    1.48 +* in order to enable client resolution mechanism upon the reception
    1.49 +* of SIP request outside the SIP dialog. Data provided in 
    1.50 +* the ECOM resource file or optionally requested from the interface implementation 
    1.51 +* will be used for target client determination by the SIP implementation.
    1.52 +* Note that channel UIDs must be unique accross all SIP clients e.g. clients may
    1.53 +* use UIDs assigned for binaries.
    1.54 +*/
    1.55 +class CSIPResolvedClient : public CBase
    1.56 +	{
    1.57 +	public:	// Destructor
    1.58 +
    1.59 +		/**
    1.60 +		* Destructor
    1.61 +		*/
    1.62 +		virtual inline ~CSIPResolvedClient();
    1.63 +
    1.64 +	public: // Abstract methods
    1.65 +
    1.66 +		/**
    1.67 +		* Returns the SIP client's channel UID that indicates client's
    1.68 +		* channel UID for connection with SIP e.g. CSIP::NewL()
    1.69 +		* @param aMethod the method of the SIP request
    1.70 +        * @param aRequestUri the request-URI of the SIP request
    1.71 +        * @param aHeaders all the headers in the SIP request
    1.72 +        * @param aContent SIP request body; zero-length descriptor if not present
    1.73 +        * @param aContentType the content-type of the SIP request. 
    1.74 +        *        Zero-pointer if body is not present.
    1.75 +		* @return SIP client's communication channel's UID
    1.76 +		*/
    1.77 +		virtual TUid ChannelL(RStringF aMethod,
    1.78 +                              const TDesC8& aRequestUri,
    1.79 +                              const RPointerArray<CSIPHeaderBase>& aHeaders,
    1.80 +                              const TDesC8& aContent,
    1.81 +                              const CSIPContentTypeHeader* aContentType=0) = 0;
    1.82 +
    1.83 +		/**
    1.84 +		* Requests the client to connect to SIP with resolved
    1.85 +		* UID in case there's no connection with resolved channel UID.
    1.86 +		* @param aUid previously resolved channel UID
    1.87 +		* @leave KErrNoMemory if out of memory
    1.88 +		* @leave KErrNotFound in case non-existing channel UID was provided
    1.89 +		*/
    1.90 +		virtual void ConnectL(TUid aUid) = 0;
    1.91 +
    1.92 +		/**
    1.93 +		* Requests the implementation to provide capabilities in XML format
    1.94 +		* in case they were not defined in the ECOM resource file. The cabablities
    1.95 +		* to be returned must be defined according to the same DTD.
    1.96 +		* This function will be invoked only if the capabilities are not
    1.97 +		* defined in the ECOM resource file.
    1.98 +		*/
    1.99 +		virtual const TDesC8& Capabilities();
   1.100 +
   1.101 +	public: // Data
   1.102 +
   1.103 +		/// Unique key for implementations of this interface.
   1.104 +		TUid iInstanceKey;
   1.105 +
   1.106 +	protected: // Constructors:
   1.107 +
   1.108 +		inline CSIPResolvedClient();
   1.109 +	};
   1.110 +
   1.111 +#include <sipresolvedclient.inl>
   1.112 +
   1.113 +#endif // CSIPRESOLVEDCLIENT_H