LedColor
#include <bb/device/LedColor>
To link against this class, add the following line to your .pro file: LIBS += -lbbdevice
The LedColor class provides a wrapper for the LedColor::Type enumeration.
BlackBerry 10.0.0
Public Types Index
Static Public Functions Index
| bb::device::LedColor::Type | fromBitset (bool red, bool green, bool blue) |
| QString | toName (bb::device::LedColor::Type color) |
Public Types
The LedColor class provides a wrapper for the LedColor::Type enumeration.
BlackBerry 10.0.0
- None = 0x000000
If this color is specified, the LED will not blink.
Since:BlackBerry 10.0.0
- Red = 0xff0000
LED will blink red.
Since:BlackBerry 10.0.0
- Green = 0x00ff00
LED will blink green.
Since:BlackBerry 10.0.0
- Blue = 0x0000ff
LED will blink blue.
Since:BlackBerry 10.0.0
- Yellow = Red | Green
LED will blink yellow.
Since:BlackBerry 10.0.0
- Cyan = Green | Blue
LED will blink cyan.
Since:BlackBerry 10.0.0
- Magenta = Blue | Red
LED will blink magenta.
Since:BlackBerry 10.0.0
- White = Red | Green | Blue
LED will blink white.
Since:BlackBerry 10.0.0
Static Public Functions
bb::device::LedColor::Type
Returns the color corresponding to the use of the colors provided.
| Parameters | |
|---|---|
| red |
Whether the result should contain red. |
| green |
Whether the result should contain green. |
| blue |
Whether the result should contain blue. |
Returns the color corresponding to the mix of colors provided, or LedColor::None if no colors are used.
BlackBerry 10.0.0
QString
Returns a string corresponding to the color provided.
| Parameters | |
|---|---|
| color |
The color to translate. |
Returns the name of the color as listed in LedColor::Type, or the null QString for LedColor::None.
BlackBerry 10.0.0