/
inactivity.h
37 lines (32 loc) · 1.44 KB
/
inactivity.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* @file inactivity.h
* Inactivity module -- this implements inactivity logic for MCE
* <p>
* Copyright (C) 2018 Jolla Ltd.
* <p>
* @author Simo Piiroinen <simo.piiroinen@jollamobile.com>
*
* mce is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* mce is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with mce. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MCE_MODULES_INACTIVITY_H_
# define MCE_MODULES_INACTIVITY_H_
/* ========================================================================= *
* Settings for inactivity plugin
* ========================================================================= */
/** Prefix used for inactivity plugin setting keys */
# define MCE_SETTING_INACTIVITY_PATH "/system/osso/dsm/inactivity"
/** Delay for automatic shutdown due to inactivity */
# define MCE_SETTING_INACTIVITY_SHUTDOWN_DELAY MCE_SETTING_INACTIVITY_PATH "/shutdown_delay"
# define MCE_DEFAULT_INACTIVITY_SHUTDOWN_DELAY 0
# define MCE_MINIMUM_INACTIVITY_SHUTDOWN_DELAY 30
#endif /* MCE_MODULES_INACTIVITY_H_ */