bearermanagement/mpm/inc/mpmconfirmdlgroaming.h
changeset 0 5a93021fdf25
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2006-2009 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: Confirm Dialog definition.
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19 @file mpmconfirmdlgroaming.h
       
    20 UI Note Handler definition.
       
    21 */
       
    22 
       
    23 #ifndef MPMCONFIRMDLGROAMING_H
       
    24 #define MPMCONFIRMDLGROAMING_H
       
    25 
       
    26 // INCLUDES
       
    27 #include <e32base.h>
       
    28 #include "mpmconfirmdlg.h"
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CMPMServerSession;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 /**
       
    35 *  MPM Confirmation Dialog for roaming connection class
       
    36 *
       
    37 *  @lib MPMServer.exe
       
    38 *  @since 3.2
       
    39 */
       
    40 NONSHARABLE_CLASS( CMPMConfirmDlgRoaming ) : public CBase, 
       
    41                                              public MMPMConfirmDlg
       
    42   {
       
    43     public:
       
    44 
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         */
       
    48         static CMPMConfirmDlgRoaming* NewL( 
       
    49                         CMPMServerSession&                  aSession,
       
    50                         const TUint32                       aSnapId,
       
    51                         const TUint32                       aIAP,
       
    52                         const CMPMConfirmDlg::TDialogType   aDialogType, 
       
    53                         const TBool                         aReconnect );
       
    54 
       
    55         /**
       
    56         * Destructor.
       
    57         */
       
    58         ~CMPMConfirmDlgRoaming();
       
    59 
       
    60     private:
       
    61 
       
    62         /**
       
    63         * Handles confirmation query response.
       
    64         * @since 3.2
       
    65         * @param aError generic Symbian error response code
       
    66         * @param aResult Result of user selection
       
    67         */
       
    68         void HandleResponse( const TInt                      aError,
       
    69                              const TMsgQueryLinkedResults    aResult );
       
    70 
       
    71         /**
       
    72         * C++ default constructor.
       
    73         */
       
    74         CMPMConfirmDlgRoaming( 
       
    75                         CMPMServerSession&                  aSession,
       
    76                         const TUint32                       aSnapId,
       
    77                         const TUint32                       aIAP,
       
    78                         const CMPMConfirmDlg::TDialogType   aDialogType, 
       
    79                         const TBool                         aReconnect );
       
    80 
       
    81         /**
       
    82         * 2nd phase constructor.
       
    83         */
       
    84         void ConstructL();
       
    85 
       
    86     private: // from MMPMConfirmDlg
       
    87 
       
    88         /**
       
    89         * Confirmation Dialog response
       
    90         * @since 3.2
       
    91         * @param aError generic Symbian error response code
       
    92         * @param aResult Result of user selection
       
    93         * @return void
       
    94         */
       
    95 	    void ConfirmDlgResponse( const TInt                     aError, 
       
    96 	                             const TMsgQueryLinkedResults   aResult );
       
    97 
       
    98 	    /**
       
    99         * Confirmation Dialog response
       
   100         * @since 5.2
       
   101         * @param aDlg previously completed aDlg
       
   102         * @return ETrue if response accepted
       
   103         */
       
   104         TBool ConfirmDlgResponse( MMPMConfirmDlg* aDlg );
       
   105         
       
   106     private:
       
   107         CMPMServerSession&          iSession;
       
   108         TUint32                     iSnapId;
       
   109         TUint32                     iIAP;
       
   110         CMPMConfirmDlg::TDialogType iDialogType;
       
   111         CMPMConfirmDlg*             iConfirmDlg;
       
   112         TMsgQueryLinkedResults      iMsgQuery;
       
   113         TInt                        iError;
       
   114         TBool                       iReconnect;
       
   115 
       
   116     };
       
   117 
       
   118 #endif // MPMCONFIRMDLGROAMING_H