Initial commit

This commit is contained in:
Jonathan Schleifer 2017-04-02 22:51:55 +02:00
commit f38ff5fbc2
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
18 changed files with 1016 additions and 0 deletions

15
common/helpers.h Normal file
View file

@ -0,0 +1,15 @@
#import <ObjFW/ObjFW.h>
#include <QString>
inline OFString*
QToOFString(const QString &qString)
{
return [OFString stringWithUTF8String: qString.toUtf8()];
}
inline QString
OFToQString(OFString *string)
{
return QString::fromUtf8([string UTF8String]);
}