Nieuwe reorganisaties en onder andere Gui gebruikersvriendelijker gemaakt. Meeste dingen zouden moeten werken, maar toch nog testen!
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.dt.iTunesController;
|
||||
|
||||
import com.jacob.activeX.ActiveXComponent;
|
||||
import com.jacob.com.ComThread;
|
||||
import com.jacob.com.Dispatch;
|
||||
import com.jacob.com.DispatchEvents;
|
||||
|
||||
@@ -17,7 +18,7 @@ public class iTunes {
|
||||
ActiveXComponent iTunes;
|
||||
iTunesEvents iTunesEvents;
|
||||
DispatchEvents dispatchEvents;
|
||||
|
||||
|
||||
/**
|
||||
* Initiate iTunes Controller.
|
||||
* @return
|
||||
@@ -25,7 +26,7 @@ public class iTunes {
|
||||
public void connect() {
|
||||
iTunes = new ActiveXComponent("iTunes.Application");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add an event handler to the iTunes controller.
|
||||
* @param itef The class that will handle the iTunes events.
|
||||
@@ -531,4 +532,8 @@ public class iTunes {
|
||||
public void playlistAddCurrentTrack(String name) {
|
||||
playlistAddTrack(name, getCurrentTrack());
|
||||
}
|
||||
|
||||
public void release() {
|
||||
ComThread.Release();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user