inc/mussipobserver.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) 2003 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:  The observer class for monitoring SIP profiles.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MMUSSIPOBSERVER_H
       
    20 #define MMUSSIPOBSERVER_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <sipobserver.h>
       
    24 
       
    25 /**
       
    26 *  @publishedAll
       
    27 *  @released
       
    28 *
       
    29 *  The observer class for monitoring SIP profiles.
       
    30 *  Class must be implemented by the user in order to
       
    31 *  observe changes in the SIP profiles.
       
    32 */
       
    33 class MMusSipObserver : public MSIPObserver
       
    34     {
       
    35 public: // from MSIPObserver
       
    36 
       
    37     /**
       
    38     * A SIP request has been received from the network.
       
    39     * This function is called when the SIP request was received using such
       
    40     * an IAP, for which the application has not created a CSIPConnection
       
    41     * object.
       
    42     * @pre aTransaction != 0
       
    43     * @param aIapId The IapId from which the SIP request was received.
       
    44     * @param aTransaction contains local address, remote address of a SIP
       
    45     *        message, as well as optional SIP message method, headers and
       
    46     *        body. The ownership is transferred.
       
    47     */
       
    48     virtual void IncomingRequest( TUint32 /*aIapId*/,
       
    49                                   CSIPServerTransaction* /*aTransaction*/ ) { }
       
    50 
       
    51     /**
       
    52     * The received SIP request time-outed and it is invalid i.e. cannot be used
       
    53     * anymore.
       
    54     * This will be called if the user fails to create a SIP connection and
       
    55     * does not send an appropriate SIP response.
       
    56     * @param aTransaction The time-outed transaction.
       
    57     */
       
    58     virtual void TimedOut(CSIPServerTransaction& /*aTransaction*/ ) { }
       
    59     };
       
    60 
       
    61 #endif // MMUSSIPOBSERVER_H