-
Notifications
You must be signed in to change notification settings - Fork 1
/
XSSkype.h
43 lines (31 loc) · 864 Bytes
/
XSSkype.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// XSSkype.h
// SkypeToAddressBook
//
// Created by Xavi Aracil on 07/11/09.
// Copyright 2009 xaracSoft (Xavi Aracil Diaz). All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Skype/Skype.h>
@protocol XSSkypeDelegate <NSObject>
-(void) skypeDidConnect;
-(void) skypeDidFailConnect;
-(void) skypeIsNotInstalled;
@end
@protocol XSSkypeResponder <NSObject>
-(void) response:(NSString *) response;
@end
@interface XSSkype : NSObject<SkypeAPIDelegate> {
BOOL connected;
NSString *appName;
id<XSSkypeDelegate> delegate;
NSMutableDictionary *calls;
NSInteger lastCallId;
}
@property(readonly) BOOL connected;
@property(copy) NSString *appName;
@property(retain) id<XSSkypeDelegate> delegate;
-(id) initWithAppName:(NSString *) name;
-(void) sendCommand:(NSString *) command responder:(id<XSSkypeResponder>) responder;
-(void) connect;
@end