Lomiri
Loading...
Searching...
No Matches
GreeterPrivate.h
1/*
2 * Copyright (C) 2015-2017 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "PromptsModel.h"
20#include <QObject>
21
22namespace QLightDM {
23 class Greeter;
24}
25
26class GreeterPrivate
27{
28public:
29 explicit GreeterPrivate(Greeter *parent);
30
31 QLightDM::Greeter *m_greeter;
32 bool m_active;
33 PromptsModel prompts;
34 PromptsModel leftovers; // prompts to show during next auth for same user
35 bool responded;
36 bool everResponded;
37 bool promptless;
38 QString cachedAuthUser;
39
40protected:
41 Greeter * const q_ptr;
42
43private:
44 Q_DECLARE_PUBLIC(Greeter)
45};