ImashTape.idl
Go to the documentation of this file.
1 #include "nsISupports.idl"
2 
3 interface sbIMashTapeUtils;
4 interface sbIMashTapeCallback;
5 interface nsISimpleEnumerator;
6 
7 [scriptable, function, uuid(a1b678c0-64a3-11dd-ad8b-0800200c9a66)]
9 {
10  readonly attribute string providerName;
11  readonly attribute string providerType;
12  void query(in AUTF8String searchTerms, in sbIMashTapeCallback updateFn);
13 };
14 
15 [scriptable, function, uuid(65f60210-73bc-11dd-ad8b-0800200c9a66)]
17 {
18  readonly attribute long numSections;
19  readonly attribute string providerIconBio;
20  readonly attribute string providerIconTags;
21  readonly attribute string providerIconDiscography;
22  readonly attribute string providerIconMembers;
23  readonly attribute string providerIconLinks;
24 };
25 
26 [scriptable, function, uuid(8da914c0-64a6-11dd-ad8b-0800200c9a66)]
28 {
29  readonly attribute string providerIcon;
30 };
31 
32 [scriptable, function, uuid(a414db50-64c8-11dd-ad8b-0800200c9a66)]
34 {
35  readonly attribute string providerIcon;
36 };
37 
38 [scriptable, function, uuid(c8925af0-b4e8-11dd-ad8b-0800200c9a66)]
40 {
41  readonly attribute string providerIcon;
42 };
43 
44 [scriptable, function, uuid(097ef180-b12a-11dd-ad8b-0800200c9a66)]
46 {
47  readonly attribute string providerIcon;
48  void queryFull(in AUTF8String artist, in AUTF8String album,
49  in AUTF8String track, in sbIMashTapeCallback updateFn);
50 };
51 
52 [scriptable, function, uuid(8cb80ab0-b129-11dd-ad8b-0800200c9a66)]
54 {
55  readonly attribute string tabName;
56 };
57 
58 /*******************************/
59 
60 [scriptable, function, uuid(959b2c40-68ca-11dd-ad8b-0800200c9a66)]
62 {
63 };
64 
65 [scriptable, uuid(10ADB8E6-4A7D-4789-ACDA-B0975E6F137D)]
67 {
68  readonly attribute string imageUrl;
69  readonly attribute string imageTitle;
70  readonly attribute string authorName;
71  readonly attribute string authorUrl;
72  readonly attribute unsigned long timestamp;
73 };
74 
75 [scriptable, uuid(7373b260-c584-11dd-ad8b-0800200c9a66)]
77 {
78  /* section == "photo" || "bio"
79  for "photo", data will be the URL to the image
80  for "bio", data will be the full HTML-formatted text of the bio
81  */
82  void onInfoUpdated(in AUTF8String section, in AUTF8String data);
83  void onPhotosUpdated([array, size_is(photoCount)]
84  in sbIMashTapePhoto photos, in unsigned long photoCount);
85 };
86 
87 [scriptable, function, uuid(7E991583-030F-4945-8273-A34A5B2752CF)]
89 {
90  void addListener(in sbIMashTapeListener aListener);
91  void removeListener(in sbIMashTapeListener aListener);
92 
93  void updateInfo(in AUTF8String section, in AUTF8String data);
94  void updatePhotos([array, size_is(photoCount)]
95  in sbIMashTapePhoto photos, in unsigned long photoCount);
96 };
97 
readonly attribute string providerIconLinks
Definition: ImashTape.idl:23
readonly attribute long numSections
Definition: ImashTape.idl:18
inArray array
void updatePhotos([array, size_is(photoCount)] in sbIMashTapePhoto photos, in unsigned long photoCount)
readonly attribute string providerIconBio
Definition: ImashTape.idl:19
#define F(a)
void queryFull(in AUTF8String artist, in AUTF8String album, in AUTF8String track, in sbIMashTapeCallback updateFn)
void removeListener(in sbIMashTapeListener aListener)
void updateInfo(in AUTF8String section, in AUTF8String data)
readonly attribute string providerIcon
Definition: ImashTape.idl:47
var uuid
readonly attribute string imageTitle
Definition: ImashTape.idl:69
readonly attribute string providerType
Definition: ImashTape.idl:11
readonly attribute string authorUrl
Definition: ImashTape.idl:71
readonly attribute string tabName
Definition: ImashTape.idl:55
void query(in AUTF8String searchTerms, in sbIMashTapeCallback updateFn)
readonly attribute string providerIconMembers
Definition: ImashTape.idl:22
var getService(Components.interfaces.nsIWindowMediator).getMostRecentWindow('Songbird SBProperties artist
Definition: tuner2.js:40
readonly attribute string providerName
Definition: ImashTape.idl:10
readonly attribute string providerIcon
Definition: ImashTape.idl:41
readonly attribute string providerIconTags
Definition: ImashTape.idl:20
readonly attribute string providerIcon
Definition: ImashTape.idl:35
readonly attribute unsigned long timestamp
Definition: ImashTape.idl:72
readonly attribute string providerIcon
Definition: ImashTape.idl:29
readonly attribute string authorName
Definition: ImashTape.idl:70
void addListener(in sbIMashTapeListener aListener)
readonly attribute string providerIconDiscography
Definition: ImashTape.idl:21
readonly attribute string imageUrl
Definition: ImashTape.idl:68
void onPhotosUpdated([array, size_is(photoCount)] in sbIMashTapePhoto photos, in unsigned long photoCount)
observe data
Definition: FeedWriter.js:1329
void onInfoUpdated(in AUTF8String section, in AUTF8String data)