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
sbStoragePropertyUnitConverter.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-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
25
#ifndef __sbStoragePropertyUnitConverter_H__
26
#define __sbStoragePropertyUnitConverter_H__
27
28
#include "
sbPropertyUnitConverter.h
"
29
30
class
sbStoragePropertyUnitConverter
:
public
sbPropertyUnitConverter
{
31
public
:
32
sbStoragePropertyUnitConverter
();
33
virtual
~sbStoragePropertyUnitConverter
();
34
35
enum
{
36
STORAGE_UNIT_BYTE
,
37
STORAGE_UNIT_KILOBYTE
,
38
STORAGE_UNIT_MEGABYTE
,
39
STORAGE_UNIT_GIGABYTE
,
40
STORAGE_UNIT_TERABYTE
,
41
STORAGE_UNIT_PETABYTE
,
42
STORAGE_UNIT_EXABYTE
43
};
44
45
virtual
PRInt32
GetAutoUnit
(PRFloat64
aValue
);
46
47
protected
:
48
49
NS_IMETHOD
ConvertFromNativeToUnit
(PRFloat64
aValue
,
50
PRUint32 aUnitID,
51
PRFloat64 &_retVal);
52
NS_IMETHOD
ConvertFromUnitToNative
(PRFloat64
aValue
,
53
PRUint32 aUnitID,
54
PRFloat64 &_retVal);
55
};
56
57
#endif
/* __sbStoragePropertyUnitConverter_H__ */
sbStoragePropertyUnitConverter::~sbStoragePropertyUnitConverter
virtual ~sbStoragePropertyUnitConverter()
Definition:
sbStoragePropertyUnitConverter.cpp:68
sbStoragePropertyUnitConverter::STORAGE_UNIT_TERABYTE
Definition:
sbStoragePropertyUnitConverter.h:40
sbStoragePropertyUnitConverter::ConvertFromUnitToNative
NS_IMETHOD ConvertFromUnitToNative(PRFloat64 aValue, PRUint32 aUnitID, PRFloat64 &_retVal)
Definition:
sbStoragePropertyUnitConverter.cpp:109
aValue
onPageChanged aValue
Definition:
FeedWriter.js:1395
sbPropertyUnitConverter.h
sbPropertyUnitConverter
Definition:
sbPropertyUnitConverter.h:67
sbStoragePropertyUnitConverter::STORAGE_UNIT_BYTE
Definition:
sbStoragePropertyUnitConverter.h:36
sbStoragePropertyUnitConverter::STORAGE_UNIT_PETABYTE
Definition:
sbStoragePropertyUnitConverter.h:41
sbStoragePropertyUnitConverter::GetAutoUnit
virtual PRInt32 GetAutoUnit(PRFloat64 aValue)
Definition:
sbStoragePropertyUnitConverter.cpp:142
sbStoragePropertyUnitConverter::STORAGE_UNIT_EXABYTE
Definition:
sbStoragePropertyUnitConverter.h:42
sbStoragePropertyUnitConverter::ConvertFromNativeToUnit
NS_IMETHOD ConvertFromNativeToUnit(PRFloat64 aValue, PRUint32 aUnitID, PRFloat64 &_retVal)
Definition:
sbStoragePropertyUnitConverter.cpp:74
sbStoragePropertyUnitConverter::sbStoragePropertyUnitConverter
sbStoragePropertyUnitConverter()
Definition:
sbStoragePropertyUnitConverter.cpp:33
sbStoragePropertyUnitConverter::STORAGE_UNIT_GIGABYTE
Definition:
sbStoragePropertyUnitConverter.h:39
sbStoragePropertyUnitConverter::STORAGE_UNIT_KILOBYTE
Definition:
sbStoragePropertyUnitConverter.h:37
sbStoragePropertyUnitConverter
Definition:
sbStoragePropertyUnitConverter.h:30
sbStoragePropertyUnitConverter::STORAGE_UNIT_MEGABYTE
Definition:
sbStoragePropertyUnitConverter.h:38