![]() |
Home · All Namespaces · All Classes |
#include <QDBusArgument>#include "notificationparameters.h"#include "notificationparameter.h"
Go to the source code of this file.
Functions | |
| QDataStream & | operator<< (QDataStream &datastream, const NotificationParameters ¶meters) |
| QDataStream & | operator>> (QDataStream &datastream, NotificationParameters ¶meters) |
| QDBusArgument & | operator<< (QDBusArgument &argument, const NotificationParameters ¶meters) |
| const QDBusArgument & | operator>> (const QDBusArgument &argument, NotificationParameters ¶meters) |
| QDBusArgument& operator<< | ( | QDBusArgument & | argument, | |
| const NotificationParameters & | parameters | |||
| ) |
Definition at line 70 of file notificationparameters.cpp.
00071 { 00072 QHashIterator<QString, QVariant> i(parameters.parameterValues); 00073 00074 argument.beginMap(QMetaType::QString, qMetaTypeId<QDBusVariant>()); 00075 while (i.hasNext()) { 00076 i.next(); 00077 00078 argument.beginMapEntry(); 00079 argument << i.key(); 00080 argument << QDBusVariant(i.value()); 00081 argument.endMapEntry(); 00082 } 00083 argument.endMap(); 00084 return argument; 00085 }
| QDataStream& operator<< | ( | QDataStream & | datastream, | |
| const NotificationParameters & | parameters | |||
| ) |
Serializes the given NotificationParameters to a QDataStream
| datastream | QDataStream to write to | |
| parameters | NotificationParameters object to serialize |
Definition at line 60 of file notificationparameters.cpp.
| const QDBusArgument& operator>> | ( | const QDBusArgument & | argument, | |
| NotificationParameters & | parameters | |||
| ) |
Definition at line 87 of file notificationparameters.cpp.
00088 { 00089 argument.beginMap(); 00090 while (!argument.atEnd()) { 00091 QString key; 00092 QDBusVariant value; 00093 00094 argument.beginMapEntry (); 00095 argument >> key; 00096 argument >> value; 00097 argument.endMapEntry (); 00098 00099 parameters.parameterValues[key] = value.variant(); 00100 } 00101 argument.endMap(); 00102 return argument; 00103 }
| QDataStream& operator>> | ( | QDataStream & | datastream, | |
| NotificationParameters & | parameters | |||
| ) |
Deserializes a NotificationParameters from a QDataStream
| datastream | QDataStream to read from | |
| parameters | the target NotificationParameters object, its previous state will be reset |
Definition at line 65 of file notificationparameters.cpp.
| Copyright © 2010 Nokia Corporation | Generated on Wed Nov 10 16:04:52 2010 Doxygen 1.6.1 |
MeeGo Touch |