bearermanagement/mpm/inc/mpmconnselectiondlgtimer.h
branchRCL_3
changeset 69 cf1b3ddbe9a1
parent 65 14754bf06654
child 75 dd7f31e692c1
equal deleted inserted replaced
65:14754bf06654 69:cf1b3ddbe9a1
     1 /*
       
     2 * Copyright (c) 2010 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: Declaration of class CMPMConnSelectionDlgTimer.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPMCONNSELECTIONDLGTIMER_H
       
    19 #define MPMCONNSELECTIONDLGTIMER_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <e32base.h>
       
    23 #include "mpmexpirytimercallback.h"
       
    24 
       
    25 class CMPMServer;
       
    26 class CMPMExpiryTimer;
       
    27 
       
    28 /**
       
    29 * Class that implements connection selection dialog's
       
    30 * cancellation delay timer and callback.
       
    31 * @since 5.2
       
    32 */
       
    33 class CMPMConnSelectionDlgTimer : public CBase, public MMPMExpiryTimerCallback
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38     /**
       
    39     * New for calling the two-phased constructor.
       
    40     * @since 5.2
       
    41     * @param aServer Pointer to the MPM server object, for callback purposes    
       
    42     * @return Pointer to created object instance
       
    43     */
       
    44     static CMPMConnSelectionDlgTimer* NewL( CMPMServer* aServer );
       
    45 
       
    46     /**
       
    47     * Destructor.
       
    48     * @since 5.2
       
    49     */
       
    50     virtual ~CMPMConnSelectionDlgTimer();
       
    51 
       
    52     /**
       
    53     * Start the timer.
       
    54     * @since 5.2
       
    55     */
       
    56     void StartTimer();
       
    57 
       
    58     /**
       
    59     * Dialog expiration timeout callback, inherited from MMPMExpiryTimerCallback.
       
    60     * @since 5.2
       
    61     */
       
    62     void HandleTimedOut();
       
    63     
       
    64 private:
       
    65 
       
    66     /**
       
    67     * C++ default constructor.
       
    68     * @since 5.2
       
    69     * @param aServer Pointer to the MPM server object, for callback purposes    
       
    70     */
       
    71     CMPMConnSelectionDlgTimer( CMPMServer* aServer );
       
    72 
       
    73     /**
       
    74     * Symbian 2nd phase constructor.
       
    75     * @since 5.2
       
    76     */
       
    77     void ConstructL();
       
    78 
       
    79 
       
    80 private: // data
       
    81 
       
    82     /**
       
    83     * Pointer to the MPM Server object. Not own.
       
    84     */
       
    85     CMPMServer* iServer;
       
    86     
       
    87     /**
       
    88     * Pointer to the common MPM expiry timer object.
       
    89     */
       
    90     CMPMExpiryTimer* iExpiryTimer;
       
    91 
       
    92     /**
       
    93     * Timeout constant.
       
    94     */
       
    95     static const TInt KTimeout = 10000000; // 10 sec
       
    96 
       
    97     };
       
    98 
       
    99 #endif // MPMCONNSELECTIONDLGTIMER_H