KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > iTunes > def > IITTrack


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

9 @IID("{4CB0915D-1E54-4727-BAF3-CE6CC9A225A1}")
10 public interface IITTrack extends IITObject {
11     /**
12      * Delete this track.
13      */

14     @VTID(15)
15     void delete();
16
17     /**
18      * Start playing this track.
19      */

20     @VTID(16)
21     void play();
22
23     /**
24      * Add artwork from an image file to this track.
25      */

26     @VTID(17)
27     IITArtwork addArtworkFromFile(
28         java.lang.String JavaDoc filePath);
29
30     /**
31      * The track kind.
32      */

33     @VTID(18)
34     ITTrackKind kind();
35
36     /**
37      * The playlist that contains this track.
38      */

39     @VTID(19)
40     IITPlaylist playlist();
41
42     /**
43      * The album containing the track.
44      */

45     @VTID(20)
46     java.lang.String JavaDoc album();
47
48     /**
49      * The album containing the track.
50      */

51     @VTID(21)
52     void album(
53         java.lang.String JavaDoc album);
54
55     /**
56      * The artist/source of the track.
57      */

58     @VTID(22)
59     java.lang.String JavaDoc artist();
60
61     /**
62      * The artist/source of the track.
63      */

64     @VTID(23)
65     void artist(
66         java.lang.String JavaDoc artist);
67
68     /**
69      * The bit rate of the track (in kbps).
70      */

71     @VTID(24)
72     int bitRate();
73
74     /**
75      * The tempo of the track (in beats per minute).
76      */

77     @VTID(25)
78     int bPM();
79
80     /**
81      * The tempo of the track (in beats per minute).
82      */

83     @VTID(26)
84     void bPM(
85         int beatsPerMinute);
86
87     /**
88      * Freeform notes about the track.
89      */

90     @VTID(27)
91     java.lang.String JavaDoc comment();
92
93     /**
94      * Freeform notes about the track.
95      */

96     @VTID(28)
97     void comment(
98         java.lang.String JavaDoc comment);
99
100     /**
101      * True if this track is from a compilation album.
102      */

103     @VTID(29)
104     boolean compilation();
105
106     /**
107      * True if this track is from a compilation album.
108      */

109     @VTID(30)
110     void compilation(
111         boolean isCompilation);
112
113     /**
114      * The composer of the track.
115      */

116     @VTID(31)
117     java.lang.String JavaDoc composer();
118
119     /**
120      * The composer of the track.
121      */

122     @VTID(32)
123     void composer(
124         java.lang.String JavaDoc composer);
125
126     /**
127      * The date the track was added to the playlist.
128      */

129     @VTID(33)
130     java.util.Date JavaDoc dateAdded();
131
132     /**
133      * The total number of discs in the source album.
134      */

135     @VTID(34)
136     int discCount();
137
138     /**
139      * The total number of discs in the source album.
140      */

141     @VTID(35)
142     void discCount(
143         int discCount);
144
145     /**
146      * The index of the disc containing the track on the source album.
147      */

148     @VTID(36)
149     int discNumber();
150
151     /**
152      * The index of the disc containing the track on the source album.
153      */

154     @VTID(37)
155     void discNumber(
156         int discNumber);
157
158     /**
159      * The length of the track (in seconds).
160      */

161     @VTID(38)
162     int duration();
163
164     /**
165      * True if the track is checked for playback.
166      */

167     @VTID(39)
168     boolean enabled();
169
170     /**
171      * True if the track is checked for playback.
172      */

173     @VTID(40)
174     void enabled(
175         boolean isEnabled);
176
177     /**
178      * The name of the EQ preset of the track.
179      */

180     @VTID(41)
181     java.lang.String JavaDoc eQ();
182
183     /**
184      * The name of the EQ preset of the track.
185      */

186     @VTID(42)
187     void eQ(
188         java.lang.String JavaDoc eQ);
189
190     /**
191      * The stop time of the track (in seconds).
192      */

193     @VTID(43)
194     void finish(
195         int finish);
196
197     /**
198      * The stop time of the track (in seconds).
199      */

200     @VTID(44)
201     int finish();
202
203     /**
204      * The music/audio genre (category) of the track.
205      */

206     @VTID(45)
207     java.lang.String JavaDoc genre();
208
209     /**
210      * The music/audio genre (category) of the track.
211      */

212     @VTID(46)
213     void genre(
214         java.lang.String JavaDoc genre);
215
216     /**
217      * The grouping (piece) of the track. Generally used to denote movements within classical work.
218      */

219     @VTID(47)
220     java.lang.String JavaDoc grouping();
221
222     /**
223      * The grouping (piece) of the track. Generally used to denote movements within classical work.
224      */

225     @VTID(48)
226     void grouping(
227         java.lang.String JavaDoc grouping);
228
229     /**
230      * A text description of the track.
231      */

232     @VTID(49)
233     java.lang.String JavaDoc kindAsString();
234
235     /**
236      * The modification date of the content of the track.
237      */

238     @VTID(50)
239     java.util.Date JavaDoc modificationDate();
240
241     /**
242      * The number of times the track has been played.
243      */

244     @VTID(51)
245     int playedCount();
246
247     /**
248      * The number of times the track has been played.
249      */

250     @VTID(52)
251     void playedCount(
252         int playedCount);
253
254     /**
255      * The date and time the track was last played. A value of zero means no played date.
256      */

257     @VTID(53)
258     java.util.Date JavaDoc playedDate();
259
260     /**
261      * The date and time the track was last played. A value of zero means no played date.
262      */

263     @VTID(54)
264     void playedDate(
265         java.util.Date JavaDoc playedDate);
266
267     /**
268      * The play order index of the track in the owner playlist (1-based).
269      */

270     @VTID(55)
271     int playOrderIndex();
272
273     /**
274      * The user rating of the track (0 to 100).
275      */

276     @VTID(56)
277     int rating();
278
279     /**
280      * The user rating of the track (0 to 100).
281      */

282     @VTID(57)
283     void rating(
284         int rating);
285
286     /**
287      * The sample rate of the track (in Hz).
288      */

289     @VTID(58)
290     int sampleRate();
291
292     /**
293      * The size of the track (in bytes).
294      */

295     @VTID(59)
296     int size();
297
298     /**
299      * The start time of the track (in seconds).
300      */

301     @VTID(60)
302     int start();
303
304     /**
305      * The start time of the track (in seconds).
306      */

307     @VTID(61)
308     void start(
309         int start);
310
311     /**
312      * The length of the track (in MM:SS format).
313      */

314     @VTID(62)
315     java.lang.String JavaDoc time();
316
317     /**
318      * The total number of tracks on the source album.
319      */

320     @VTID(63)
321     int trackCount();
322
323     /**
324      * The total number of tracks on the source album.
325      */

326     @VTID(64)
327     void trackCount(
328         int trackCount);
329
330     /**
331      * The index of the track on the source album.
332      */

333     @VTID(65)
334     int trackNumber();
335
336     /**
337      * The index of the track on the source album.
338      */

339     @VTID(66)
340     void trackNumber(
341         int trackNumber);
342
343     /**
344      * The relative volume adjustment of the track (-100% to 100%).
345      */

346     @VTID(67)
347     int volumeAdjustment();
348
349     /**
350      * The relative volume adjustment of the track (-100% to 100%).
351      */

352     @VTID(68)
353     void volumeAdjustment(
354         int volumeAdjustment);
355
356     /**
357      * The year the track was recorded/released.
358      */

359     @VTID(69)
360     int year();
361
362     /**
363      * The year the track was recorded/released.
364      */

365     @VTID(70)
366     void year(
367         int year);
368
369     /**
370      * Returns a collection of artwork.
371      */

372     @VTID(71)
373     IITArtworkCollection artwork();
374
375 }
376
Popular Tags