Artifact a069c37422f8e3cc024009ba10ad9543d72373a4cf114f5899ff76a678f886ff:
- File src/XMPPIQ.m — part of check-in [28c341cb47] at 2011-02-16 19:32:39 on branch trunk — Use one file per class. (user: js, size: 485) [annotate] [blame] [check-ins using]
#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