xdmprotocols/inc/XdmShutdownTimer.h
branchRCL_3
changeset 17 2669f8761a99
parent 16 2580314736af
child 18 fbd2e7cec7ef
equal deleted inserted replaced
16:2580314736af 17:2669f8761a99
     1 /*
       
     2 * Copyright (c) 2005 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: CXdmShutdownTimer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __XDMSHUTDOWNTIMER__
       
    22 #define __XDMSHUTDOWNTIMER__
       
    23 
       
    24 //FORWARD DECLARATION
       
    25 class CXcapProtocol;
       
    26 class MXdmShutdownSwitch;
       
    27 
       
    28 NONSHARABLE_CLASS ( CXdmShutdownTimer ) : public CTimer
       
    29 	{	
       
    30     public:
       
    31     
       
    32         /**
       
    33         * Returns the MIME type of the messages
       
    34         * @return TPtrC8 The MIME type of the messages
       
    35         */
       
    36 	    CXdmShutdownTimer( CXcapProtocol& aXcapProtocol,
       
    37 	                       MXdmShutdownSwitch* aShutdownSwitch );
       
    38 	
       
    39 	    /**
       
    40         * Returns the MIME type of the messages
       
    41         * @return TPtrC8 The MIME type of the messages
       
    42         */
       
    43 	    void ConstructL();
       
    44 	
       
    45 	    /**
       
    46         * Returns the MIME type of the messages
       
    47         * @return TPtrC8 The MIME type of the messages
       
    48         */
       
    49 	    void Start( const TTimeIntervalMicroSeconds32 aShutdownDelay );
       
    50 	
       
    51     private:
       
    52     
       
    53         /**
       
    54         * Returns the MIME type of the messages
       
    55         * @return TPtrC8 The MIME type of the messages
       
    56         */
       
    57 	    void RunL();
       
    58 	    
       
    59 	private:
       
    60 	    
       
    61 	    CXcapProtocol&                  iXcapProtocol;
       
    62 		MXdmShutdownSwitch*             iShutdownSwitch;
       
    63 	};
       
    64 	
       
    65 #endif