summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNetServiceBrowser.java
blob: 8d387a62cfdc375f150cb04add3571ccddbb41e2 (plain)
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
44
45
46
47
48
49
50
package org.eclipse.swt.internal.cocoa;

public class NSNetServiceBrowser extends NSObject {

public NSNetServiceBrowser() {
	super();
}

public NSNetServiceBrowser(int id) {
	super(id);
}

public id delegate() {
	int result = OS.objc_msgSend(this.id, OS.sel_delegate);
	return result != 0 ? new id(result) : null;
}

public void removeFromRunLoop(NSRunLoop aRunLoop, NSString mode) {
	OS.objc_msgSend(this.id, OS.sel_removeFromRunLoop_1forMode_1, aRunLoop != null ? aRunLoop.id : 0, mode != null ? mode.id : 0);
}

public void scheduleInRunLoop(NSRunLoop aRunLoop, NSString mode) {
	OS.objc_msgSend(this.id, OS.sel_scheduleInRunLoop_1forMode_1, aRunLoop != null ? aRunLoop.id : 0, mode != null ? mode.id : 0);
}

public void searchForAllDomains() {
	OS.objc_msgSend(this.id, OS.sel_searchForAllDomains);
}

public void searchForBrowsableDomains() {
	OS.objc_msgSend(this.id, OS.sel_searchForBrowsableDomains);
}

public void searchForRegistrationDomains() {
	OS.objc_msgSend(this.id, OS.sel_searchForRegistrationDomains);
}

public void searchForServicesOfType(NSString type, NSString domainString) {
	OS.objc_msgSend(this.id, OS.sel_searchForServicesOfType_1inDomain_1, type != null ? type.id : 0, domainString != null ? domainString.id : 0);
}

public void setDelegate(id delegate) {
	OS.objc_msgSend(this.id, OS.sel_setDelegate_1, delegate != null ? delegate.id : 0);
}

public void stop() {
	OS.objc_msgSend(this.id, OS.sel_stop);
}

}