summaryrefslogtreecommitdiffstats
path: root/panels/screen/cc-screen-panel.h
blob: c1917f9c8d793db47e9d6c98ad645eba0a75df7b (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
 *
 * Copyright (C) 2018 Red Hat, Inc
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 *
 * Author: Matthias Clasen <mclasen@redhat.com>
 */

#pragma once

#include <shell/cc-panel.h>

G_BEGIN_DECLS

#define CC_TYPE_LOCK_PANEL (cc_screen_panel_get_type ())
G_DECLARE_FINAL_TYPE (CcScreenPanel, cc_screen_panel, CC, SCREEN_PANEL, CcPanel)

typedef enum {
  CC_SCREEN_PANEL_LOCK_AFTER_SCREEN_OFF = 0,
  CC_SCREEN_PANEL_LOCK_AFTER_30_SEC     = 30,
  CC_SCREEN_PANEL_LOCK_AFTER_1_MIN      = 60,
  CC_SCREEN_PANEL_LOCK_AFTER_2_MIN      = 120,
  CC_SCREEN_PANEL_LOCK_AFTER_3_MIN      = 180,
  CC_SCREEN_PANEL_LOCK_AFTER_5_MIN      = 300,
  CC_SCREEN_PANEL_LOCK_AFTER_30_MIN     = 1800,
  CC_SCREEN_PANEL_LOCK_AFTER_1_HR       = 3600,
} CcScreenPanelLockAfter;

typedef enum {
  CC_SCREEN_PANEL_BLANK_SCREEN_DELAY_1_MIN  = 60,
  CC_SCREEN_PANEL_BLANK_SCREEN_DELAY_2_MIN  = 120,
  CC_SCREEN_PANEL_BLANK_SCREEN_DELAY_3_MIN  = 180,
  CC_SCREEN_PANEL_BLANK_SCREEN_DELAY_4_MIN  = 240,
  CC_SCREEN_PANEL_BLANK_SCREEN_DELAY_5_MIN  = 300,
  CC_SCREEN_PANEL_BLANK_SCREEN_DELAY_8_MIN  = 480,
  CC_SCREEN_PANEL_BLANK_SCREEN_DELAY_10_MIN = 600,
  CC_SCREEN_PANEL_BLANK_SCREEN_DELAY_12_MIN = 720,
  CC_SCREEN_PANEL_BLANK_SCREEN_DELAY_15_MIN = 900,
  CC_SCREEN_PANEL_BLANK_SCREEN_DELAY_NEVER  = 0,
} CcScreenPanelBlankScreenDelay;


G_END_DECLS