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
00033 #include "nsISupports.idl"
00034
00035 interface nsIRDFDataSource;
00036 interface nsISimpleEnumerator;
00037 interface sbILibrary;
00038 interface sbILibraryFactory;
00039 interface sbILibraryManagerListener;
00040
00046 [scriptable, uuid(c299b8fc-7aab-4247-a2f8-0ef88b06958f)]
00047 interface sbILibraryManager : nsISupports
00048 {
00052 readonly attribute sbILibrary mainLibrary;
00053
00058 readonly attribute nsIRDFDataSource dataSource;
00059
00065 sbILibrary getLibrary(in AString aGuid);
00066
00070 nsISimpleEnumerator getLibraries();
00071
00075 nsISimpleEnumerator getStartupLibraries();
00076
00084 void registerLibrary(in sbILibrary aLibrary,
00085 in boolean aLoadAtStartup);
00086
00091 void unregisterLibrary(in sbILibrary aLibrary);
00092
00096 void setLibraryLoadsAtStartup(in sbILibrary aLibrary,
00097 in boolean aLoadAtStartup);
00098
00102 boolean getLibraryLoadsAtStartup(in sbILibrary aLibrary);
00103
00107 boolean hasLibrary(in sbILibrary aLibrary);
00108
00112 void addListener(in sbILibraryManagerListener aListener);
00113
00117 void removeListener(in sbILibraryManagerListener aListener);
00118 };
00119
00120 %{C++
00121
00122
00123
00124 #define SB_LIBRARY_MANAGER_READY_TOPIC "songbird-library-manager-ready"
00125
00126
00127
00128 #define SB_LIBRARY_MANAGER_BEFORE_SHUTDOWN_TOPIC "songbird-library-manager-before-shutdown"
00129
00130
00131
00132 #define SB_LIBRARY_MANAGER_SHUTDOWN_TOPIC "songbird-library-manager-shutdown"
00133
00134
00135
00136 #define SB_LIBRARY_MANAGER_AFTER_SHUTDOWN_TOPIC "songbird-library-manager-after-shutdown"
00137
00138 %}