voipplugins/sipconnectionprovider/ipvoicemailengine/inc/ipvmbxobserver.h
branchRCL_3
changeset 21 f742655b05bf
parent 20 65a3ef1d5bd0
child 22 d38647835c2e
equal deleted inserted replaced
20:65a3ef1d5bd0 21:f742655b05bf
     1 /*
       
     2 * Copyright (c) 2007-2010 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:  Observer class for IPVoiceMailEngine. Used to deliver
       
    15 *                subscription status.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef M_IPVMBXOBSERVER_H
       
    22 #define M_IPVMBXOBSERVER_H
       
    23 
       
    24 #include <e32def.h>
       
    25 
       
    26 /**
       
    27  *  Observer class for IPVoiceMailEngine
       
    28  *
       
    29  *  This class must be herited to receive IPVoiceMailEngine's
       
    30  *  subscription status messages.
       
    31  *
       
    32  *  @lib IPVoiceMailAppEnginedll.lib
       
    33  */
       
    34 class MIpVmbxObserver
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     /** Subscribtion states */
       
    40     enum TVmbxMessage
       
    41         {
       
    42         ESubscribed,
       
    43         EUnsubscribed,
       
    44         ENoMemory,
       
    45         ESmsError,
       
    46         ENetworkError,
       
    47         EIncorrectSettings,
       
    48         EFatalNetworkError
       
    49         };
       
    50 
       
    51     /**
       
    52      * This function is called to inform status of subscribe and un-subscribe
       
    53      *
       
    54      * @param aSipProfileId Sip profile conserning about delivered message
       
    55      * @param aMessage Subscribtion status
       
    56      */
       
    57     virtual void HandleMessage( 
       
    58         TUint32 aServiceProviderId, 
       
    59         TVmbxMessage aMessage ) = 0;
       
    60 
       
    61     };
       
    62 
       
    63 
       
    64 #endif // M_IPVMBXOBSERVER_H