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

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 
00027 #include "nsISupports.idl"
00028 
00029 #include "nsIProgressEventSink.idl"
00030 #include "nsIPrompt.idl"
00031 #include "nsIAuthPrompt.idl"
00032 
00033 [scriptable, uuid(3FE9E285-F0F8-4154-9C21-8B6E4B8EFA93)]
00034 interface sbIPlaylistWriterListener : nsIProgressEventSink
00035 {
00036 };
00037 
00038 [scriptable, uuid(27B68B9B-E471-4367-B159-63B65C581847)]
00039 interface sbIPlaylistWriter : nsISupports
00040 {
00047   PRBool write(in AString aGUID, 
00048                in AString aDestTable, 
00049                in PRBool aReplace, 
00050                out PRInt32 aErrorCode);
00051 
00058   PRInt32 vote(in AString aURL);
00059 
00066   AString name();
00067 
00074   AString description();
00075   
00082   void supportedMIMETypes(out PRUint32 aMIMECount, 
00083     [array, size_is (aMIMECount), retval] out wstring aMIMETypes);
00084 
00091   void supportedFileExtensions(out PRUint32 aExtCount, 
00092     [array, size_is (aExtCount), retval] out wstring aExts);
00093 };
00094 
00101 [scriptable, uuid(CB6A505E-D8CB-4711-A50F-38439561C6D0)]
00102 interface sbIPlaylistWriterManager : nsISupports
00103 {
00110   PRInt32 write(in AString aGUID, 
00111     in AString aName, 
00112     in AString aOutputContentType,
00113     in sbIPlaylistWriterListener aWriterListener);
00114 
00121   void supportedMIMETypes(out PRUint32 aMIMECount, 
00122     [array, size_is (aMIMECount), retval] out wstring aMIMETypes);
00123 
00130   void supportedFileExtensions(out PRUint32 aExtCount, 
00131     [array, size_is (aExtCount), retval] out wstring aExts);
00132 };

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