sbTranscodeProfileAttribute.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 
26 
27 #include <nsIVariant.h>
28 
31 
33 {
34 }
35 
36 sbTranscodeProfileAttribute::~sbTranscodeProfileAttribute()
37 {
38 }
39 
40 nsresult
42 {
43  mName = aName;
44  return NS_OK;
45 }
46 
47 nsresult
49 {
50  mValue = aValue;
51  return NS_OK;
52 }
53 
54 /* readonly attribute AString name; */
55 NS_IMETHODIMP
56 sbTranscodeProfileAttribute::GetName(nsAString & aName)
57 {
58  aName.Assign(mName);
59  return NS_OK;
60 }
61 
62 /* readonly attribute nsIVariant value; */
63 NS_IMETHODIMP
64 sbTranscodeProfileAttribute::GetValue(nsIVariant * *aValue)
65 {
66  NS_ENSURE_ARG_POINTER(aValue);
67  NS_IF_ADDREF(*aValue = mValue);
68  return NS_OK;
69 }
70 
return NS_OK
onPageChanged aValue
Definition: FeedWriter.js:1395
NS_IMPL_THREADSAFE_ISUPPORTS1(sbTranscodeProfileAttribute, sbITranscodeProfileAttribute) sbTranscodeProfileAttribute
nsresult SetName(const nsAString &aName)
_updateCookies aName
nsresult SetValue(nsIVariant *aValue)