1 /*
2  * %kadu copyright begin%
3  * Copyright 2009, 2010, 2011 Piotr Galiszewski (piotr.galiszewski@kadu.im)
4  * Copyright 2011 Piotr Dąbrowski (ultr@ultr.pl)
5  * Copyright 2010, 2011, 2012, 2013 Bartosz Brachaczek (b.brachaczek@gmail.com)
6  * Copyright 2009, 2010, 2011, 2012, 2013, 2014 Rafał Przemysław Malinowski (rafal.przemyslaw.malinowski@gmail.com)
7  * %kadu copyright end%
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License as
11  * published by the Free Software Foundation; either version 2 of
12  * the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef KADU_MISC_H
24 #define KADU_MISC_H
25 
26 #include "exports.h"
27 
28 class QChar;
29 class QRect;
30 class QString;
31 class QWidget;
32 template<typename T> class QList;
33 
34 KADUAPI QString replacedNewLine(const QString &text, const QString &newLineText);
35 
36 KADUAPI QString pwHash(const QString &text);
37 
38 KADUAPI QRect properGeometry(const QRect &rect);
39 
40 QRect stringToRect(const QString &value, const QRect *def = 0);
41 QString rectToString(const QRect& rect);
42 
43 QList<int> stringToIntList(const QString &in);
44 QString intListToString(const QList<int> &in);
45 
46 KADUAPI QString fixFileName(const QString &path, const QString &fn);
47 
48 KADUAPI QChar extractLetter(QChar c);
49 
50 #endif // MISC_H
51