]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - liblightdm-qt/ldmsession.cpp
Renamed libldmgreeter to liblightdm
[sojka/lightdm.git] / liblightdm-qt / ldmsession.cpp
1 #include "ldmsession.h"
2
3 #include <QDebug>
4
5 class LdmSessionPrivate
6 {
7 public:
8     QString key;
9     QString name;
10     QString comment;
11 };
12
13 LdmSession::LdmSession(const QString &key, const QString &name, const QString &comment)
14     : d(new LdmSessionPrivate)
15 {
16     d->key = key;
17     d->name = name;
18     d->comment = comment;
19 }
20
21 LdmSession::LdmSession(const LdmSession &other)
22     :d(new LdmSessionPrivate(*other.d))
23 {
24 }
25
26 LdmSession& LdmSession::operator=(const LdmSession& other)
27 {
28     *d = *other.d;
29     return *this;
30 }
31
32 LdmSession::~LdmSession()
33 {
34     delete d;
35 }
36
37 QString LdmSession::key() const
38 {
39     return d->key;
40 }
41
42 QString LdmSession::name() const
43 {
44     return d->name;
45 }
46
47 QString LdmSession::comment() const
48 {
49     return d->comment;
50 }