gnome-control-center/panels/lock/cc-lock-panel.h
2022-01-24 21:33:47 +00:00

55 lines
1.9 KiB
C

/* -*- 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_lock_panel_get_type ())
G_DECLARE_FINAL_TYPE (CcLockPanel, cc_lock_panel, CC, LOCK_PANEL, CcPanel)
typedef enum {
CC_LOCK_PANEL_LOCK_AFTER_SCREEN_OFF = 0,
CC_LOCK_PANEL_LOCK_AFTER_30_SEC = 30,
CC_LOCK_PANEL_LOCK_AFTER_1_MIN = 60,
CC_LOCK_PANEL_LOCK_AFTER_2_MIN = 120,
CC_LOCK_PANEL_LOCK_AFTER_3_MIN = 180,
CC_LOCK_PANEL_LOCK_AFTER_5_MIN = 300,
CC_LOCK_PANEL_LOCK_AFTER_30_MIN = 1800,
CC_LOCK_PANEL_LOCK_AFTER_1_HR = 3600,
} CcLockPanelLockAfter;
typedef enum {
CC_LOCK_PANEL_BLANK_SCREEN_DELAY_1_MIN = 60,
CC_LOCK_PANEL_BLANK_SCREEN_DELAY_2_MIN = 120,
CC_LOCK_PANEL_BLANK_SCREEN_DELAY_3_MIN = 180,
CC_LOCK_PANEL_BLANK_SCREEN_DELAY_4_MIN = 240,
CC_LOCK_PANEL_BLANK_SCREEN_DELAY_5_MIN = 300,
CC_LOCK_PANEL_BLANK_SCREEN_DELAY_8_MIN = 480,
CC_LOCK_PANEL_BLANK_SCREEN_DELAY_10_MIN = 600,
CC_LOCK_PANEL_BLANK_SCREEN_DELAY_12_MIN = 720,
CC_LOCK_PANEL_BLANK_SCREEN_DELAY_15_MIN = 900,
CC_LOCK_PANEL_BLANK_SCREEN_DELAY_NEVER = 0,
} CcLockPanelBlankScreenDelay;
G_END_DECLS