-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathipodimport.h
More file actions
executable file
·46 lines (38 loc) · 1.65 KB
/
Copy pathipodimport.h
File metadata and controls
executable file
·46 lines (38 loc) · 1.65 KB
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
/*
* ipodimport.h
* libipodimport
*
* iPod library import support library
* Created by Arpad Goretity on 24/09/2012.
*
* Licensed under the 3-clause BSD License
* (See LICENSE for furhter information)
*/
#ifndef __IPODIMPORT_H__
#define __IPODIMPORT_H__
#include <Foundation/Foundation.h>
// Metadata keys
#define kIPIKeyPath @"path" // NSString, filesystem path to the file to be imported
#define kIPIKeyTitle @"title" // NSString, title of the song
#define kIPIKeyArtist @"artist" // NSString, name of the singer/author etc...
#define kIPIKeyAlbum @"album" // NSString, title of the album
#define kIPIKeyGenre @"genre" // NSString, human-readable genre, such as Rock, Pop, Classical or Dance
#define kIPIKeyDuration @"duration" // NSNumber with `int`, duration in milliseconds
#define kIPIKeyYear @"year" // NSNumber with `int`
#define kIPIKeyMediaType @"type" // One of the kIPIMedia constants, media type, defaults to kIPIMediaSong if unspecified
// Media type keys
#define kIPIMediaSong @"song" // Song, music
#define kIPIMediaMusicVideo @"music-video" // Video
#define kIPIMediaPodcast @"podcast" // Podcast
#define kIPIMediaRingtone @"ringtone" // Ringtone
#define kIPIMediaSoftware @"software" // ??? AppStore application ???
#define kIPIMediaDocument @"document" // ???
#define kIPIMediaITunesU @"itunes-u" // iTunes U piece
#define kIPIMediaBook @"book" // Book
#define kIPIMediaEBook @"ebook" // E-Book
#define kIPIMediaTVEpisode @"tv-episode" // TV episode
@interface IPIPodImporter: NSObject
+ (IPIPodImporter *)sharedInstance;
- (void)importFileAtPath:(NSString *)path withMetadata:(NSDictionary *)metadata;
@end
#endif /* __IPODIMPORT_H__ */