btobexprofiles/obexserviceman/utils/inc/obexutilsdialogtimer.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef COBEXUTILSDIALOGTIMER_H
       
    20 #define COBEXUTILSDIALOGTIMER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "obexutilsdialog.h"
       
    24 
       
    25 // CLASS DECLARATION
       
    26 /**
       
    27 *  A timer class for updating progress dialog.
       
    28 */
       
    29 NONSHARABLE_CLASS( CObexUtilsDialogTimer ) : public CTimer
       
    30     {
       
    31     public: // Constructors and destructor
       
    32 
       
    33         /**
       
    34         * Two-phased constructor.
       
    35         */                           
       
    36         static CObexUtilsDialogTimer* NewL( CObexUtilsDialog* aParent );
       
    37         
       
    38         /**
       
    39         * Destructor.
       
    40         */
       
    41         virtual ~CObexUtilsDialogTimer();
       
    42      
       
    43     public: // New functions
       
    44 
       
    45         /**
       
    46         * Sets the timeout of the timer.
       
    47         * @param aTimeout The timeout in microseconds.
       
    48         * @return None.
       
    49         */
       
    50         void SetTimeout( TTimeIntervalMicroSeconds32 aTimeout );
       
    51 
       
    52         /**
       
    53         * Restarts the timer.
       
    54         * @return None.
       
    55         */
       
    56         void Tickle();
       
    57 
       
    58     private: // Functions from base classes
       
    59 
       
    60         /**
       
    61         * From CTimer Get's called when the timer expires.        
       
    62         * @return None.
       
    63         */
       
    64         void RunL();
       
    65 
       
    66     private:
       
    67 
       
    68         /**
       
    69         * C++ default constructor.
       
    70         */
       
    71         CObexUtilsDialogTimer( CObexUtilsDialog* aParent );
       
    72         
       
    73         /**
       
    74         * By default Symbian OS constructor is private.
       
    75         */      
       
    76         void ConstructL();
       
    77 
       
    78     private: // Data
       
    79         TTimeIntervalMicroSeconds32 iTimeout;
       
    80         CObexUtilsDialog*           iParent;
       
    81     };
       
    82 
       
    83 #endif      // COBEXUTILSDIALOGTIMER_H
       
    84             
       
    85 // End of File