epoc32/include/mw/sipprofileregistryobserver.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) 2003-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        : sipprofileregistryobserver.h
williamr@2
    16
* Part of     : SIP Profile Client
williamr@2
    17
* Interface   : SDK API, SIP Profile API
williamr@2
    18
* The observer class for monitoring SIP profiles.
williamr@2
    19
* Version     : 1.0
williamr@2
    20
*
williamr@2
    21
*/
williamr@2
    22
williamr@2
    23
williamr@2
    24
williamr@2
    25
#ifndef MSIPPROFILEOREGISTRYBSERVER_H
williamr@2
    26
#define MSIPPROFILEOREGISTRYBSERVER_H
williamr@2
    27
williamr@2
    28
//  INCLUDES
williamr@2
    29
#include <e32base.h>
williamr@2
    30
#include <e32std.h>
williamr@2
    31
williamr@2
    32
// FORWARD DECLARATIONS
williamr@2
    33
williamr@2
    34
// CLASS DECLARATION
williamr@2
    35
/**
williamr@2
    36
*  @publishedAll
williamr@2
    37
*  @released
williamr@2
    38
*
williamr@2
    39
*  The observer class for monitoring SIP profiles.
williamr@2
    40
*  Class must be implemented by the user in order to 
williamr@2
    41
*  observe changes in the SIP profiles.
williamr@2
    42
*/
williamr@2
    43
class MSIPProfileRegistryObserver 
williamr@2
    44
    {
williamr@2
    45
    public: 
williamr@2
    46
        /** Profile Registry events */
williamr@2
    47
        enum TEvent
williamr@2
    48
            {
williamr@2
    49
            /** 
williamr@2
    50
            * Signals the creation of a SIP profile, indicating that a new
williamr@2
    51
            * profile is added into permanent store. This event is sent to
williamr@2
    52
            * all observers.
williamr@2
    53
            */
williamr@2
    54
            EProfileCreated = 0,
williamr@2
    55
            /** 
williamr@2
    56
            * Signals the updating of a SIP profile, indicating that the data of 
williamr@2
    57
            * an existing profile is updated into permanent store. This event is
williamr@2
    58
            * sent to those observers who have the corresponding profile 
williamr@2
    59
            * instantiated. 
williamr@2
    60
            * Newly updated values of the profile are available for clients after
williamr@2
    61
            * they receive this signal.If profile was registered while updated,
williamr@2
    62
            * reregistration of the profile may occur. Updated values of the 
williamr@2
    63
            * profile are uploaded into network when SIP registration process
williamr@2
    64
            * is completed.It is possible (but not recommended) that profile is
williamr@2
    65
            * updated even when it is being enabled by the client. If client 
williamr@2
    66
            * receives this event for enabled profile, client should react as if
williamr@2
    67
            * error was occurred in the exception that profile is disabled
williamr@2
    68
            * or deleted first.
williamr@2
    69
            */
williamr@2
    70
            EProfileUpdated,
williamr@2
    71
            /**
williamr@2
    72
            * Signals the changing of the registration status of a SIP profile
williamr@2
    73
            * to registered.
williamr@2
    74
            * This event is sent to those observers who have the corresponding
williamr@2
    75
            * profile instantiated.
williamr@2
    76
            */
williamr@2
    77
            EProfileRegistered,
williamr@2
    78
            /**
williamr@2
    79
            * Signals the changing of the registration status of a SIP profile
williamr@2
    80
            * to deregistered.
williamr@2
    81
            * This event is sent to those observers who have the corresponding
williamr@2
    82
            * profile instantiated.
williamr@2
    83
            */
williamr@2
    84
            EProfileDeregistered,
williamr@2
    85
            /**
williamr@2
    86
            * Signals the destruction of a SIP profile, indicating that the 
williamr@2
    87
            * profile has been removed from the permanent store and cannot 
williamr@2
    88
            * be used anymore.This event is sent to those observers who have 
williamr@2
    89
            * the corresponding profile instantiated.
williamr@2
    90
            */
williamr@2
    91
            EProfileDestroyed,
williamr@2
    92
            /**
williamr@2
    93
             * Signals the force disabling of a SIP profile, indicating that 
williamr@2
    94
             * all the users attached to the profile are detached. This event
williamr@2
    95
             * is sent to all the observers but ForceDisable API can be invoked
williamr@2
    96
			 * only by application with Network Control capability.
williamr@2
    97
             */
williamr@2
    98
            EProfileForciblyDisabled
williamr@2
    99
            };
williamr@2
   100
williamr@2
   101
        /** 
williamr@2
   102
        * An event related to SIP Profile has accorred
williamr@2
   103
        * @param aProfileId a profile Id
williamr@2
   104
        * @param aEvent an occurred event
williamr@2
   105
        **/
williamr@2
   106
        virtual void ProfileRegistryEventOccurred(TUint32 aProfileId,
williamr@2
   107
                                                  TEvent aEvent)=0;
williamr@2
   108
williamr@2
   109
        /**
williamr@2
   110
        * An asynchronous error has occurred related to SIP profile
williamr@2
   111
        * Event is send to those observers, who have the
williamr@2
   112
        * corresponding profile instantiated.
williamr@2
   113
        * @param aProfileId the id of failed profile 
williamr@2
   114
        * @param aError an occurred error
williamr@2
   115
        */
williamr@2
   116
        virtual void ProfileRegistryErrorOccurred(TUint32 aProfileId,
williamr@2
   117
                                                  TInt aError)=0;
williamr@2
   118
    };
williamr@2
   119
williamr@2
   120
#endif // MSIPPROFILEOREGISTRYBSERVER_H