sbIDeviceLibrarySyncDiff.idl
Go to the documentation of this file.
1 /*
2  *=BEGIN SONGBIRD GPL
3  *
4  * This file is part of the Songbird web player.
5  *
6  * Copyright(c) 2005-2011 POTI, Inc.
7  * http://www.songbirdnest.com
8  *
9  * This file may be licensed under the terms of of the
10  * GNU General Public License Version 2 (the ``GPL'').
11  *
12  * Software distributed under the License is distributed
13  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
14  * express or implied. See the GPL for the specific language
15  * governing rights and limitations.
16  *
17  * You should have received a copy of the GPL along with this
18  * program. If not, go to http://www.gnu.org/licenses/gpl.html
19  * or write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *=END SONGBIRD GPL
23  */
24 
25 #include "nsISupports.idl"
26 
27 interface sbILibrary;
28 interface sbILibraryChangeset;
29 interface sbIMediaList;
30 interface nsIArray;
31 
32 [scriptable, uuid(f26d3ef1-3d94-4c3e-a5b9-26a29cf92f03)]
34 {
35  // We might add others here later (e.g. still images) - but not for now.
36  const unsigned long SYNC_TYPE_AUDIO = 1<<0;
37  const unsigned long SYNC_TYPE_VIDEO = 1<<1;
38 
79  void generateSyncLists(in unsigned long aMediaTypesToExportAll,
80  in unsigned long aMediaTypesToImportAll,
81  in sbILibrary aSourceLibrary,
82  in sbILibrary aDestLibrary,
83  in nsIArray aSourceLists,
84  out sbILibraryChangeset aExportChangeset,
85  out sbILibraryChangeset aImportChangeset);
86 
104  void generateDropLists(in sbILibrary aSourceLibrary,
105  in sbILibrary aDestLibrary,
106  in sbIMediaList aSourceList,
107  in nsIArray aSourceItems,
108  out nsIArray aDestItems,
109  out sbILibraryChangeset aChangeset);
110 };
111 
112 %{C++
113 #define SONGBIRD_DEVICELIBRARYSYNCDIFF_DESCRIPTION \
114  "Songbird Device Sync Diff Generator"
115 #define SONGBIRD_DEVICELIBRARYSYNCDIFF_CONTRACTID \
116  "@songbirdnest.com/Songbird/Device/DeviceLibrarySyncDiff;1"
117 #define SONGBIRD_DEVICELIBRARYSYNCDIFF_CLASSNAME \
118  "Songbird Device Sync Diff"
119 #define SONGBIRD_DEVICELIBRARYSYNCDIFF_CID \
120 { /* e5060de5-9fa9-4cad-b7db-4c42243d9c6f */ \
121  0xe5060de5, \
122  0x9fa9, \
123  0x4cad, \
124  {0xb7, 0xdb, 0x4c, 0x42, 0x24, 0x3d, 0x9c, 0x6f} \
125 }
126 %}
127 
128 
var uuid
A brief description of the contents of this interface.
function C(H)
Media library abstraction.
Definition: sbILibrary.idl:82
void generateSyncLists(in unsigned long aMediaTypesToExportAll, in unsigned long aMediaTypesToImportAll, in sbILibrary aSourceLibrary, in sbILibrary aDestLibrary, in nsIArray aSourceLists, out sbILibraryChangeset aExportChangeset, out sbILibraryChangeset aImportChangeset)
void generateDropLists(in sbILibrary aSourceLibrary, in sbILibrary aDestLibrary, in sbIMediaList aSourceList, in nsIArray aSourceItems, out nsIArray aDestItems, out sbILibraryChangeset aChangeset)