1/*
2 Copyright (c) 2007 Volker Krause <vkrause@kde.org>
3
4 KNode code:
5 Copyright (c) 1999-2005 the KNode authors. // krazy:exclude=copyright
6
7 This library is free software; you can redistribute it and/or modify it
8 under the terms of the GNU Library General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
11
12 This library is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15 License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to the
19 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 02110-1301, USA.
21*/
22
23#ifndef MAILTRANSPORT_LEGACYDECRYPT_H
24#define MAILTRANSPORT_LEGACYDECRYPT_H
25
26#include <QtCore/QString>
27
28namespace MailTransport {
29
30/**
31 Methods to read passwords from config files still using legacy encryption.
32*/
33class Legacy
34{
35 public:
36 /**
37 Read data encrypted using KMail's legacy encryption.
38 */
39 static QString decryptKMail( const QString &data );
40
41 /**
42 Read data encrypted using KNode's legacy encryption.
43 */
44 static QString decryptKNode( const QString &data );
45};
46
47} // namespace MailTransport
48
49#endif // MAILTRANSPORT_LEGACYDECRYPT_H
50