Songbird / Development / Songbird Add-Ons API Documentation

components/mediaimport/directory/public/sbIDirectoryImportService.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 interface sbIMediaItem;
00030 interface sbIMediaList;
00031 interface nsIArray;
00032 interface nsISimpleEnumerator;
00033 interface sbIJobProgress;
00034 
00042 [scriptable, uuid(6b029f20-cadd-11dd-ad8b-0800200c9a66)]
00043 interface sbIDirectoryImportJob : nsISupports
00044 {
00050   readonly attribute unsigned long totalAddedToMediaList;
00051 
00055   readonly attribute unsigned long totalAddedToLibrary;
00056 
00060   readonly attribute unsigned long totalDuplicates;
00061 
00066   nsISimpleEnumerator enumerateAllItems();
00067 
00071   readonly attribute sbIMediaList targetMediaList;
00072 
00076   readonly attribute unsigned long targetIndex;
00077 };
00078 
00079 
00085 [scriptable, uuid(13ab5520-449e-11dd-ae16-0800200c9a66)]
00086 interface sbIDirectoryImportService : nsISupports
00087 {
00088 
00099   sbIDirectoryImportJob import(in nsIArray aDirectories,
00100                                [optional] in sbIMediaList aTargetMediaList,
00101                                [optional] in PRInt32 aTargetIndex);
00102 };
00103 
00104 

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