~lukas-kde/unity8/dashboard

« back to all changes in this revision

Viewing changes to plugins/LightDM/GreeterPrivate.h

  • Committer: Lukáš Tinkl
  • Date: 2017-01-26 12:13:17 UTC
  • mfrom: (2749.1.49 unity8)
  • Revision ID: lukas.tinkl@canonical.com-20170126121317-qms39s9pikclidbe
merge trunk, fix conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2014 Canonical, Ltd.
 
2
 * Copyright (C) 2015-2017 Canonical, Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
14
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
 */
16
16
 
17
 
#ifndef UNITY_GREETER_PRIVATE_H
18
 
#define UNITY_GREETER_PRIVATE_H
19
 
 
20
 
#include <QLightDM/Greeter>
 
17
#pragma once
 
18
 
 
19
#include "PromptsModel.h"
 
20
#include <QObject>
 
21
 
 
22
namespace QLightDM {
 
23
    class Greeter;
 
24
}
21
25
 
22
26
class GreeterPrivate
23
27
{
26
30
 
27
31
    QLightDM::Greeter *m_greeter;
28
32
    bool m_active;
29
 
    bool wasPrompted;
30
 
    bool promptless;
 
33
    PromptsModel prompts;
 
34
    PromptsModel leftovers; // prompts to show during next auth for same user
 
35
    bool responded;
 
36
    bool everResponded;
 
37
    QString cachedAuthUser;
31
38
 
32
39
protected:
33
40
    Greeter * const q_ptr;
35
42
private:
36
43
    Q_DECLARE_PUBLIC(Greeter)
37
44
};
38
 
 
39
 
#endif // UNITY_GREETER_PRIVATE_H