Fix compilation on BlackBerry Playbook

Implement pps_decoder_is_integer() function, which is not present on Playbook
by default.

Change-Id: Iff0974f3f178bf9c39aa05b4e1be87b2b7a9344e
Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
This commit is contained in:
Rafael Roquetto 2013-08-29 11:00:43 -03:00 committed by The Qt Project
parent 10e690506e
commit a871f224f8

View File

@ -213,6 +213,13 @@ QT_BEGIN_NAMESPACE
#ifdef Q_OS_BLACKBERRY
static const char cellularStatusFile[] = "/pps/services/radioctrl/modem0/status_public";
#ifdef Q_OS_BLACKBERRY_TABLET
static bool pps_decoder_is_integer(pps_decoder_t *decoder, const char *name)
{
return (pps_decoder_type(decoder, name) == PPS_TYPE_NUMBER);
}
#endif // Q_OS_BLACKBERRY_TABLET
static QNetworkConfiguration::BearerType cellularStatus()
{
QNetworkConfiguration::BearerType ret = QNetworkConfiguration::BearerUnknown;