sbLocalDatabaseDynamicMediaListFactory.cpp
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set sw=2 :miv */
3 /*
4 //
5 // BEGIN SONGBIRD GPL
6 //
7 // This file is part of the Songbird web player.
8 //
9 // Copyright(c) 2005-2009 POTI, Inc.
10 // http://songbirdnest.com
11 //
12 // This file may be licensed under the terms of of the
13 // GNU General Public License Version 2 (the "GPL").
14 //
15 // Software distributed under the License is distributed
16 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
17 // express or implied. See the GPL for the specific language
18 // governing rights and limitations.
19 //
20 // You should have received a copy of the GPL along with this
21 // program. If not, go to http://www.gnu.org/licenses/gpl.html
22 // or write to the Free Software Foundation, Inc.,
23 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 // END SONGBIRD GPL
26 //
27 */
28 
34 //------------------------------------------------------------------------------
35 //
36 // Songbird dynamic media list factory imported services.
37 //
38 //------------------------------------------------------------------------------
39 
40 // Self imports.
42 
43 // Local imports.
44 #include "sbLocalDatabaseCID.h"
46 
47 
48 //------------------------------------------------------------------------------
49 //
50 // Songbird dynamic media list factory nsISupports implementation.
51 //
52 //------------------------------------------------------------------------------
53 
55 
56 
57 //------------------------------------------------------------------------------
58 //
59 // Songbird dynamic media list factory sbIMediaListFactory implementation.
60 //
61 //------------------------------------------------------------------------------
62 
63 
72 NS_IMETHODIMP
74  sbIMediaList** _retval)
75 {
76  return sbLocalDatabaseDynamicMediaList::New(aInner, _retval);
77 }
78 
79 
80 //
81 // Getters/setters.
82 //
83 
89 NS_IMETHODIMP
90 sbLocalDatabaseDynamicMediaListFactory::GetType(nsAString& aType)
91 {
92  aType.Assign(NS_LITERAL_STRING("dynamic"));
93  return NS_OK;
94 }
95 
96 
102 NS_IMETHODIMP
103 sbLocalDatabaseDynamicMediaListFactory::GetContractID(nsACString& aContractID)
104 {
106  return NS_OK;
107 }
108 
109 
return NS_OK
static nsresult New(sbIMediaItem *aInner, sbIMediaList **aMediaList)
NS_IMPL_ISUPPORTS1(sbDeviceCapabilitiesUtils, sbIDeviceCapabilitiesUtils) sbDeviceCapabilitiesUtils
Songbird Local Database Dynamic Media List Factory Definitions.
Factory for new media list instances.
A brief description of the contents of this interface.
Songbird Local Database Dynamic Media List Definitions.
Interface that defines a single item of media in the system.
#define SB_LOCALDATABASE_DYNAMICMEDIALISTFACTORY_CONTRACTID