00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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