Use one file per class.
This commit is contained in:
parent
2fa82b833c
commit
fa59d3ce32
11 changed files with 361 additions and 355 deletions
24
src/XMPPIQ.m
Normal file
24
src/XMPPIQ.m
Normal file
|
@ -0,0 +1,24 @@
|
|||
#import "XMPPIQ.h"
|
||||
|
||||
@implementation XMPPIQ
|
||||
+ IQWithType: (OFString*)type_
|
||||
ID: (OFString*)ID_
|
||||
{
|
||||
return [[[self alloc] initWithType: type_
|
||||
ID: ID_] autorelease];
|
||||
}
|
||||
|
||||
- initWithType: (OFString*)type_
|
||||
ID: (OFString*)ID_
|
||||
{
|
||||
if (!([type_ isEqual: @"get"] ||
|
||||
[type_ isEqual: @"set"] ||
|
||||
[type_ isEqual: @"result"] ||
|
||||
[type_ isEqual: @"error"]))
|
||||
of_log(@"Invalid IQ type!");
|
||||
|
||||
return [super initWithName: @"iq"
|
||||
type: type_
|
||||
ID: ID_];
|
||||
}
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue