mmsharing/livecommsui/lcuiengine/inc/lcactivitymanager.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LCACTIVITYMANAGER_H
       
    19 #define LCACTIVITYMANAGER_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <QObject>
       
    23 
       
    24 // FORWARD DECLARATION
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  * 
       
    30  */
       
    31 class LcActivityManager : public QObject
       
    32 {
       
    33     friend class UT_LcActivityManager;
       
    34     Q_OBJECT
       
    35 
       
    36 public:  
       
    37 
       
    38     explicit LcActivityManager();
       
    39     ~LcActivityManager();
       
    40         
       
    41 public slots:
       
    42 
       
    43     void enableActivitySimulation(bool enable);
       
    44     
       
    45 public:
       
    46     
       
    47     bool isActivitySimulationEnabled();
       
    48     
       
    49     
       
    50 private:
       
    51     
       
    52     int initInactivityTimeout();
       
    53     void stopTimer();
       
    54     void restartTimer();
       
    55     
       
    56     //from QObject
       
    57     void timerEvent(QTimerEvent *event);
       
    58 
       
    59 private:
       
    60 
       
    61     int mTimerId;
       
    62     int mInactivityTimeout;
       
    63     
       
    64 };
       
    65 
       
    66 #endif      // LCACTIVITYMANAGER_H
       
    67 
       
    68 
       
    69 // End of File