sbLibraryManagerModule.cpp
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-2010 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 
30 #include <nsIGenericFactory.h>
31 #include "sbLibraryCID.h"
32 #include "sbLibraryConstraints.h"
33 #include "sbLibraryManager.h"
36 #include "sbMediaListViewMap.h"
38 #include "sbMediaItemWatcher.h"
39 #include "sbTemporaryMediaItem.h"
40 
51 
52 static nsModuleComponentInfo components[] =
53 {
54  {
58  sbLibraryConstraintConstructor
59  },
60  {
64  sbLibraryConstraintBuilderConstructor
65  },
66  {
70  sbLibraryManagerConstructor,
72  },
73  {
77  sbLibrarySortConstructor
78  },
79  {
83  sbMediaListDuplicateFilterConstructor
84  },
85  {
89  sbMediaListEnumeratorWrapperConstructor
90  },
91  {
95  sbMediaListViewMapConstructor,
97  },
98  {
102  sbMediaItemWatcherConstructor
103  },
104  {
108  sbTemporaryMediaItemConstructor
109  },
110  {
114  sbMediaItemControllerCleanupConstructor,
116  }
117 };
118 
119 NS_IMPL_NSGETMODULE(SongbirdLibraryManager, components)
#define SONGBIRD_MEDIALISTENUMERATORWRAPPER_CID
Definition: sbLibraryCID.h:92
#define SONGBIRD_LIBRARYMANAGER_CLASSNAME
Definition: sbLibraryCID.h:30
#define SONGBIRD_LIBRARY_CONSTRAINT_CONTRACTID
Definition: sbLibraryCID.h:52
#define SONGBIRD_MEDIALISTDUPLICATEFILTER_CONTRACTID
Definition: sbLibraryCID.h:76
#define SONGBIRD_MEDIALISTDUPLICATEFILTER_CLASSNAME
Definition: sbLibraryCID.h:78
#define SONGBIRD_TEMPORARYMEDIAITEM_CID
#define SONGBIRD_TEMPORARYMEDIAITEM_CONTRACTID
static NS_METHOD RegisterSelf(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
#define SONGBIRD_MEDIAITEMCONTROLLERCLEANUP_CID
#define SONGBIRD_MEDIALISTENUMERATORWRAPPER_CLASSNAME
Definition: sbLibraryCID.h:90
#define SONGBIRD_LIBRARYSORT_CONTRACTID
Definition: sbLibraryCID.h:64
Songbird Library Manager Definition.
#define SONGBIRD_LIBRARY_CONSTRAINT_CID
Definition: sbLibraryCID.h:56
#define SONGBIRD_LIBRARYSORT_CLASSNAME
Definition: sbLibraryCID.h:66
#define SONGBIRD_LIBRARY_CONSTRAINTBUILDER_CONTRACTID
Definition: sbLibraryCID.h:40
Songbird Temporary Media Item Definitions.
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(sbLibraryManager, Init)
#define SONGBIRD_MEDIAITEMCONTROLLERCLEANUP_CONTRACTID
static nsModuleComponentInfo components[]
#define SONGBIRD_MEDIAITEMWATCHER_CONTRACTID
#define SONGBIRD_MEDIALISTVIEWMAP_CLASSNAME
#define SONGBIRD_MEDIALISTENUMERATORWRAPPER_CONTRACTID
Definition: sbLibraryCID.h:88
function Init()
#define SONGBIRD_MEDIAITEMCONTROLLERCLEANUP_CLASSNAME
The enumerator wrapper is used to set downloadStatusTarget when adding / inserting items from one med...
#define SONGBIRD_LIBRARYMANAGER_CID
Definition: sbLibraryCID.h:32
A component used to automatically hide items that require media item controllers which are no longer ...
#define SONGBIRD_MEDIALISTVIEWMAP_CID
#define SONGBIRD_MEDIAITEMWATCHER_CID
NS_IMPL_NSGETMODULE(SongbirdIdentityServiceComponent, sbIdentityServiceComponent)
#define SONGBIRD_MEDIALISTVIEWMAP_CONTRACTID
static NS_METHOD RegisterSelf(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
Songbird Media Item Watcher Definitions.
#define SONGBIRD_MEDIALISTDUPLICATEFILTER_CID
Definition: sbLibraryCID.h:80
#define SONGBIRD_LIBRARY_CONSTRAINT_CLASSNAME
Definition: sbLibraryCID.h:54
#define SONGBIRD_LIBRARYSORT_CID
Definition: sbLibraryCID.h:68
#define SONGBIRD_LIBRARY_CONSTRAINTBUILDER_CID
Definition: sbLibraryCID.h:44
#define SONGBIRD_TEMPORARYMEDIAITEM_CLASSNAME
static NS_METHOD RegisterSelf(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
#define SONGBIRD_LIBRARYMANAGER_CONTRACTID
Definition: sbLibraryCID.h:28
Songbird Library Manager Definition.
#define SONGBIRD_LIBRARY_CONSTRAINTBUILDER_CLASSNAME
Definition: sbLibraryCID.h:42
#define SONGBIRD_MEDIAITEMWATCHER_CLASSNAME
NS_GENERIC_FACTORY_CONSTRUCTOR(sbLibrarySort)