connectionutilities/ConnectionDialogs/cconndlg/inc/ReconnectDialog.h
changeset 20 9c97ad6591ae
parent 18 fcbbe021d614
child 21 b8e8e15e80f2
child 23 7ec726f93df1
child 28 860702281757
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
     1 /*
       
     2 * Copyright (c) 2002 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:  Implementation of class CReconnectDialog.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __RECONNECTDIALOG_H__
       
    20 #define __RECONNECTDIALOG_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <AknQueryDialog.h>
       
    25 #include "ExpiryTimerCallback.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CConnDlgReconnectPlugin;
       
    29 class CExpiryTimer;
       
    30 
       
    31 // CLASS DECLARATIONS
       
    32 
       
    33 /**
       
    34  * Class implementing Reconnect dialog
       
    35  */
       
    36 NONSHARABLE_CLASS( CReconnectDialog ) : public CAknQueryDialog, public MExpiryTimerCallback
       
    37     {
       
    38     public:
       
    39         /**
       
    40         * Constructor of the CReconnetDialog class
       
    41         * @param aPlugin plugin pointer
       
    42         * @param aBool reconnect to the IAP
       
    43         * @return -
       
    44         */
       
    45         CReconnectDialog( CConnDlgReconnectPlugin* aPlugin, TBool& aBool );
       
    46 
       
    47         /**
       
    48         * Exit function the CReconnectDialog
       
    49         * @param aButtonId plugin pointer
       
    50         * @param aBool reconnect to the IAP
       
    51         * @return TBool exit or no
       
    52         */
       
    53         virtual TBool OkToExitL( TInt aButtonId );
       
    54         
       
    55         /**
       
    56         * Dialog expiration timeout callback
       
    57         */
       
    58         void HandleTimedOut();
       
    59 
       
    60 
       
    61     /**
       
    62     * Destructor
       
    63     */
       
    64     virtual ~CReconnectDialog();
       
    65 
       
    66 
       
    67     private:
       
    68         /**
       
    69         * PreLayoutDynInitL
       
    70         * @param    -
       
    71         */
       
    72         virtual void PreLayoutDynInitL();
       
    73 
       
    74 
       
    75     private:
       
    76         // Pointer to the plugin
       
    77         CConnDlgReconnectPlugin* iPlugin;
       
    78 
       
    79         // Specifies way of closing of the dialog. ETrue when 'Yes' or 'Done'
       
    80         // softkeys pressed.
       
    81         TBool& iBool;
       
    82         
       
    83         // Pointer for dialog expiration timer
       
    84         CExpiryTimer* iExpiryTimer;
       
    85     };
       
    86 
       
    87 #endif  // __RECONNECTDIALOG_H__
       
    88 
       
    89 
       
    90 // End of File