qtmobility/src/location/qgeosatelliteinfo.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
--- a/qtmobility/src/location/qgeosatelliteinfo.cpp	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/src/location/qgeosatelliteinfo.cpp	Mon May 03 13:18:40 2010 +0300
@@ -42,6 +42,7 @@
 
 #include <QHash>
 #include <QDebug>
+#include <QDataStream>
 
 QTM_BEGIN_NAMESPACE
 
@@ -229,4 +230,43 @@
 }
 #endif
 
+#ifndef QT_NO_DATASTREAM
+/*!
+    \fn QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info)
+    \relates QGeoSatelliteInfo
+
+    Writes the given \a info to the specified \a stream.
+
+    \sa {Format of the QDataStream Operators}
+*/
+
+QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info)
+{
+    stream << info.d->prn;
+    stream << info.d->signal;
+    stream << info.d->doubleAttribs;
+    return stream;
+}
+#endif
+
+#ifndef QT_NO_DATASTREAM
+/*!
+    \fn QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info)
+    \relates QGeoSatelliteInfo
+
+    Reads satellite information from the specified \a stream into the given
+    \a info.
+
+    \sa {Format of the QDataStream Operators}
+*/
+
+QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info)
+{
+    stream >> info.d->prn;
+    stream >> info.d->signal;
+    stream >> info.d->doubleAttribs;
+    return stream;
+}
+#endif
+
 QTM_END_NAMESPACE