bearermanagement/mpm/inc/mpmconfirmdlgstarting.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 mpmconfirmdlgstarting.h
       
    20 UI Note Handler definition.
       
    21 */
       
    22 
       
    23 #ifndef MPMCONFIRMDLGSTARTING_H
       
    24 #define MPMCONFIRMDLGSTARTING_H
       
    25 
       
    26 // INCLUDES
       
    27 #include <e32base.h>
       
    28 #include "mpmconfirmdlg.h"
       
    29 #include "mpmiapselection.h"
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CMPMIapSelection;
       
    33 class CMPMServer;
       
    34 class CMPMServerSession;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 /**
       
    38 *  MPM Confirmation Dialog for establishing connection class
       
    39 *
       
    40 *  @lib MPMServer.exe
       
    41 *  @since 3.2
       
    42 */
       
    43 NONSHARABLE_CLASS( CMPMConfirmDlgStarting ) : public CBase, 
       
    44                                               public MMPMConfirmDlg
       
    45   {
       
    46     public:
       
    47 
       
    48         /**
       
    49         * Two-phased constructor.
       
    50         */
       
    51         static CMPMConfirmDlgStarting* NewL( 
       
    52                     CMPMIapSelection&                   aIapSelection,
       
    53                     const TUint32                       aConnId,
       
    54                     const TUint32                       aSnapId,
       
    55                     const TUint32                       aIAP,
       
    56                     const CMPMConfirmDlg::TDialogType   aDialogType, 
       
    57                     const TMpmConnPref&                 aPref,
       
    58                     CMPMServer&                         aServer,
       
    59                     CMPMServerSession&                  aSession,
       
    60                     const TInt                          aIapState );
       
    61 
       
    62         /**
       
    63         * Destructor.
       
    64         */
       
    65         ~CMPMConfirmDlgStarting();
       
    66 
       
    67     private:
       
    68 
       
    69         /**
       
    70         * User selected Cancel in Starting Dialog.
       
    71         * @since 3.2
       
    72         * @param aError generic Symbian error response code
       
    73         */
       
    74         void UserSelectedCancel( const TInt       aError );
       
    75         
       
    76         /**
       
    77         * User selected "Connect this time" in Starting Dialog.
       
    78         * @since 5.2
       
    79         */
       
    80         void UserSelectedConnectThisTime();
       
    81         
       
    82         /**
       
    83         * User selected "Connect automatically" in Starting Dialog.
       
    84         * @since 5.2
       
    85         */
       
    86         void UserSelectedConnectAutomatically();
       
    87         
       
    88         /**
       
    89         * Starts displaying Starting Dialog.
       
    90         * @since 3.2
       
    91         */
       
    92         void StartL();
       
    93 
       
    94         /**
       
    95         * C++ default constructor.
       
    96         */
       
    97         CMPMConfirmDlgStarting( 
       
    98                     CMPMIapSelection&                   aIapSelection,
       
    99                     const TUint32                       aConnId,
       
   100                     const TUint32                       aSnapId,
       
   101                     const TUint32                       aIAP,
       
   102                     const CMPMConfirmDlg::TDialogType   aDialogType, 
       
   103                     const TMpmConnPref&                 aPref,
       
   104                     CMPMServer&                         aServer,
       
   105                     CMPMServerSession&                  aSession,
       
   106                     const TInt                          aIapState );
       
   107 
       
   108         /**
       
   109         * 2nd phase constructor.
       
   110         */
       
   111         void ConstructL();
       
   112 
       
   113     private: // from MMPMConfirmDlg
       
   114 
       
   115         /**
       
   116         * Confirmation Dialog response
       
   117         * @since 3.2
       
   118         * @param aError generic Symbian error response code
       
   119         * @param aResult Result of user selection
       
   120         * @return void
       
   121         */
       
   122     	void ConfirmDlgResponse( const TInt                     aError, 
       
   123     	                         const TMsgQueryLinkedResults   aResult );
       
   124 
       
   125     	/**
       
   126         * Confirmation Dialog response
       
   127         * @since 5.2
       
   128         * @param aDlg previously completed aDlg
       
   129         * @return ETrue if response accepted
       
   130         */
       
   131         TBool ConfirmDlgResponse( MMPMConfirmDlg* aDlg );
       
   132 
       
   133     private:
       
   134         CMPMIapSelection&           iIapSelection;
       
   135         TUint32                     iConnId;
       
   136         TUint32                     iSnapId;
       
   137         TUint32                     iIAP;
       
   138         CMPMConfirmDlg::TDialogType iDialogType;
       
   139         CMPMConfirmDlg*             iConfirmDlg;
       
   140         TMsgQueryLinkedResults      iMsgQuery;
       
   141         TMpmConnPref                iPref;
       
   142         CMPMServer&                 iServer;
       
   143         CMPMServerSession&          iSession;
       
   144         TInt                        iError;
       
   145         TInt                        iIapState;
       
   146     };
       
   147 
       
   148 #endif // MPMCONFIRMDLGSTARTING_H