securitydialogs/Autolock/autolockuseractivityservice/s60/inc/autolockuseractivityservice_p.h
branchRCL_3
changeset 49 09b1ac925e3f
equal deleted inserted replaced
47:63339781d179 49: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 class CUserActivityManager;
       
    22 
       
    23 class AutolockUserActivityService;
       
    24 
       
    25 class AutolockUserActivityServicePrivate
       
    26 {
       
    27 
       
    28 public:
       
    29 
       
    30     explicit AutolockUserActivityServicePrivate(AutolockUserActivityService *servicePublic);
       
    31     ~AutolockUserActivityServicePrivate();
       
    32 
       
    33     void setInactivityPeriod(int seconds);
       
    34     int inactivityPeriod() const;
       
    35 
       
    36     void watch(bool shouldWatch);
       
    37     
       
    38     void emitActive() const;
       
    39     void emitNotActive() const;
       
    40 
       
    41 private:
       
    42 
       
    43     bool isWatching() const;
       
    44 
       
    45 private:
       
    46 
       
    47     AutolockUserActivityService *m_q;
       
    48 
       
    49     CUserActivityManager *mActivityManager;
       
    50     int mInactivityPeriod;
       
    51 
       
    52 };
       
    53 
       
    54 #endif // AUTOLOCKUSERACTIVITYSERVICEPRIVATE_H