email/pop3andsmtpmtm/servermtmutils/inc/mimmobilitypolicyhandler.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __MIMMOBILITYPOLICYHANDLER_H__
       
    17 #define __MIMMOBILITYPOLICYHANDLER_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 #include "timmobilityaction.h"
       
    21 
       
    22 /**
       
    23 The MImMobilityPolicyHandler API provides support to handle responses from
       
    24 the Messaging Mobility Policy Provider/Plugin.
       
    25 
       
    26 These APIs are called by the Messaging Mobility Policy Provider to indicate
       
    27 the action that should be taken by the server MTM subsequent to a 
       
    28 PreferredCarrierAvailable() notification having been issued.
       
    29 
       
    30 @internalTechnology
       
    31 @prototype
       
    32 */
       
    33 class MImMobilityPolicyHandler
       
    34 	{
       
    35 public:
       
    36 	/**
       
    37 	The new carrier will be accepted.
       
    38 	The passed parameter indicates the action that shall be taken if an
       
    39 	operation is currently in progress and for closing existing sockets.
       
    40 	In the case of a bearer downgrade, the action will have no meaning
       
    41 	as the previous sockets will no longer be connected. In this case an
       
    42 	immdiate migration will occur.
       
    43 	@param aAction The disconnection method to use.
       
    44 	*/
       
    45 	virtual void AcceptNewCarrier(TImMobilityAction aAction) =0;
       
    46 
       
    47 	/**
       
    48 	The new carrier shall be rejected.
       
    49 	*/
       
    50 	virtual void IgnoreNewCarrier() =0;
       
    51 	};
       
    52 
       
    53 #endif	// __MIMMOBILITYPOLICYHANDLER_H__