qtmobility/src/location/qgeosatelliteinfo.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    40 ****************************************************************************/
    40 ****************************************************************************/
    41 #include "qgeosatelliteinfo.h"
    41 #include "qgeosatelliteinfo.h"
    42 
    42 
    43 #include <QHash>
    43 #include <QHash>
    44 #include <QDebug>
    44 #include <QDebug>
       
    45 #include <QDataStream>
    45 
    46 
    46 QTM_BEGIN_NAMESPACE
    47 QTM_BEGIN_NAMESPACE
    47 
    48 
    48 class QGeoSatelliteInfoPrivate
    49 class QGeoSatelliteInfoPrivate
    49 {
    50 {
   227     dbg.nospace() << ')';
   228     dbg.nospace() << ')';
   228     return dbg;
   229     return dbg;
   229 }
   230 }
   230 #endif
   231 #endif
   231 
   232 
       
   233 #ifndef QT_NO_DATASTREAM
       
   234 /*!
       
   235     \fn QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info)
       
   236     \relates QGeoSatelliteInfo
       
   237 
       
   238     Writes the given \a info to the specified \a stream.
       
   239 
       
   240     \sa {Format of the QDataStream Operators}
       
   241 */
       
   242 
       
   243 QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info)
       
   244 {
       
   245     stream << info.d->prn;
       
   246     stream << info.d->signal;
       
   247     stream << info.d->doubleAttribs;
       
   248     return stream;
       
   249 }
       
   250 #endif
       
   251 
       
   252 #ifndef QT_NO_DATASTREAM
       
   253 /*!
       
   254     \fn QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info)
       
   255     \relates QGeoSatelliteInfo
       
   256 
       
   257     Reads satellite information from the specified \a stream into the given
       
   258     \a info.
       
   259 
       
   260     \sa {Format of the QDataStream Operators}
       
   261 */
       
   262 
       
   263 QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info)
       
   264 {
       
   265     stream >> info.d->prn;
       
   266     stream >> info.d->signal;
       
   267     stream >> info.d->doubleAttribs;
       
   268     return stream;
       
   269 }
       
   270 #endif
       
   271 
   232 QTM_END_NAMESPACE
   272 QTM_END_NAMESPACE