Menu
Home
Blog
Add-ons
Forum
Wiki
Developers
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
components
property
src
sbDurationPropertyUnitConverter.h
Go to the documentation of this file.
1
/*
2
//
3
// BEGIN SONGBIRD GPL
4
//
5
// This file is part of the Songbird web player.
6
//
7
// Copyright(c) 2005-2008 POTI, Inc.
8
// http://songbirdnest.com
9
//
10
// This file may be licensed under the terms of of the
11
// GNU General Public License Version 2 (the "GPL").
12
//
13
// Software distributed under the License is distributed
14
// on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15
// express or implied. See the GPL for the specific language
16
// governing rights and limitations.
17
//
18
// You should have received a copy of the GPL along with this
19
// program. If not, go to http://www.gnu.org/licenses/gpl.html
20
// or write to the Free Software Foundation, Inc.,
21
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
//
23
// END SONGBIRD GPL
24
//
25
*/
26
27
#ifndef __sbDurationPropertyUnitConverter_H__
28
#define __sbDurationPropertyUnitConverter_H__
29
30
#include "
sbPropertyUnitConverter.h
"
31
32
class
sbDurationPropertyUnitConverter
:
public
sbPropertyUnitConverter
{
33
public
:
34
sbDurationPropertyUnitConverter
();
35
virtual
~sbDurationPropertyUnitConverter
();
36
37
enum
{
38
DURATION_UNIT_MICROSECONDS
,
39
DURATION_UNIT_MILLISECONDS
,
40
DURATION_UNIT_SECONDS
,
41
DURATION_UNIT_MINUTES
,
42
DURATION_UNIT_HOURS
,
43
DURATION_UNIT_DAYS
,
44
DURATION_UNIT_WEEKS
,
45
DURATION_UNIT_MONTHS
,
46
DURATION_UNIT_YEARS
,
47
};
48
49
protected
:
50
51
NS_IMETHOD
ConvertFromNativeToUnit
(PRFloat64
aValue
,
52
PRUint32 aUnitID,
53
PRFloat64 &_retVal);
54
NS_IMETHOD
ConvertFromUnitToNative
(PRFloat64
aValue
,
55
PRUint32 aUnitID,
56
PRFloat64 &_retVal);
57
};
58
59
#endif // __sbDurationPropertyUnitConverter_H__
sbDurationPropertyUnitConverter::ConvertFromNativeToUnit
NS_IMETHOD ConvertFromNativeToUnit(PRFloat64 aValue, PRUint32 aUnitID, PRFloat64 &_retVal)
Definition:
sbDurationPropertyUnitConverter.cpp:82
aValue
onPageChanged aValue
Definition:
FeedWriter.js:1395
sbDurationPropertyUnitConverter::DURATION_UNIT_YEARS
Definition:
sbDurationPropertyUnitConverter.h:46
sbDurationPropertyUnitConverter::ConvertFromUnitToNative
NS_IMETHOD ConvertFromUnitToNative(PRFloat64 aValue, PRUint32 aUnitID, PRFloat64 &_retVal)
Definition:
sbDurationPropertyUnitConverter.cpp:123
sbDurationPropertyUnitConverter::DURATION_UNIT_SECONDS
Definition:
sbDurationPropertyUnitConverter.h:40
sbDurationPropertyUnitConverter::DURATION_UNIT_WEEKS
Definition:
sbDurationPropertyUnitConverter.h:44
sbPropertyUnitConverter.h
sbDurationPropertyUnitConverter::DURATION_UNIT_MILLISECONDS
Definition:
sbDurationPropertyUnitConverter.h:39
sbDurationPropertyUnitConverter::DURATION_UNIT_MINUTES
Definition:
sbDurationPropertyUnitConverter.h:41
sbPropertyUnitConverter
Definition:
sbPropertyUnitConverter.h:67
sbDurationPropertyUnitConverter::sbDurationPropertyUnitConverter
sbDurationPropertyUnitConverter()
Definition:
sbDurationPropertyUnitConverter.cpp:33
sbDurationPropertyUnitConverter::DURATION_UNIT_MONTHS
Definition:
sbDurationPropertyUnitConverter.h:45
sbDurationPropertyUnitConverter::DURATION_UNIT_HOURS
Definition:
sbDurationPropertyUnitConverter.h:42
sbDurationPropertyUnitConverter::DURATION_UNIT_DAYS
Definition:
sbDurationPropertyUnitConverter.h:43
sbDurationPropertyUnitConverter
Definition:
sbDurationPropertyUnitConverter.h:32
sbDurationPropertyUnitConverter::~sbDurationPropertyUnitConverter
virtual ~sbDurationPropertyUnitConverter()
Definition:
sbDurationPropertyUnitConverter.cpp:76
sbDurationPropertyUnitConverter::DURATION_UNIT_MICROSECONDS
Definition:
sbDurationPropertyUnitConverter.h:38