connectivitymodules/SeCon/plugins/hapticsconnplugin/inc/hapticsconntimer.h
branchRCL_3
changeset 19 0aa8cc770c8a
parent 18 453dfc402455
child 20 4a793f564d72
equal deleted inserted replaced
18:453dfc402455 19:0aa8cc770c8a
     1 /*
       
     2 * Copyright (c) 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:  Connection shutdown timer for haptics server connection.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_HAPTICSCONNTIMER_H
       
    20 #define C_HAPTICSCONNTIMER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "hapticsmsghandler.h"
       
    25 
       
    26 NONSHARABLE_CLASS ( CHapticsConnTimer ) : public CTimer
       
    27 	{
       
    28 	public:
       
    29         /**
       
    30          * 2-phased constructor.
       
    31          */
       
    32         static CHapticsConnTimer* NewL( MHapticsConnectionShutdown* aCallback );
       
    33 
       
    34         /**
       
    35          * Destructor.
       
    36          */
       
    37         virtual ~CHapticsConnTimer();
       
    38 
       
    39 		/**
       
    40 	 	* Starts the timer
       
    41 	 	*/
       
    42         void Start();
       
    43         
       
    44     private: // From CActive.
       
    45         /**
       
    46          * Notifies client on timeout.
       
    47          */
       
    48         void RunL();
       
    49         			
       
    50     private:
       
    51         /**
       
    52          * Constructor.
       
    53          */
       
    54         CHapticsConnTimer( MHapticsConnectionShutdown* aCallback );
       
    55 
       
    56         /**
       
    57          * 2nd phase constructor.
       
    58          */    
       
    59 	    void ConstructL();
       
    60 
       
    61     private:
       
    62         /**
       
    63          * Callback interface to notify about timeout.
       
    64          * Not own.
       
    65          */        
       
    66         MHapticsConnectionShutdown* iCallback;
       
    67 	};
       
    68 	
       
    69 #endif // C_HAPTICSCONNTIMER_H
       
    70 
       
    71 // End of file