C:/projects/songbird/components/medialibrary/public/sbIPlaylistReader.idl

Go to the documentation of this file.
00001 /*
00002  //
00003 // BEGIN SONGBIRD GPL
00004 // 
00005 // This file is part of the Songbird web player.
00006 //
00007 // Copyright© 2006 POTI, Inc.
00008 // http://songbirdnest.com
00009 // 
00010 // This file may be licensed under the terms of of the
00011 // GNU General Public License Version 2 (the “GPL”).
00012 // 
00013 // Software distributed under the License is distributed 
00014 // on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either 
00015 // express or implied. See the GPL for the specific language 
00016 // governing rights and limitations.
00017 //
00018 // You should have received a copy of the GPL along with this 
00019 // program. If not, go to http://www.gnu.org/licenses/gpl.html
00020 // or write to the Free Software Foundation, Inc., 
00021 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00022 // 
00023 // END SONGBIRD GPL
00024 //
00025  */
00026 
00034 #include "nsISupports.idl"
00035 
00036 #include "nsIArray.idl"
00037 #include "nsIWebProgressListener.idl"
00038 
00045 [scriptable, uuid(5770099E-503B-4b76-B1A6-0BC53F53D2BF)]
00046 interface sbIPlaylistReaderListener : nsIWebProgressListener
00047 {
00054   attribute AString originalURL;
00055 
00062   attribute AString serviceGuid;
00063 
00070   attribute AString destinationURL;
00071 
00078   attribute AString destinationTable;
00079 
00086   attribute AString readableName;
00087 
00094   attribute AString playlistType;
00095 
00102   attribute AString description;
00103 
00110   attribute PRBool  appendOrReplace;
00111 };
00112 
00119 [scriptable, uuid(43005B48-8138-424d-AA12-FE604BA3A3E8)]
00120 interface sbIPlaylistReader : nsISupports
00121 {
00128   attribute AString originalURL;
00129 
00136   PRBool read(in AString aURL, 
00137     in AString aGUID, 
00138     in AString aDestTable, 
00139     in PRBool aReplace, 
00140     out PRInt32 aErrorCode);
00141 
00148   PRInt32 vote(in AString aURL);
00149 
00156   AString name();
00157 
00164   AString description();
00165   
00172   void supportedMIMETypes(out PRUint32 aMIMECount, 
00173     [array, size_is (aMIMECount), retval] out wstring aMIMETypes);
00174 
00181   void supportedFileExtensions(out PRUint32 aExtCount, 
00182     [array, size_is (aExtCount), retval] out wstring aExts);
00183 };
00184 
00191 [scriptable, uuid(18032AD6-CB1F-403d-B3F5-7FE8EB579C28)]
00192 interface sbIPlaylistReaderManager : nsISupports
00193 {
00200   attribute AString originalURL;
00201 
00208   PRInt32 autoLoad(in AString aURL, 
00209     in AString aGUID, 
00210     in AString aReadableName, 
00211     in AString aPlaylistType, 
00212     in AString aDescription, 
00213     in AString aContentType, 
00214     in sbIPlaylistReaderListener aPlaylistReaderListener);
00215   
00222   PRInt32 loadPlaylist(in AString aURL, 
00223     in AString aGUID, 
00224     in AString aUniqueName, 
00225     in AString aReadableName, 
00226     in AString aPlaylistType, 
00227     in AString aDescription, 
00228     in AString aContentType, 
00229     in PRBool aAppendOrReplace, 
00230     in sbIPlaylistReaderListener aPlaylistReaderListener);
00231 
00238   PRInt32 read(in AString aFile, 
00239     in AString aGUID, 
00240     in AString aName, 
00241     in AString aReadableName, 
00242     in AString aContentType, 
00243     in PRBool aAppendOrReplace);
00244 
00251   void supportedMIMETypes(out PRUint32 aMIMECount, 
00252     [array, size_is (aMIMECount), retval] out wstring aMIMETypes);
00253 
00260   void supportedFileExtensions(out PRUint32 aExtCount, 
00261     [array, size_is (aExtCount), retval] out wstring aExts);
00262 };

Generated on Mon Aug 21 21:01:55 2006 for Songbird by  doxygen 1.4.7