2 * This file is part of KMail.
3 * Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
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) any later version.
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.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef CODECMANAGER_H
21 #define CODECMANAGER_H
27 class CodecManagerPrivate
;
29 class CodecManager
: public QObject
35 Returns the CodecManager instance.
37 static CodecManager
*self();
40 A list of preferred charsets to use when composing messages.
42 QList
<QByteArray
> preferredCharsets() const;
45 Re-read the preferred charsets from settings.
46 TODO KConfig XT would probably make this unnecessary
48 void updatePreferredCharsets();
51 friend class CodecManagerPrivate
;
52 CodecManagerPrivate
*const d
;
54 // Singleton. The only instance lives in sInstance->instance
55 CodecManager( CodecManagerPrivate
*dd
);
59 #endif /* CODECMANAGER_H */