ISongkick.idl
Go to the documentation of this file.
1 #include "nsISupports.idl"
2 
6 interface nsIArray;
7 interface nsISimpleEnumerator;
8 
9 [scriptable, uuid(225CFD2A-19E6-4C58-9D3A-F64BDA16D0B0)]
11 {
12  attribute boolean concertRefreshRunning;
13  attribute boolean drawingLock;
14 
15  readonly attribute string onTourImgProperty;
16  readonly attribute string onTourUrlProperty;
17  readonly attribute string progressString;
18  readonly attribute long progressPercentage;
19 
20  void startRefreshThread();
21  boolean refreshConcerts(in boolean async, in long cityID);
22  void processConcerts(in boolean async, in long cityID, in string xmlData);
23 
24  void refreshLocations();
25  void processLocations(in string xmlData);
26  boolean gotLocationInfo();
27 
28  string getArtistOnTourUrl(in string artistName);
29 
30  // Callback registration and unregistration
31  boolean hasDisplayCallback();
35  void unregisterSPSUpdater();
36 
37  // These are JSON encoding of the actual objects and should be JSON
38  // decoded before using
39  AUTF8String getLocationCountries();
40  AUTF8String getLocationStates(in long countryID);
41  AUTF8String getLocationCities(in long stateID);
42 
43  AUTF8String getCityString(in long cityID);
44  AUTF8String getLocationString(in long countryID,
45  in long stateID,
46  in long cityID);
47 
48  long getConcertCount(in boolean filterLibraryArtists,
49  in sbISongkickConcertCountCallback aCallback);
50  boolean getTourStatus(in string artistName);
51  string providerURL();
52 
54  in boolean filterLibraryArtists,
55  in sbISongkickEnumeratorCallback aCallback);
56 
58  in boolean filterLibraryArtists,
59  in sbISongkickEnumeratorCallback aCallback);
60 };
61 
62 [scriptable, uuid(0EDDBF3C-518F-4805-B180-E451B222B23D)]
64 {
65  void onEnumerationStart();
66  void onEnumerationEnd(in nsISimpleEnumerator aResultsEnum);
67 };
68 
69 [scriptable, uuid(AF805F5C-BD1B-4AFB-B342-E22B0424125A)]
71 {
72  void onConcertCountEnd(in long aConcertCount);
73 };
74 
75 [scriptable, function, uuid(c1b63620-4d41-11dd-ae16-0800200c9a66)]
77 {
78  void uiCallback();
79 };
80 
81 [scriptable, uuid(181E17DC-9BDB-43A7-BB9D-0AD12D9DE8F1)]
83 {
84  readonly attribute AString artistname;
85  readonly attribute AString artisturl;
86  readonly attribute AString id;
87  readonly attribute AString ts;
88  readonly attribute AString venue;
89  readonly attribute AString city;
90  readonly attribute AString title;
91  readonly attribute AString url;
92  readonly attribute AString venueURL;
93  readonly attribute AString tickets;
94  readonly attribute nsIArray artistsConcertInfo;
95  readonly attribute AString libartist;
96 };
97 
98 [scriptable, uuid(C98E8B50-2995-4EDC-9D2D-9AD27735253C)]
100 {
101  readonly attribute AString artistname;
102  readonly attribute AString artisturl;
103 };
104 
105 [scriptable, uuid(CDA19347-CE2A-4D7B-B4F5-74812015CDE8)]
107 {
108  readonly attribute AString name;
109  readonly attribute AString id;
110  readonly attribute AString key;
111 };
112 
113 
114 /*******************************************************************************
115  * Semi-private service
116  ******************************************************************************/
117 [scriptable, uuid(2E47F4F4-B057-4EB5-AB7D-72D9F37B9DFD)]
119 {
120  readonly attribute boolean hasLocationInfo;
121 
122  readonly attribute nsIArray locationCountries;
123 
124  // This will allow us to reload the Database location info (when we refresh
125  // from the server).
126  void reloadLocationInfo();
127 
128  nsIArray getLocationStates(in AString aCountry);
129 
130  nsIArray getLocationCities(in AString aState);
131 
132  void startAristConcertLookup(in boolean aFilter,
133  in sbISongkickEnumeratorCallback aCallback);
134 
135  void startConcertLookup(in AString aSort,
136  in boolean aFilter,
137  in sbISongkickEnumeratorCallback aCallback);
138 
139  void startConcertCountLookup(in boolean aFilter,
140  in boolean aGroupByArtist,
141  in AString aDateProperty,
142  in AString aCeilingProperty,
143  in sbISongkickConcertCountCallback aCallback);
144 };
145 
void unregisterDisplayCallback()
readonly attribute long progressPercentage
Definition: ISongkick.idl:18
void onEnumerationEnd(in nsISimpleEnumerator aResultsEnum)
attribute boolean drawingLock
Definition: ISongkick.idl:13
void refreshLocations()
readonly attribute AString artisturl
Definition: ISongkick.idl:85
readonly attribute AString libartist
Definition: ISongkick.idl:95
readonly attribute AString venue
Definition: ISongkick.idl:88
void startAristConcertLookup(in boolean aFilter, in sbISongkickEnumeratorCallback aCallback)
string providerURL()
nsISimpleEnumerator artistConcertEnumerator(in boolean filterLibraryArtists, in sbISongkickEnumeratorCallback aCallback)
readonly attribute nsIArray locationCountries
Definition: ISongkick.idl:122
readonly attribute AString city
Definition: ISongkick.idl:89
boolean gotLocationInfo()
#define F(a)
void processConcerts(in boolean async, in long cityID, in string xmlData)
nsIArray getLocationStates(in AString aCountry)
readonly attribute AString artistname
Definition: ISongkick.idl:84
boolean refreshConcerts(in boolean async, in long cityID)
readonly attribute nsIArray artistsConcertInfo
Definition: ISongkick.idl:94
void startRefreshThread()
var uuid
AUTF8String getCityString(in long cityID)
AUTF8String getLocationCountries()
readonly attribute AString tickets
Definition: ISongkick.idl:93
string getArtistOnTourUrl(in string artistName)
nsISimpleEnumerator concertEnumerator(in string sort, in boolean filterLibraryArtists, in sbISongkickEnumeratorCallback aCallback)
nsIArray getLocationCities(in AString aState)
long getConcertCount(in boolean filterLibraryArtists, in sbISongkickConcertCountCallback aCallback)
AUTF8String getLocationCities(in long stateID)
readonly attribute AString url
Definition: ISongkick.idl:91
readonly attribute string onTourUrlProperty
Definition: ISongkick.idl:16
boolean registerDisplayCallback(in sbISongkickDisplayCallback callback)
boolean getTourStatus(in string artistName)
AUTF8String getLocationString(in long countryID, in long stateID, in long cityID)
readonly attribute AString artisturl
Definition: ISongkick.idl:102
readonly attribute AString artistname
Definition: ISongkick.idl:101
readonly attribute AString name
Definition: ISongkick.idl:108
readonly attribute AString title
Definition: ISongkick.idl:90
grep callback
readonly attribute AString id
Definition: ISongkick.idl:86
void startConcertCountLookup(in boolean aFilter, in boolean aGroupByArtist, in AString aDateProperty, in AString aCeilingProperty, in sbISongkickConcertCountCallback aCallback)
readonly attribute string progressString
Definition: ISongkick.idl:17
readonly attribute AString id
Definition: ISongkick.idl:109
void processLocations(in string xmlData)
AUTF8String getLocationStates(in long countryID)
readonly attribute AString key
Definition: ISongkick.idl:110
readonly attribute AString ts
Definition: ISongkick.idl:87
readonly attribute string onTourImgProperty
Definition: ISongkick.idl:15
readonly attribute boolean hasLocationInfo
Definition: ISongkick.idl:120
readonly attribute AString venueURL
Definition: ISongkick.idl:92
boolean hasDisplayCallback()
void onConcertCountEnd(in long aConcertCount)
void startConcertLookup(in AString aSort, in boolean aFilter, in sbISongkickEnumeratorCallback aCallback)
boolean registerSPSUpdater(in sbISongkickDisplayCallback callback)
void unregisterSPSUpdater()
restoreWindow aState
attribute boolean concertRefreshRunning
Definition: ISongkick.idl:12