phonesrv_plat/phone_settings_observer_api/inc/MPsetNetworkModeObs.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2004 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: 
       
    15 *      Observes completions of network mode and change requests.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef     MPSETNETWORKMODEOBS_H
       
    22 #define     MPSETNETWORKMODEOBS_H
       
    23 
       
    24 //  CLASS DEFINITIONS 
       
    25 /**
       
    26 *  MPsetNetworkModeObserver class is virtual class for network mode observers.
       
    27 *  @lib phonesettings.lib
       
    28 *  @since 2.6
       
    29 */
       
    30 class   MPsetNetworkModeObserver
       
    31     {
       
    32     public:
       
    33                 
       
    34         //Service requests for MPsetNetworkModeObserver
       
    35         enum TServiceRequest {            
       
    36             EServiceRequestNone,
       
    37             EServiceRequestSetSelectedNetworkMode,
       
    38             EServiceRequestGetCurrentNetworkMode
       
    39             //EServiceRequestGetSupportedNetworkModes
       
    40             };        
       
    41 
       
    42         /**
       
    43         * Handles Network system mode list fetching from CustomAPI.
       
    44         * Handles Network system mode setting to CustomAPI.
       
    45         * Handles current network system mode fetching from CustomAPI.
       
    46         * 
       
    47         * @param aRequest one of the TServiceRequest values
       
    48         * @param aNetworkModeCaps current/list of supported network mode(s).
       
    49         * @since 2.6
       
    50         */
       
    51         virtual void HandleNetworkSystemModeEventsL( 
       
    52             const MPsetNetworkModeObserver::TServiceRequest aRequest,
       
    53             const TUint32 aNetworkModeCaps ) = 0;
       
    54 
       
    55         /**
       
    56         * Handles errors.
       
    57         *
       
    58         * @param aRequest current request.
       
    59         * @param aError error code.
       
    60         */
       
    61         virtual void HandleNetworkErrorL(
       
    62             const MPsetNetworkModeObserver::TServiceRequest aRequest,
       
    63             const TInt aError ) = 0;
       
    64         
       
    65     };
       
    66 
       
    67 #endif // MPSETNETWORKMODEOBS_H
       
    68 
       
    69 // End of File