Lomiri
SessionsModelPrivate.h
1 /*
2  * Copyright (C) 2015 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 
18 #ifndef LOMIRI_INTEGRATED_SESSIONSMODEL_PRIVATE_H
19 #define LOMIRI_INTEGRATED_SESSIONSMODEL_PRIVATE_H
20 
21 #include <QtCore/QList>
22 #include <QtCore/QString>
23 
24 namespace QLightDM
25 {
26 class SessionsModel;
27 
28 class SessionItem
29 {
30 public:
31  QString key;
32  QString type; // unused
33  QString name;
34  QString comment; // unused
35 };
36 
37 class SessionsModelPrivate
38 {
39 public:
40  explicit SessionsModelPrivate(SessionsModel* parent=0);
41  virtual ~SessionsModelPrivate() = default;
42 
43  QList<SessionItem> sessionItems;
44 
45 protected:
46  SessionsModel* const q_ptr;
47 
48 private:
49  Q_DECLARE_PUBLIC(SessionsModel)
50 };
51 
52 } // namespace QLightDM
53 
54 #endif // LOMIRI_INTEGRATED_SESSIONSMODEL_PRIVATE_H