Songbird / Development / Songbird Add-Ons API Documentation

components/devicesobsolete/download/public/sbIDownloadDevice.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(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 
00033 #include "nsISupports.idl"
00034 #include "sbIDeviceBase.idl"
00035 
00036 interface sbIMediaItem;
00037 interface sbIMediaList;
00038 interface nsIFile;
00039 interface nsISimpleEnumerator;
00040 
00050 [scriptable, uuid(bf8a7663-0c07-4fc6-8d89-aa3024b42e9a)]
00051 interface sbIDownloadDevice : sbIDeviceBase
00052 {
00056   readonly attribute sbIMediaList downloadMediaList;
00057 
00061   readonly attribute unsigned long completedItemCount;
00062 
00066   void clearCompletedItems();
00067 };
00068 
00069 [scriptable, uuid(28ebcce9-7ce4-4e92-8c23-c0a23d3a3bd4)]
00070 interface sbIDownloadDeviceHelper : nsISupports
00071 {
00076   sbIMediaList getDownloadMediaList();
00077   nsIFile getDownloadFolder();
00078   nsIFile getDefaultMusicFolder();
00079 
00080   void downloadItem(in sbIMediaItem aMediaItem);
00081 
00082   void downloadSome(in nsISimpleEnumerator aMediaItems);
00083 
00084   void downloadAll(in sbIMediaList aMediaList);
00085 };

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