18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
+
+
-
+
+
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#import <ObjFW/ObjFW.h>
OF_ASSUME_NONNULL_BEGIN
@class XMPPConnection;
@class XMPPIQ;
#ifdef OF_HAVE_BLOCKS
typedef void (^xmpp_callback_block_t)(XMPPConnection*, XMPPIQ*);
typedef void (^xmpp_callback_block_t)(XMPPConnection *_Nonnull,
XMPPIQ *_Nonnull);
#endif
@interface XMPPCallback: OFObject
{
id _target;
SEL _selector;
#ifdef OF_HAVE_BLOCKS
|
44
45
46
47
48
49
50
51
52
53
|
47
48
49
50
51
52
53
54
55
56
57
58
|
-
-
+
+
+
+
|
#endif
+ (instancetype)callbackWithTarget: (id)target
selector: (SEL)selector;
- initWithTarget: (id)target
selector: (SEL)selector;
- (void)runWithIQ: (XMPPIQ*)iq
connection: (XMPPConnection*)connection;
- (void)runWithIQ: (XMPPIQ *)iq
connection: (XMPPConnection *)connection;
@end
OF_ASSUME_NONNULL_END
|