epoc32/include/mw/sipobserver.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:
williamr@2
    15
* Name        : sipobserver.h
williamr@2
    16
* Part of     : SIP Client
williamr@2
    17
* Interface   : SDK API, SIP Client API
williamr@2
    18
* Version     : 1.0
williamr@2
    19
*
williamr@2
    20
*/
williamr@2
    21
williamr@2
    22
williamr@2
    23
williamr@2
    24
#ifndef MSIPOBSERVER_H
williamr@2
    25
#define MSIPOBSERVER_H
williamr@2
    26
williamr@2
    27
// INCLUDES
williamr@2
    28
#include <e32std.h>
williamr@2
    29
williamr@2
    30
// FORWARD DECLARATIONS
williamr@2
    31
class CSIPServerTransaction;
williamr@2
    32
williamr@2
    33
// CLASS DECLARATION
williamr@2
    34
williamr@2
    35
/**
williamr@2
    36
*  @publishedAll
williamr@2
    37
*  @released
williamr@2
    38
*
williamr@2
    39
*  An interface to be implemented by user of CSIP.
williamr@2
    40
*  Interface allows to be able to receive SIP request from the SIP connection
williamr@2
    41
*  that has not been initialized by the user.
williamr@2
    42
*
williamr@2
    43
*  @lib n/a
williamr@2
    44
*/
williamr@2
    45
class MSIPObserver
williamr@2
    46
    {    
williamr@2
    47
    public: // New functions
williamr@2
    48
        /**
williamr@2
    49
        * A SIP request has been received from the network.
williamr@2
    50
        * This function is called when the SIP request was received using such
williamr@2
    51
        * an IAP, for which the application has not created a CSIPConnection
williamr@2
    52
        * object.
williamr@2
    53
        * @pre aTransaction != 0
williamr@2
    54
        * @param aIapId The IapId from which the SIP request was received.
williamr@2
    55
        * @param aTransaction contains local address, remote address of a SIP
williamr@2
    56
        *        message, as well as optional SIP message method, headers and
williamr@2
    57
        *        body. The ownership is transferred.
williamr@2
    58
        */
williamr@2
    59
        virtual void IncomingRequest(TUint32 aIapId,
williamr@2
    60
                                     CSIPServerTransaction* aTransaction) = 0;
williamr@2
    61
williamr@2
    62
        /**
williamr@2
    63
        * The received SIP request time-outed and it is invalid i.e. cannot be used
williamr@2
    64
        * anymore.
williamr@2
    65
        * This will be called if the user fails to create a SIP connection and
williamr@2
    66
        * does not send an appropriate SIP response.
williamr@2
    67
        * @param aTransaction The time-outed transaction.
williamr@2
    68
        */
williamr@2
    69
        virtual void TimedOut(CSIPServerTransaction& aTransaction) = 0;
williamr@2
    70
    };
williamr@2
    71
williamr@2
    72
#endif