datacommsserver/networkcontroller/src/MNetConDialogProcAccess.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 #ifndef __MNETCONDIALOGPROCACCESS_H__
       
     2 #define __MNETCONDIALOGPROCACCESS_H__
       
     3 /**
       
     4 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     5 * All rights reserved.
       
     6 * This component and the accompanying materials are made available
       
     7 * under the terms of "Eclipse Public License v1.0"
       
     8 * which accompanies this distribution, and is available
       
     9 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    10 *
       
    11 * Initial Contributors:
       
    12 * Nokia Corporation - initial contribution.
       
    13 *
       
    14 * Contributors:
       
    15 *
       
    16 * Description:
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file MNetConDialogProcAccess.h
       
    24  @internalComponent
       
    25 */
       
    26 
       
    27 
       
    28 class MDialogProcessorObserver;
       
    29 class TConnectionPrefs;
       
    30 
       
    31 class MNetConDialogProcAccess
       
    32 /**
       
    33 To allow the requests access to the dialog processor
       
    34 
       
    35 @internalComponent
       
    36 */
       
    37 	{
       
    38 public:
       
    39 
       
    40 	/**
       
    41 	Display a dialog to the user asking them to select an IAP to connect to
       
    42 
       
    43 	@param aObserver the object to receive notification when the dialog box completes
       
    44 	@param aPrefs the connection preferences used to select this IAP
       
    45 	*/
       
    46 	virtual void SelectConnection(MDialogProcessorObserver& aObserver, const TConnectionPrefs& aPrefs) = 0;
       
    47 
       
    48 	/**
       
    49 	Display a dialog to the user asking them to select an IAP to connect to
       
    50 
       
    51 	@param aObserver the object to receive notification when the dialog box completes
       
    52 	@param aPrefs the connection preferences used to select this IAP
       
    53 	@param aLastError if this is not the 1st connection attempt this is the error of the last attempt
       
    54 	*/
       
    55 	virtual void SelectConnection(MDialogProcessorObserver& aObserver, const TConnectionPrefs& aPrefs, TInt aLastError) = 0;
       
    56 
       
    57 	/**
       
    58 	Display a dialog to the user asking the user to select a modem and location entry from CommDb
       
    59 
       
    60 	@param aObserver the object to receive notification when the dialog box completes
       
    61 	*/
       
    62 	virtual void SelectModemAndLocation(MDialogProcessorObserver& aObserver) = 0;
       
    63 
       
    64 	/**
       
    65 	Display a dialog to the user warning that a new connection is about to be attempted to the specified IAP
       
    66 
       
    67 	@param aObserver the object to receive notification when the dialog box completes
       
    68 	@param aPrefs the connection preferences used to select this IAP
       
    69 	@param aNewIapName the name of the IAP used for the connection.
       
    70 	@param aNewConnectionNames this parameter is no-longer used.
       
    71 	@param aLastError if this is not the 1st connection attempt this is the error of the last attempt
       
    72 	*/
       
    73 	virtual void WarnNewConnection(MDialogProcessorObserver& aObserver, const TConnectionPrefs& aPrefs, const TDesC* aNewIapName, const TIspConnectionNames* aNewConnectionNames, TInt aLastError) = 0;
       
    74 
       
    75 	/**
       
    76 	Display a dialog to the user asking whether to reconnect a failed connection
       
    77 
       
    78 	@param aObserver the object to receive notification when the dialog box completes
       
    79 	*/
       
    80 	virtual void Reconnect(MDialogProcessorObserver& aObserver) = 0;
       
    81 
       
    82 	/**
       
    83 	Cancel all outstanding dialog processor requests
       
    84 	*/
       
    85 	virtual void CancelEverything() = 0;
       
    86 
       
    87 	virtual ~MNetConDialogProcAccess() = 0;
       
    88 	};
       
    89 
       
    90 #endif /* #ifndef __MNETCONDIALOGPROCACCESS_H__ */
       
    91