Songbird / Development / Songbird Add-Ons API Documentation

components/mediaimport/playlist/public/sbIPlaylistWriter.idl

00001 /*
00002  //
00003 // BEGIN SONGBIRD GPL
00004 // 
00005 // This file is part of the Songbird web player.
00006 //
00007 // Copyright(c) 2005-2008 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 
00037 [scriptable, uuid(3FE9E285-F0F8-4154-9C21-8B6E4B8EFA93)]
00038 interface sbIPlaylistWriterListener : nsIProgressEventSink
00039 {
00040 };
00041 
00046 [scriptable, uuid(27B68B9B-E471-4367-B159-63B65C581847)]
00047 interface sbIPlaylistWriter : nsISupports
00048 {
00049   attribute sbIPlaylistWriterListener writerListener;
00050 
00057   PRBool write(in AString aGUID, 
00058                in AString aSourcePlaylist,
00059                in AString aOutputURL,
00060                in AString aOutputContentType,
00061                out PRInt32 aErrorCode);
00062 
00069   PRInt32 vote(in AString aURL);
00070 
00077   AString name();
00078 
00085   AString description();
00086   
00093   void supportedMIMETypes(out PRUint32 aMIMECount, 
00094     [array, size_is (aMIMECount), retval] out wstring aMIMETypes);
00095 
00102   void supportedFileExtensions(out PRUint32 aExtCount, 
00103     [array, size_is (aExtCount), retval] out wstring aExts);
00104 };
00105 
00110 [scriptable, uuid(CB6A505E-D8CB-4711-A50F-38439561C6D0)]
00111 interface sbIPlaylistWriterManager : nsISupports
00112 {
00119   PRInt32 write(in AString aGUID, 
00120     in AString aName,
00121     in AString aOutputURL,
00122     in AString aOutputContentType,
00123     in sbIPlaylistWriterListener aWriterListener);
00124 
00131   void supportedMIMETypes(out PRUint32 aMIMECount, 
00132     [array, size_is (aMIMECount), retval] out wstring aMIMETypes);
00133 
00140   void supportedFileExtensions(out PRUint32 aExtCount, 
00141     [array, size_is (aExtCount), retval] out wstring aExts);
00142 };

Generated on Tue Mar 10 14:28:55 2009 for Songbird by  doxygen 1.5.2