sbStatusPropertyInfo.h
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-2009 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 
25 #ifndef __SBSTATUSPROPERTYINFO_H__
26 #define __SBSTATUSPROPERTYINFO_H__
27 
28 // Local includes
30 
31 // Mozilla includes
32 #include <nsCOMPtr.h>
33 #include <nsStringGlue.h>
34 
35 // Songbird includes
36 #include <sbITreeViewPropertyInfo.h>
37 
40 {
41 public:
42 
43  NS_DECL_ISUPPORTS_INHERITED
44  NS_DECL_SBITREEVIEWPROPERTYINFO
45 
46  sbStatusPropertyInfo(const nsAString& aPropertyID,
47  const nsAString& aDisplayName,
48  const nsAString& aLocalizationKey,
49  const nsAString& aLabel,
50  const nsAString& aCompletedLabel,
51  const nsAString& aFailedLabel,
52  const PRBool aRemoteReadable,
53  const PRBool aRemoteWritable,
54  const PRBool aUserViewable,
55  const PRBool aUserEditable);
56  virtual ~sbStatusPropertyInfo() {}
57 
58  NS_IMETHOD Format(const nsAString& aValue, nsAString& _retval);
59 
60  nsresult Init();
61 
62 private:
63 
64  nsString mLabel;
65  nsString mCompletedLabel;
66  nsString mFailedLabel;
67 };
68 
69 #endif /* __SBSTATUSPROPERTYINFO_H__ */
70 
onPageChanged aValue
Definition: FeedWriter.js:1395
NS_IMETHOD Format(const nsAString &aValue, nsAString &_retval)
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBITREEVIEWPROPERTYINFO sbStatusPropertyInfo(const nsAString &aPropertyID, const nsAString &aDisplayName, const nsAString &aLocalizationKey, const nsAString &aLabel, const nsAString &aCompletedLabel, const nsAString &aFailedLabel, const PRBool aRemoteReadable, const PRBool aRemoteWritable, const PRBool aUserViewable, const PRBool aUserEditable)