sysresmonitoring/oommonitor/inc/oomappclosetimer.h
changeset 35 13fd6fd25fe7
equal deleted inserted replaced
29:6a787171e1de 35:13fd6fd25fe7
       
     1 /*
       
     2 * Copyright (c) 2006-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:  Timer class which implements a timeout for an application close action.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef OOMAPPCLOSETIMER_H_
       
    20 #define OOMAPPCLOSETIMER_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class COomCloseApp;
       
    25 
       
    26 /**
       
    27  *  A simple timer class which implements a timeout for an application close action.
       
    28  *
       
    29  *  If the application has not been closed within the period this timer is started with, 
       
    30  *  then we complete the action as if he had been successful, allowing us to move on to the 
       
    31  *  action or set of actions.
       
    32  *
       
    33  *  @lib oommonitor.lib
       
    34  *  @since S60 v5.0
       
    35  */
       
    36 NONSHARABLE_CLASS(COomAppCloseTimer) : public CTimer
       
    37     {
       
    38 public:
       
    39     static COomAppCloseTimer* NewL(COomCloseApp& aMonitor);
       
    40 private:
       
    41     COomAppCloseTimer(COomCloseApp& aMonitor);
       
    42     void RunL();
       
    43     
       
    44 private: //data
       
    45 	
       
    46     /**
       
    47      * A reference to the owning close app action
       
    48      */
       
    49     COomCloseApp& iMonitor;
       
    50     
       
    51     };
       
    52 
       
    53 #endif /*OOMAPPCLOSETIMER_H_*/