securitydialogs/Autolock/autolockuseractivityservice/stub/inc/autolockuseractivityservice_p.h
branchRCL_3
changeset 21 09b1ac925e3f
equal deleted inserted replaced
20:63339781d179 21:09b1ac925e3f
       
     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: autolockuseractivityservice_p.h
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef AUTOLOCKUSERACTIVITYSERVICEPRIVATE_H
       
    19 #define AUTOLOCKUSERACTIVITYSERVICEPRIVATE_H
       
    20 
       
    21 #include "autolocktest_global.h"
       
    22 
       
    23 class QTimer;
       
    24 
       
    25 class AutolockUserActivityService;
       
    26 
       
    27 class AutolockUserActivityServicePrivate
       
    28 {
       
    29 
       
    30 public:
       
    31 
       
    32     explicit AutolockUserActivityServicePrivate(AutolockUserActivityService *servicePublic);
       
    33     ~AutolockUserActivityServicePrivate();
       
    34 
       
    35     void setInactivityPeriod(int seconds);
       
    36     int inactivityPeriod() const;
       
    37 
       
    38     void watch(bool shouldWatch);
       
    39 
       
    40 private:
       
    41 
       
    42     bool isWatching() const;
       
    43 
       
    44 private:
       
    45 
       
    46     AutolockUserActivityService *m_q;
       
    47 
       
    48     QTimer *mActivityTimer;
       
    49     QTimer *mInactivityTimer;
       
    50 
       
    51     int mInactivityPeriod;
       
    52     SCREENSAVER_TEST_FRIEND_CLASS(T_AutolockUserActivityService)
       
    53 };
       
    54 
       
    55 #endif // AUTOLOCKUSERACTIVITYSERVICEPRIVATE_H