Adjust to ObjFW changes
This commit is contained in:
parent
73d3bca240
commit
5fa8b0b9b3
51 changed files with 935 additions and 859 deletions
|
@ -34,18 +34,18 @@
|
|||
return [[[self alloc] init] autorelease];
|
||||
}
|
||||
|
||||
+ (instancetype)messageWithID: (OFString*)ID
|
||||
+ (instancetype)messageWithID: (OFString *)ID
|
||||
{
|
||||
return [[[self alloc] initWithID: ID] autorelease];
|
||||
}
|
||||
|
||||
+ (instancetype)messageWithType: (OFString*)type
|
||||
+ (instancetype)messageWithType: (OFString *)type
|
||||
{
|
||||
return [[[self alloc] initWithType: type] autorelease];
|
||||
}
|
||||
|
||||
+ (instancetype)messageWithType: (OFString*)type
|
||||
ID: (OFString*)ID
|
||||
+ (instancetype)messageWithType: (OFString *)type
|
||||
ID: (OFString *)ID
|
||||
{
|
||||
return [[[self alloc] initWithType: type
|
||||
ID: ID] autorelease];
|
||||
|
@ -57,27 +57,27 @@
|
|||
ID: nil];
|
||||
}
|
||||
|
||||
- initWithID: (OFString*)ID
|
||||
- initWithID: (OFString *)ID
|
||||
{
|
||||
return [self initWithType: nil
|
||||
ID: ID];
|
||||
}
|
||||
|
||||
- initWithType: (OFString*)type
|
||||
- initWithType: (OFString *)type
|
||||
{
|
||||
return [self initWithType: type
|
||||
ID: nil];
|
||||
}
|
||||
|
||||
- initWithType: (OFString*)type
|
||||
ID: (OFString*)ID
|
||||
- initWithType: (OFString *)type
|
||||
ID: (OFString *)ID
|
||||
{
|
||||
return [super initWithName: @"message"
|
||||
type: type
|
||||
ID: ID];
|
||||
}
|
||||
|
||||
- (void)setBody: (OFString*)body
|
||||
- (void)setBody: (OFString *)body
|
||||
{
|
||||
OFXMLElement *oldBody = [self elementForName: @"body"
|
||||
namespace: XMPP_NS_CLIENT];
|
||||
|
@ -91,7 +91,7 @@
|
|||
stringValue: body]];
|
||||
}
|
||||
|
||||
- (OFString*)body
|
||||
- (OFString *)body
|
||||
{
|
||||
return [[self elementForName: @"body"
|
||||
namespace: XMPP_NS_CLIENT] stringValue];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue