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
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #include "nsISupports.idl"
00038
00039
00047 [scriptable, uuid(D2CC37F4-A5DB-4226-966F-C51A9AE5686F)]
00048 interface sbILibraryImporterListener : nsISupports
00049 {
00059 void onLibraryChanged(
00060 in AString aLibFilePath,
00061 in AString aGUID);
00062
00063
00069 void onImportError();
00070
00071
00081 void onNonExistentMedia(
00082 in unsigned long aNonExistentMediaCount,
00083 in unsigned long aTrackCount);
00084
00085
00091 void onUnsupportedMedia();
00092
00093
00108 AString onDirtyPlaylist(
00109 in AString aPlaylistName,
00110 out boolean aApplyAll);
00111 };
00112
00113
00121 interface sbIJobProgress;
00122
00123 [scriptable, uuid(04E3F8E9-70F4-4129-9A74-CEC88A8AEE93)]
00124 interface sbILibraryImporter : nsISupports
00125 {
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140 readonly attribute AString libraryType;
00141 readonly attribute AString libraryReadableType;
00142 readonly attribute AString libraryDefaultFileName;
00143 readonly attribute AString libraryDefaultFilePath;
00144 readonly attribute AString libraryFileExtensionList;
00145 readonly attribute boolean libraryPreviouslyImported;
00146 readonly attribute AString libraryPreviousImportPath;
00147
00148
00153 void initialize();
00154
00155
00160 void finalize();
00161
00162
00174 sbIJobProgress import(
00175 in AString aLibFilePath,
00176 in AString aGUID,
00177 in boolean aCheckForChanges);
00178
00179
00186 void setListener(
00187 in sbILibraryImporterListener aListener);
00188 };
00189
00190
00203 [scriptable, uuid(81c027cd-1c4d-42d7-8b70-134cba5175a1)]
00204 interface sbILibraryImporterManager : nsISupports
00205 {
00210 attribute sbILibraryImporter defaultLibraryImporter;
00211 };
00212
00213