sbILocalDatabaseAsyncGUIDArray.idl
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25 */
26 
31 #include "nsISupports.idl"
33 
38 [scriptable, uuid(08af2324-3aa1-4162-9da3-caa4169247ca)]
40 {
41  void onGetLength(in unsigned long aLength,
42  in nsresult aResult);
43 
44  void onGetGuidByIndex(in unsigned long aIndex,
45  in AString aGUID,
46  in nsresult aResult);
47 
48  void onGetSortPropertyValueByIndex(in unsigned long aIndex,
49  in AString aPropertySortValue,
50  in nsresult aResult);
51 
52  void onGetMediaItemIdByIndex(in unsigned long aIndex,
53  in unsigned long aMediaItemId,
54  in nsresult aResult);
55 
56  const unsigned long STATE_BUSY = 0x00000001;
57  const unsigned long STATE_IDLE = 0x00000002;
58 
59  void onStateChange(in unsigned long aState);
60 };
61 
68 [scriptable, uuid(b1e017b3-6417-4f37-9685-3d3a09efbe99)]
70 {
72 
74 
75  void getLengthAsync();
76 
77  void getGuidByIndexAsync(in unsigned long aIndex);
78 
79  void getSortPropertyValueByIndexAsync(in unsigned long aIndex);
80 
81  void getMediaItemIdByIndexAsync(in unsigned long aIndex);
82 
84 };
85 
[USER CODE SHOULD NOT REFERENCE THIS CLASS]
Definition of the sbILocalDatabaseGUIDArray interfaces.
void onStateChange(in unsigned long aState)
[USER CODE SHOULD NOT REFERENCE THIS CLASS]
void getGuidByIndexAsync(in unsigned long aIndex)
void getSortPropertyValueByIndexAsync(in unsigned long aIndex)
var uuid
void onGetSortPropertyValueByIndex(in unsigned long aIndex, in AString aPropertySortValue, in nsresult aResult)
void onGetLength(in unsigned long aLength, in nsresult aResult)
void onGetMediaItemIdByIndex(in unsigned long aIndex, in unsigned long aMediaItemId, in nsresult aResult)
void onGetGuidByIndex(in unsigned long aIndex, in AString aGUID, in nsresult aResult)
sbILocalDatabaseAsyncGUIDArray cloneAsyncArray()
void addAsyncListener(in sbILocalDatabaseAsyncGUIDArrayListener aListener)
[USER CODE SHOULD NOT REFERENCE THIS CLASS]
restoreWindow aState
void removeAsyncListener(in sbILocalDatabaseAsyncGUIDArrayListener aListener)
void getMediaItemIdByIndexAsync(in unsigned long aIndex)