Quassel IRC
Pre-Release
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
aboutdata.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright (C) 2005-2015 by the Quassel Project *
3
* devel@quassel-irc.org *
4
* *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) version 3. *
9
* *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
14
* *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19
***************************************************************************/
20
21
#pragma once
22
23
#include <QLocale>
24
25
#ifdef HAVE_KF5
26
# include <KCoreAddons/KAboutData>
27
#endif
28
29
35
class
AboutPerson
36
{
37
public
:
47
AboutPerson
(
const
QString &
name
,
const
QString &
nick
,
const
QString &
task
,
const
QString &
emailAddress
= QString(), QLocale::Language
translatedLanguage
= QLocale::C);
48
54
QString
name
()
const
;
55
61
QString
nick
()
const
;
62
68
QString
task
()
const
;
69
75
QString
emailAddress
()
const
;
76
82
QLocale::Language
translatedLanguage
()
const
;
83
89
QString
prettyName
()
const
;
90
91
private
:
92
QString
_name
;
93
QString
_nick
;
94
QString
_task
;
95
QString
_emailAddress
;
96
QLocale::Language
_language
;
97
};
98
99
107
class
AboutData
:
public
QObject
108
{
109
Q_OBJECT
110
public
:
116
AboutData
(QObject *parent =
nullptr
);
117
126
AboutData
&
addAuthor
(
const
AboutPerson
&author);
127
137
AboutData
&
addAuthors
(std::initializer_list<AboutPerson>
authors
);
138
145
AboutData
&
addCredit
(
const
AboutPerson
&credit);
146
156
AboutData
&
addCredits
(std::initializer_list<AboutPerson>
credits
);
157
163
QList<AboutPerson>
authors
()
const
;
164
170
QList<AboutPerson>
credits
()
const
;
171
172
#ifdef HAVE_KF5
173
179
KAboutData kAboutData()
const
;
180
#endif
181
189
static
void
setQuasselPersons
(
AboutData
*aboutData);
190
191
private
:
192
QList<AboutPerson>
_authors
;
193
QList<AboutPerson>
_credits
;
194
};
tmp
quassel
src
uisupport
aboutdata.h
Generated on Wed Sep 23 2015 13:43:29 for Quassel IRC by
1.8.1.2