btobexprofiles/obexsendservices/obexservicesendutils/inc/BTConnectionTimer.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     1 /*
       
     2 * Copyright (c) 2006 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:  Waiter class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef BTCONNECTION_TIMER_H
       
    21 #define BTCONNECTION_TIMER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h> // CTimer
       
    25 #include "BTServiceClient.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  A timer object for waiting server connections.
       
    35 */
       
    36 NONSHARABLE_CLASS (CBTConnectionTimer) : public CTimer
       
    37     {
       
    38     public: // Constructors and destructor
       
    39         
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         */
       
    43         static CBTConnectionTimer* NewL( MBTConTimeObserver* aObserver );
       
    44         
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         virtual ~CBTConnectionTimer();
       
    49 
       
    50     private: // Functions from base classes
       
    51 
       
    52         /**
       
    53         * From CActive Get's called when the timer expires.
       
    54         * @param None.
       
    55         * @return None.
       
    56         */
       
    57         void RunL();
       
    58 
       
    59     private:
       
    60 
       
    61         /**
       
    62         * C++ default constructor.
       
    63         */
       
    64         CBTConnectionTimer( MBTConTimeObserver* aObserver );        
       
    65         
       
    66 
       
    67         /**
       
    68         * By default Symbian 2nd phase constructor is private.
       
    69         */
       
    70         void ConstructL();
       
    71         
       
    72     public:
       
    73         /**
       
    74          * Set timeout value
       
    75          * @aTimeOutValue timeout value
       
    76          * @return None.
       
    77          */
       
    78         void SetTimeOut(TTimeIntervalMicroSeconds32 aTimeOutValue);      
       
    79         
       
    80         /**
       
    81          * Start
       
    82          * @aTimeOutValue timeout value
       
    83          * @return None.
       
    84          */
       
    85         void Start();      
       
    86 
       
    87     private: // Data
       
    88 
       
    89         // Not owned
       
    90         //
       
    91         MBTConTimeObserver* iObserver;
       
    92         TTimeIntervalMicroSeconds32 iTimeOutValue;
       
    93     };
       
    94 
       
    95 #endif      // BTCONNECTION_TIMER_H
       
    96             
       
    97 // End of File