~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to liblightdm-qt/language.cpp

  • Committer: David Edmundson
  • Date: 2011-11-15 17:00:49 UTC
  • mto: (1297.1.18 qt-fixes)
  • mto: This revision was merged to the branch mainline in revision 1322.
  • Revision ID: david@davidedmundson.co.uk-20111115170049-l8e7aoc6na583d9f
remove unused language class

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2010-2011 David Edmundson.
3
 
 * Author: David Edmundson <kde@davidedmundson.co.uk>
4
 
 *
5
 
 * This library is free software; you can redistribute it and/or modify it under
6
 
 * the terms of the GNU Lesser General Public License as published by the Free
7
 
 * Software Foundation; either version 3 of the License, or (at your option) any
8
 
 * later version. See http://www.gnu.org/copyleft/lgpl.html the full text of the
9
 
 * license.
10
 
 */
11
 
 
12
 
#include "QLightDM/language.h"
13
 
 
14
 
using namespace QLightDM;
15
 
 
16
 
class LanguagePrivate
17
 
{
18
 
public:
19
 
    QString code;
20
 
    QString name;
21
 
    QString territory;
22
 
};
23
 
 
24
 
Language::Language(QString &code, QString &name, QString &territory)
25
 
    : d(new LanguagePrivate)
26
 
{
27
 
    d->code = code;
28
 
    d->name = name;
29
 
    d->territory = territory;
30
 
}
31
 
 
32
 
Language::Language(const Language &other)
33
 
    :d(new LanguagePrivate(*other.d))
34
 
{
35
 
}
36
 
 
37
 
Language::~Language()
38
 
{
39
 
    delete d;
40
 
}
41
 
 
42
 
Language& Language::operator=(const Language& other)
43
 
{
44
 
    *d = *other.d;
45
 
    return *this;
46
 
}
47
 
 
48
 
 
49
 
QString Language::code() const
50
 
{
51
 
    return d->code;
52
 
}
53
 
 
54
 
QString Language::name() const
55
 
{
56
 
    return d->name;
57
 
}
58
 
 
59
 
QString Language::territory() const
60
 
{
61
 
    return d->territory;
62
 
}