qtmobility/src/location/qgeosatelliteinfosource.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    44 #   include "qgeosatelliteinfosource_s60_p.h"
    44 #   include "qgeosatelliteinfosource_s60_p.h"
    45 #elif defined(Q_OS_WINCE)
    45 #elif defined(Q_OS_WINCE)
    46 #   include "qgeosatelliteinfosource_wince_p.h"
    46 #   include "qgeosatelliteinfosource_wince_p.h"
    47 #elif defined(Q_WS_MAEMO_6)
    47 #elif defined(Q_WS_MAEMO_6)
    48 #   include "qgeosatelliteinfosource_maemo_p.h"
    48 #   include "qgeosatelliteinfosource_maemo_p.h"
       
    49 #elif defined(Q_WS_MAEMO_5)
       
    50 #   include "qgeosatelliteinfosource_maemo5_p.h"
    49 #endif
    51 #endif
    50 
    52 
    51 QTM_BEGIN_NAMESPACE
    53 QTM_BEGIN_NAMESPACE
    52 
    54 
    53 /*!
    55 /*!
    86 QGeoSatelliteInfoSource *QGeoSatelliteInfoSource::createDefaultSource(QObject *parent)
    88 QGeoSatelliteInfoSource *QGeoSatelliteInfoSource::createDefaultSource(QObject *parent)
    87 {
    89 {
    88 #if defined(Q_OS_SYMBIAN)
    90 #if defined(Q_OS_SYMBIAN)
    89     CQGeoSatelliteInfoSourceS60 *ret = NULL;
    91     CQGeoSatelliteInfoSourceS60 *ret = NULL;
    90     TRAPD(error, ret = CQGeoSatelliteInfoSourceS60::NewL(parent));
    92     TRAPD(error, ret = CQGeoSatelliteInfoSourceS60::NewL(parent));
       
    93     if (error != KErrNone)
       
    94         return 0;
    91     return ret;
    95     return ret;
    92 #elif defined(Q_OS_WINCE)
    96 #elif defined(Q_OS_WINCE)
    93     return new QGeoSatelliteInfoSourceWinCE(parent);
    97     return new QGeoSatelliteInfoSourceWinCE(parent);
    94 #elif defined(Q_WS_MAEMO_6)
    98 #elif (defined(Q_WS_MAEMO_6)) || (defined(Q_WS_MAEMO_5))
    95     QGeoSatelliteInfoSourceMaemo *source = new QGeoSatelliteInfoSourceMaemo(parent);
    99     QGeoSatelliteInfoSourceMaemo *source = new QGeoSatelliteInfoSourceMaemo(parent);
    96     int status = source->init();
   100     int status = source->init();
    97 
   101 
    98     if (status == -1) {
   102     if (status == -1) {
    99         delete source;
   103         delete source;
   101     }
   105     }
   102 
   106 
   103     return source;
   107     return source;
   104 #else
   108 #else
   105     Q_UNUSED(parent);
   109     Q_UNUSED(parent);
       
   110     return 0;
   106 #endif
   111 #endif
   107     return 0;
       
   108 }
   112 }
   109 
   113 
   110 /*!
   114 /*!
   111     \fn void QGeoSatelliteInfoSource::satellitesInViewUpdated(const QList<QGeoSatelliteInfo> &satellites);
   115     \fn void QGeoSatelliteInfoSource::satellitesInViewUpdated(const QList<QGeoSatelliteInfo> &satellites);
   112 
   116