KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > iTunes > def > IiTunes


1 // GENERATED. DO NOT MODIFY
2
package iTunes.def;
3
4 import com4j.*;
5
6 /**
7  * IiTunes Interface
8  */

9 @IID("{9DD6680B-3EDC-40DB-A771-E6FE4832E34A}")
10 public interface IiTunes extends Com4jObject {
11     /**
12      * Reposition to the beginning of the current track or go to the previous track if already at start of current track.
13      */

14     @VTID(7)
15     void backTrack();
16
17     /**
18      * Skip forward in a playing track.
19      */

20     @VTID(8)
21     void fastForward();
22
23     /**
24      * Advance to the next track in the current playlist.
25      */

26     @VTID(9)
27     void nextTrack();
28
29     /**
30      * Pause playback.
31      */

32     @VTID(10)
33     void pause();
34
35     /**
36      * Play the currently targeted track.
37      */

38     @VTID(11)
39     void play();
40
41     /**
42      * Play the specified file path, adding it to the library if not already present.
43      */

44     @VTID(12)
45     void playFile(
46         java.lang.String JavaDoc filePath);
47
48     /**
49      * Toggle the playing/paused state of the current track.
50      */

51     @VTID(13)
52     void playPause();
53
54     /**
55      * Return to the previous track in the current playlist.
56      */

57     @VTID(14)
58     void previousTrack();
59
60     /**
61      * Disable fast forward/rewind and resume playback, if playing.
62      */

63     @VTID(15)
64     void resume();
65
66     /**
67      * Skip backwards in a playing track.
68      */

69     @VTID(16)
70     void rewind();
71
72     /**
73      * Stop playback.
74      */

75     @VTID(17)
76     void stop();
77
78     /**
79      * Start converting the specified file path.
80      */

81     @VTID(18)
82     IITOperationStatus convertFile(
83         java.lang.String JavaDoc filePath);
84
85     /**
86      * Start converting the specified array of file paths. filePaths can be of type VT_ARRAY|VT_VARIANT, where each entry is a VT_BSTR, or VT_ARRAY|VT_BSTR. You can also pass a JScript Array object.
87      */

88     @VTID(19)
89     IITOperationStatus convertFiles(
90         java.lang.Object JavaDoc filePaths);
91
92     /**
93      * Start converting the specified track. iTrackToConvert is a VARIANT of type VT_DISPATCH that points to an IITTrack.
94      */

95     @VTID(20)
96     IITOperationStatus convertTrack(
97         java.lang.Object JavaDoc iTrackToConvert);
98
99     /**
100      * Start converting the specified tracks. iTracksToConvert is a VARIANT of type VT_DISPATCH that points to an IITTrackCollection.
101      */

102     @VTID(21)
103     IITOperationStatus convertTracks(
104         java.lang.Object JavaDoc iTracksToConvert);
105
106     /**
107      * Returns true if this version of the iTunes type library is compatible with the specified version.
108      */

109     @VTID(22)
110     boolean checkVersion(
111         int majorVersion,
112         int minorVersion);
113
114     /**
115      * Returns an IITObject corresponding to the specified IDs.
116      */

117     @VTID(23)
118     IITObject getITObjectByID(
119         int sourceID,
120         int playlistID,
121         int trackID,
122         int databaseID);
123
124     /**
125      * Creates a new playlist in the main library.
126      */

127     @VTID(24)
128     IITPlaylist createPlaylist(
129         java.lang.String JavaDoc playlistName);
130
131     /**
132      * Open the specified Music Store or streaming audio URL.
133      */

134     @VTID(25)
135     void openURL(
136         java.lang.String JavaDoc uRL);
137
138     /**
139      * Go to the Music Store home page.
140      */

141     @VTID(26)
142     void gotoMusicStoreHomePage();
143
144     /**
145      * Update the contents of the iPod.
146      */

147     @VTID(27)
148     void updateIPod();
149
150     @VTID(28)
151     void authorize(
152         int numElems,
153         java.lang.Object JavaDoc data,
154         Holder<java.lang.String JavaDoc> names);
155
156     /**
157      * Exits the iTunes application.
158      */

159     @VTID(29)
160     void quit();
161
162     /**
163      * Returns a collection of music sources (music library, CD, device, etc.).
164      */

165     @VTID(30)
166     IITSourceCollection sources();
167
168     /**
169      * Returns a collection of encoders.
170      */

171     @VTID(31)
172     IITEncoderCollection encoders();
173
174     /**
175      * Returns a collection of EQ presets.
176      */

177     @VTID(32)
178     IITEQPresetCollection eQPresets();
179
180     /**
181      * Returns a collection of visual plug-ins.
182      */

183     @VTID(33)
184     IITVisualCollection visuals();
185
186     /**
187      * Returns a collection of windows.
188      */

189     @VTID(34)
190     IITWindowCollection windows();
191
192     /**
193      * Returns the sound output volume (0 = minimum, 100 = maximum).
194      */

195     @VTID(35)
196     int soundVolume();
197
198     /**
199      * Returns the sound output volume (0 = minimum, 100 = maximum).
200      */

201     @VTID(36)
202     void soundVolume(
203         int volume);
204
205     /**
206      * True if sound output is muted.
207      */

208     @VTID(37)
209     boolean mute();
210
211     /**
212      * True if sound output is muted.
213      */

214     @VTID(38)
215     void mute(
216         boolean isMuted);
217
218     /**
219      * Returns the current player state.
220      */

221     @VTID(39)
222     ITPlayerState playerState();
223
224     /**
225      * Returns the player's position within the currently playing track in seconds.
226      */

227     @VTID(40)
228     int playerPosition();
229
230     /**
231      * Returns the player's position within the currently playing track in seconds.
232      */

233     @VTID(41)
234     void playerPosition(
235         int playerPos);
236
237     /**
238      * Returns the currently selected encoder (AAC, MP3, AIFF, WAV, etc.).
239      */

240     @VTID(42)
241     IITEncoder currentEncoder();
242
243     /**
244      * Returns the currently selected encoder (AAC, MP3, AIFF, WAV, etc.).
245      */

246     @VTID(43)
247     void currentEncoder(
248         IITEncoder iEncoder);
249
250     /**
251      * True if visuals are currently being displayed.
252      */

253     @VTID(44)
254     boolean visualsEnabled();
255
256     /**
257      * True if visuals are currently being displayed.
258      */

259     @VTID(45)
260     void visualsEnabled(
261         boolean isEnabled);
262
263     /**
264      * True if the visuals are displayed using the entire screen.
265      */

266     @VTID(46)
267     boolean fullScreenVisuals();
268
269     /**
270      * True if the visuals are displayed using the entire screen.
271      */

272     @VTID(47)
273     void fullScreenVisuals(
274         boolean isFullScreen);
275
276     /**
277      * Returns the size of the displayed visual.
278      */

279     @VTID(48)
280     ITVisualSize visualSize();
281
282     /**
283      * Returns the size of the displayed visual.
284      */

285     @VTID(49)
286     void visualSize(
287         ITVisualSize visualSize);
288
289     /**
290      * Returns the currently selected visual plug-in.
291      */

292     @VTID(50)
293     IITVisual currentVisual();
294
295     /**
296      * Returns the currently selected visual plug-in.
297      */

298     @VTID(51)
299     void currentVisual(
300         IITVisual iVisual);
301
302     /**
303      * True if the equalizer is enabled.
304      */

305     @VTID(52)
306     boolean eQEnabled();
307
308     /**
309      * True if the equalizer is enabled.
310      */

311     @VTID(53)
312     void eQEnabled(
313         boolean isEnabled);
314
315     /**
316      * Returns the currently selected EQ preset.
317      */

318     @VTID(54)
319     IITEQPreset currentEQPreset();
320
321     /**
322      * Returns the currently selected EQ preset.
323      */

324     @VTID(55)
325     void currentEQPreset(
326         IITEQPreset iEQPreset);
327
328     /**
329      * The name of the current song in the playing stream (provided by streaming server).
330      */

331     @VTID(56)
332     java.lang.String JavaDoc currentStreamTitle();
333
334     /**
335      * The URL of the playing stream or streaming web site (provided by streaming server).
336      */

337     @VTID(57)
338     java.lang.String JavaDoc currentStreamURL();
339
340     /**
341      * Returns the main iTunes browser window.
342      */

343     @VTID(58)
344     IITBrowserWindow browserWindow();
345
346     /**
347      * Returns the EQ window.
348      */

349     @VTID(59)
350     IITWindow eQWindow();
351
352     /**
353      * Returns the source that represents the main library.
354      */

355     @VTID(60)
356     IITSource librarySource();
357
358     /**
359      * Returns the main library playlist in the main library source.
360      */

361     @VTID(61)
362     IITLibraryPlaylist libraryPlaylist();
363
364     /**
365      * Returns the currently targeted track.
366      */

367     @VTID(62)
368     IITTrack currentTrack();
369
370     /**
371      * Returns the playlist containing the currently targeted track.
372      */

373     @VTID(63)
374     IITPlaylist currentPlaylist();
375
376     /**
377      * Returns a collection containing the currently selected track or tracks.
378      */

379     @VTID(64)
380     IITTrackCollection selectedTracks();
381
382     /**
383      * Returns the version of the iTunes application.
384      */

385     @VTID(65)
386     java.lang.String JavaDoc version();
387
388     @VTID(66)
389     void setOptions(
390         int options);
391
392     /**
393      * Start converting the specified file path.
394      */

395     @VTID(67)
396     IITConvertOperationStatus convertFile2(
397         java.lang.String JavaDoc filePath);
398
399     /**
400      * Start converting the specified array of file paths. filePaths can be of type VT_ARRAY|VT_VARIANT, where each entry is a VT_BSTR, or VT_ARRAY|VT_BSTR. You can also pass a JScript Array object.
401      */

402     @VTID(68)
403     IITConvertOperationStatus convertFiles2(
404         java.lang.Object JavaDoc filePaths);
405
406     /**
407      * Start converting the specified track. iTrackToConvert is a VARIANT of type VT_DISPATCH that points to an IITTrack.
408      */

409     @VTID(69)
410     IITConvertOperationStatus convertTrack2(
411         java.lang.Object JavaDoc iTrackToConvert);
412
413     /**
414      * Start converting the specified tracks. iTracksToConvert is a VARIANT of type VT_DISPATCH that points to an IITTrackCollection.
415      */

416     @VTID(70)
417     IITConvertOperationStatus convertTracks2(
418         java.lang.Object JavaDoc iTracksToConvert);
419
420     /**
421      * True if iTunes will process APPCOMMAND Windows messages.
422      */

423     @VTID(71)
424     boolean appCommandMessageProcessingEnabled();
425
426     /**
427      * True if iTunes will process APPCOMMAND Windows messages.
428      */

429     @VTID(72)
430     void appCommandMessageProcessingEnabled(
431         boolean isEnabled);
432
433     /**
434      * True if iTunes will force itself to be the foreground application when it displays a dialog.
435      */

436     @VTID(73)
437     boolean forceToForegroundOnDialog();
438
439     /**
440      * True if iTunes will force itself to be the foreground application when it displays a dialog.
441      */

442     @VTID(74)
443     void forceToForegroundOnDialog(
444         boolean forceToForegroundOnDialog);
445
446     /**
447      * Create a new EQ preset.
448      */

449     @VTID(75)
450     IITEQPreset createEQPreset(
451         java.lang.String JavaDoc eqPresetName);
452
453     /**
454      * Creates a new playlist in an existing source.
455      */

456     @VTID(76)
457     IITPlaylist createPlaylistInSource(
458         java.lang.String JavaDoc playlistName,
459         java.lang.Object JavaDoc iSource);
460
461         /**
462          * Simulate click on a player control button.
463          */

464         @VTID(78)
465         void playerButtonClicked(
466             ITPlayerButton playerButton,
467             int playerButtonModifierKeys);
468
469         /**
470          * True if the Shuffle property is writable for the specified playlist.
471          */

472         @VTID(79)
473         boolean canSetShuffle(
474             java.lang.Object JavaDoc iPlaylist);
475
476         /**
477          * True if the SongRepeat property is writable for the specified playlist.
478          */

479         @VTID(80)
480         boolean canSetSongRepeat(
481             java.lang.Object JavaDoc iPlaylist);
482
483     }
484
Popular Tags