epoc32/include/mw/sipprofilealrobserver.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) 2007-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          : sipprofilealrobserver.h
williamr@2
    16
* Part of       : SIP / SIP Profile Agent
williamr@2
    17
* Version       : SIP/6.0 
williamr@2
    18
*
williamr@2
    19
*/
williamr@2
    20
williamr@2
    21
williamr@2
    22
williamr@2
    23
#ifndef MSIPPROFILEALROBSERVER_H
williamr@2
    24
#define MSIPPROFILEALROBSERVER_H
williamr@2
    25
williamr@2
    26
// INCLUDES
williamr@2
    27
#include <e32std.h>
williamr@2
    28
williamr@2
    29
// CLASS DECLARATION
williamr@2
    30
/**
williamr@2
    31
* @publishedAll
williamr@2
    32
* @released
williamr@2
    33
*
williamr@2
    34
* Callback to receive notifications about ALR (Application Level Roaming) 
williamr@2
    35
* related events and errors.
williamr@2
    36
*/
williamr@2
    37
class MSipProfileAlrObserver
williamr@2
    38
    {
williamr@2
    39
    public:
williamr@2
    40
    
williamr@2
    41
        /** SIP Profile ALR events */
williamr@2
    42
        enum TEvent
williamr@2
    43
            {
williamr@2
    44
             /** 
williamr@2
    45
            * A new IAP became available.
williamr@2
    46
            * When receiving this event the client must call 
williamr@2
    47
            * CSipProfileAlrController::AllowMigrationL or DisallowMigrationL.
williamr@2
    48
            */           
williamr@2
    49
            EIapAvailable = 0,
williamr@2
    50
            /** 
williamr@2
    51
            * All the clients have allowed the migration to the new IAP and
williamr@2
    52
            * the migration to the new IAP for the SIP profile has started. 
williamr@2
    53
            */
williamr@2
    54
            EMigrationStarted,
williamr@2
    55
            /** 
williamr@2
    56
            * Migration to a new IAP for a SIP profile has been completed and
williamr@2
    57
            * the related SIP profile has been registered via the new IAP.
williamr@2
    58
            */
williamr@2
    59
            EMigrationCompleted
williamr@2
    60
            };
williamr@2
    61
                                   
williamr@2
    62
        /**
williamr@2
    63
        * ALR related event occurred.
williamr@2
    64
        * @param aEvent the event that occurred
williamr@2
    65
        * @param aProfileId identifies the SIP profile related to the event
williamr@2
    66
        * @param aSnapId the SNAP related to the event
williamr@2
    67
        * @param aIapId the IAP related to the event
williamr@2
    68
        */
williamr@2
    69
        virtual void AlrEvent( TEvent aEvent,
williamr@2
    70
                               TUint32 aProfileId,
williamr@2
    71
                               TUint32 aSnapId,
williamr@2
    72
                               TUint32 aIapId ) = 0;
williamr@2
    73
                               
williamr@2
    74
        /**
williamr@2
    75
        * ALR related error occurred.
williamr@2
    76
        * @param aError the error that occurred
williamr@2
    77
        * @param aProfileId identifies the SIP profile related to the error
williamr@2
    78
        * @param aSnapId the SNAP related to the error
williamr@2
    79
        * @param aIapId the IAP related to the error
williamr@2
    80
        */
williamr@2
    81
        virtual void AlrError( TInt aError,
williamr@2
    82
                               TUint32 aProfileId,
williamr@2
    83
                               TUint32 aSnapId,
williamr@2
    84
                               TUint32 aIapId ) = 0;                                                                  
williamr@2
    85
    };
williamr@2
    86
williamr@2
    87
#endif // MSIPPROFILEALROBSERVER_H