• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kleopatra

  • sources
  • kde-4.12
  • kdepim
  • kleopatra
aboutdata.cpp
Go to the documentation of this file.
1 /*
2  aboutdata.cpp
3 
4  This file is part of Kleopatra, the KDE keymanager
5  Copyright (c) 2001,2002,2004 Klarälvdalens Datakonsult AB
6 
7  Kleopatra is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  Kleopatra is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 
21  In addition, as a special exception, the copyright holders give
22  permission to link the code of this program with any edition of
23  the Qt library by Trolltech AS, Norway (or with modified versions
24  of Qt that use the same license as Qt), and distribute linked
25  combinations including the two. You must obey the GNU General
26  Public License in all respects for all of the code used other than
27  Qt. If you modify this file, you may extend this exception to
28  your version of the file, but you are not obligated to do so. If
29  you do not wish to do so, delete this exception statement from
30  your version.
31 */
32 
33 #include <config-kleopatra.h>
34 #include <version-kleopatra.h>
35 
36 #include "aboutdata.h"
37 
38 #include <utils/gnupg-helper.h>
39 
40 #include <klocale.h>
41 #include <kiconloader.h>
42 
43 #include <QPixmap>
44 #include <QVariant>
45 #include <QProcess>
46 #include <QTextStream>
47 
48 #include <cassert>
49 
50 using namespace Kleo;
51 
52 static const char kleopatra_version[] = KLEOPATRA_VERSION_STRING;
53 static const char description[] = I18N_NOOP("Certificate Manager and Unified Crypto GUI");
54 
55 struct about_data {
56  const char * name;
57  const char * desc;
58  const char * email;
59  const char * web;
60 };
61 
62 static const about_data authors[] = {
63  { "Marc Mutz", I18N_NOOP("Current Maintainer"), "mutz@kde.org", 0 },
64  { "Steffen Hansen", I18N_NOOP("Former Maintainer"), "hansen@kde.org", 0 },
65  { "Matthias Kalle Dalheimer", I18N_NOOP("Original Author"), "kalle@kde.org", 0 },
66 };
67 
68 
69 static const about_data credits[] = {
70  { I18N_NOOP("David Faure"),
71  I18N_NOOP("Backend configuration framework, KIO integration"),
72  "faure@kde.org", 0 },
73  { I18N_NOOP("Michel Boyer de la Giroday"),
74  I18N_NOOP("Key-state dependent colors and fonts in the certificates list"),
75  "michel@klaralvdalens-datakonsult.se", 0 },
76  { I18N_NOOP("Thomas Moenicke"),
77  I18N_NOOP("Artwork"),
78  "tm@php-qt.org", 0 },
79  { I18N_NOOP("Frank Osterfeld"),
80  I18N_NOOP("Resident gpgme/win wrangler, UI Server commands and dialogs"),
81  "osterfeld@kde.org", 0 },
82  { I18N_NOOP("Karl-Heinz Zimmer"),
83  I18N_NOOP("DN display ordering support, infrastructure"),
84  "khz@kde.org", 0 },
85 };
86 
87 
88 AboutData::AboutData()
89  : KAboutData( "kleopatra", 0, ki18n("Kleopatra"),
90  kleopatra_version, ki18n(description), License_GPL,
91  ki18n("(c) 2002 Steffen\xC2\xA0Hansen, Matthias\xC2\xA0Kalle\xC2\xA0" "Dalheimer, Klar\xC3\xA4lvdalens\xC2\xA0" "Datakonsult\xC2\xA0" "AB\n"
92  "(c) 2004, 2007, 2008, 2009 Marc\xC2\xA0Mutz, Klar\xC3\xA4lvdalens\xC2\xA0" "Datakonsult\xC2\xA0" "AB") )
93 {
94  using ::authors;
95  using ::credits;
96  for ( unsigned int i = 0 ; i < sizeof authors / sizeof *authors ; ++i )
97  addAuthor( ki18n(authors[i].name), ki18n(authors[i].desc),
98  authors[i].email, authors[i].web );
99  for ( unsigned int i = 0 ; i < sizeof credits / sizeof *credits ; ++i )
100  addCredit( ki18n(credits[i].name), ki18n(credits[i].desc),
101  credits[i].email, credits[i].web );
102 }
103 
104 
105 static const char gpg4win_description[] = I18N_NOOP( "Gpg4win is an installer package for Windows for EMail and "
106  "file encryption using the core component GnuPG for Windows. "
107  "Both relevant cryptography standards are supported, OpenPGP "
108  "and S/MIME. Gpg4win and the software included with Gpg4win "
109  "are Free Software.");
110 
111 
112 static const char gpg4win_credits_description[] = I18N_NOOP( "This Free Software product was developed mostly as part of "
113  "commercial contracts by the following companies:"
114  "<ul><li><a href='http://intevation.net'>Intevation GmbH</a> "
115  "(Projekt coordination, QA, Compendium)</li>"
116  "<li><a href='http://www.g10code.com'>g10 Code GmbH</a> "
117  "(Crypto Funktionality, GpgOL, GpgEX, GPA)</li> "
118  "<li><a href='http://www.kdab.com'>KDAB</a> (Kleopatra)</li></ul>"
119  "The following persons have contributed (as of 20100706):");
120 
121 static const char gpg4win_credits_persons[] = I18N_NOOP( "Till Adam<br>"
122  "Marcus Brinkmann<br>"
123  "Brigitte Hamilton<br>"
124  "Bernhard Herzog<br>"
125  "Werner Koch<br>"
126  "Colin Leroy<br>"
127  "Marc Mutz<br>"
128  "Marcel Newmann<br>"
129  "Frank Osterfeld<br>"
130  "Bernhard Reiter<br>"
131  "Florian v. Samson<br>"
132  "Emanuel Schütze<br>"
133  "Dr. Jan-Oliver Wagner");
134 
135 
136 static const char gpg4win_version_guessed[] = "2.0.1";
137 
138 static QString gpg4win_version() {
139 
140  QProcess p;
141  p.setReadChannelMode( QProcess::MergedChannels );
142  p.start( gpgConfPath(), QStringList( QLatin1String( "--version" ) ) );
143  if ( !p.waitForFinished() )
144  return QString::fromLatin1( "%1 (%2)" ).arg( QLatin1String( gpg4win_version_guessed ),
145  i18nc("Version string is a guess","guessed") );
146  const QString output = QTextStream( &p ).readAll() ;
147  QRegExp rx( QLatin1String( "\\(Gpg4win\\s+([^\\s)]+)\\)" ) );
148  if ( rx.indexIn( output ) != -1 )
149  return rx.cap(1);
150  else
151  return QString::fromLatin1( "%1 (%2)" ).arg( QLatin1String( gpg4win_version_guessed ),
152  i18nc("Version string is a guess","guessed") );
153 }
154 
155 
156 static QPixmap UserIcon_nocached2( const char * name ) {
157  // KIconLoader insists on caching all pixmaps. Since the splash
158  // screen is a particularly large 'icon' and used only once,
159  // caching is unneccesary and just hurts startup performance.
160  KIconLoader * const il = KIconLoader::global();
161  assert( il );
162  const QString iconPath = il->iconPath( QLatin1String( name ), KIconLoader::User );
163  return iconPath.isEmpty() ? il->unknown() : QPixmap( iconPath ) ;
164 }
165 
166 
167 AboutGpg4WinData::AboutGpg4WinData()
168  : KAboutData( "gpg4win", 0, ki18n("Gpg4win"),
169  gpg4win_version().toLatin1(), ki18n(gpg4win_description),
170  License_GPL, KLocalizedString(), KLocalizedString(), "http://www.gpg4win.de" )
171 {
172  setCustomAuthorText( ki18n(gpg4win_credits_description), ki18n(gpg4win_credits_description) );
173  addAuthor( ki18n(gpg4win_credits_persons), KLocalizedString(), 0 , 0 );
174  setProgramLogo( UserIcon_nocached2( "gpg4win" ) );
175 }
description
static const char description[]
Definition: aboutdata.cpp:53
AboutData::AboutData
AboutData()
Definition: aboutdata.cpp:88
email
static std::string email(const UserID &uid)
Definition: keycache.cpp:593
gpgConfPath
static QString gpgConfPath()
Definition: configreader.cpp:294
credits
static const about_data credits[]
Definition: aboutdata.cpp:69
aboutdata.h
gpg4win_credits_description
static const char gpg4win_credits_description[]
Definition: aboutdata.cpp:112
KAboutData
gpg4win_description
static const char gpg4win_description[]
Definition: aboutdata.cpp:105
authors
static const about_data authors[]
Definition: aboutdata.cpp:62
gnupg-helper.h
UserIcon_nocached2
static QPixmap UserIcon_nocached2(const char *name)
Definition: aboutdata.cpp:156
kleopatra_version
static const char kleopatra_version[]
Definition: aboutdata.cpp:52
name
const char * name
Definition: uiserver/selectcertificatecommand.cpp:114
gpg4win_version_guessed
static const char gpg4win_version_guessed[]
Definition: aboutdata.cpp:136
gpg4win_credits_persons
static const char gpg4win_credits_persons[]
Definition: aboutdata.cpp:121
AboutGpg4WinData::AboutGpg4WinData
AboutGpg4WinData()
Definition: aboutdata.cpp:167
gpg4win_version
static QString gpg4win_version()
Definition: aboutdata.cpp:138
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kleopatra

Skip menu "kleopatra"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal