Songbird / Development / Songbird Add-Ons API Documentation

components/library/localdatabase/public/sbILocalDatabaseAsyncGUIDArray.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 
00031 #include "nsISupports.idl"
00032 #include "sbILocalDatabaseGUIDArray.idl"
00033 
00038 [scriptable, uuid(08af2324-3aa1-4162-9da3-caa4169247ca)]
00039 interface sbILocalDatabaseAsyncGUIDArrayListener : nsISupports
00040 {
00041   void onGetLength(in unsigned long aLength,
00042                    in nsresult aResult);
00043 
00044   void onGetGuidByIndex(in unsigned long aIndex,
00045                         in AString aGUID,
00046                         in nsresult aResult);
00047 
00048   void onGetSortPropertyValueByIndex(in unsigned long aIndex,
00049                                      in AString aPropertySortValue,
00050                                      in nsresult aResult);
00051 
00052   void onGetMediaItemIdByIndex(in unsigned long aIndex,
00053                                in unsigned long aMediaItemId,
00054                                in nsresult aResult);
00055 
00056   const unsigned long STATE_BUSY = 0x00000001;
00057   const unsigned long STATE_IDLE = 0x00000002;
00058 
00059   void onStateChange(in unsigned long aState);
00060 };
00061 
00068 [scriptable, uuid(b1e017b3-6417-4f37-9685-3d3a09efbe99)]
00069 interface sbILocalDatabaseAsyncGUIDArray : sbILocalDatabaseGUIDArray
00070 {
00071   void addAsyncListener(in sbILocalDatabaseAsyncGUIDArrayListener aListener);
00072 
00073   void removeAsyncListener(in sbILocalDatabaseAsyncGUIDArrayListener aListener);
00074 
00075   void getLengthAsync();
00076 
00077   void getGuidByIndexAsync(in unsigned long aIndex);
00078 
00079   void getSortPropertyValueByIndexAsync(in unsigned long aIndex);
00080 
00081   void getMediaItemIdByIndexAsync(in unsigned long aIndex);
00082 
00083   sbILocalDatabaseAsyncGUIDArray cloneAsyncArray();
00084 };
00085 

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