Initial commit
This commit is contained in:
commit
f38ff5fbc2
18 changed files with 1016 additions and 0 deletions
6
common/QtOwnershipManaging.h
Normal file
6
common/QtOwnershipManaging.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#import <ObjFW/ObjFW.h>
|
||||
|
||||
@protocol QtOwnershipManaging
|
||||
- (void)takeOwnership;
|
||||
- (void)giveUpOwnership;
|
||||
@end
|
15
common/helpers.h
Normal file
15
common/helpers.h
Normal 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]);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue