mmshplugins/mmshsipcrplugin/inc/mussipcrplugin.h
changeset 0 f0cf47e981f9
child 32 73a1feb507fb
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MUSSIPCRPLUGIN_H
       
    20 #define MUSSIPCRPLUGIN_H
       
    21 
       
    22 #include "musunittesting.h"
       
    23 
       
    24 #include <apgcli.h>
       
    25 #include <sipresolvedclient.h>
       
    26 #include <ecom/implementationproxy.h>
       
    27 
       
    28 class CMusManager;
       
    29 
       
    30 IMPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount );
       
    31 
       
    32 /**
       
    33  * CMusSipCrPlugin
       
    34  */
       
    35 class CMusSipCrPlugin : public CSIPResolvedClient
       
    36     {
       
    37     MUS_UNITTEST( CMusSipCrPluginTest )
       
    38 
       
    39 public:  // constructors and destructor
       
    40 
       
    41     static CMusSipCrPlugin* NewL();
       
    42 
       
    43     virtual ~CMusSipCrPlugin();
       
    44 
       
    45 private: // constructors
       
    46 
       
    47     CMusSipCrPlugin();
       
    48 
       
    49     void ConstructL();
       
    50 
       
    51 public: // from CSIPResolvedClient
       
    52 
       
    53     /**
       
    54      * Returns the SIP client's channel UID that indicates client's
       
    55      * channel UID for connection with SIP e.g. CSIP::NewL()
       
    56      * @param aMethod the method of the SIP request
       
    57      * @param aRequestUri the request-URI of the SIP request
       
    58      * @param aHeaders all the headers in the SIP request
       
    59      * @param aContent SIP request body; zero-length descriptor if not present
       
    60      * @param aContentType the content-type of the SIP request.
       
    61      *        Zero-pointer if body is not present.
       
    62      * @return SIP client's communication channel's UID
       
    63      */
       
    64     TUid ChannelL( RStringF aMethod,
       
    65                   const TDesC8& aRequestUri,
       
    66                   const RPointerArray<CSIPHeaderBase>& aHeaders,
       
    67                   const TDesC8& aContent,
       
    68                   const CSIPContentTypeHeader* aContentType=0 );
       
    69 
       
    70 
       
    71     /**
       
    72      * Requests the client to connect to SIP with resolved
       
    73      * UID in case there's no connection with resolved channel UID.
       
    74      * @param aUid previously resolved channel UID
       
    75      * @leave KErrNoMemory if out of memory
       
    76      * @leave KErrNotFound in case non-existing channel UID was provided
       
    77      */
       
    78     void ConnectL( TUid aUid );
       
    79 
       
    80     /**
       
    81      * Requests the implementation to provide capabilities in XML format
       
    82      * in case they were not defined in the ECOM resource file. The cabablities
       
    83      * to be returned must be defined according to the same DTD.
       
    84      * This function will be invoked only if the capabilities are not
       
    85      * defined in the ECOM resource file.
       
    86      */
       
    87     const TDesC8& Capabilities();
       
    88 
       
    89 private: // data
       
    90 
       
    91     TUid DoChannelL( RStringF aMethod ); 
       
    92 	
       
    93 private: // data
       
    94 
       
    95     CMusManager* iManager;
       
    96 
       
    97     };
       
    98 
       
    99 
       
   100 #endif // MUSSIPCRPLUGIN_H