Changeset View
Changeset View
Standalone View
Standalone View
autotests/testattendee.cpp
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 132 | { | |||
---|---|---|---|---|---|
144 | QDataStream out_stream(&byteArray, QIODevice::WriteOnly); | 144 | QDataStream out_stream(&byteArray, QIODevice::WriteOnly); | ||
145 | 145 | | |||
146 | out_stream << attendee1; | 146 | out_stream << attendee1; | ||
147 | 147 | | |||
148 | QDataStream in_stream(&byteArray, QIODevice::ReadOnly); | 148 | QDataStream in_stream(&byteArray, QIODevice::ReadOnly); | ||
149 | 149 | | |||
150 | Person::Ptr person; | 150 | Person::Ptr person; | ||
151 | bool rsvp; | 151 | bool rsvp; | ||
152 | QString name, email, delegate, delegator, cuType, uid; | 152 | QString delegate, delegator, cuType, uid; | ||
153 | CustomProperties customProperties; | 153 | CustomProperties customProperties; | ||
154 | Attendee::Role role; | 154 | Attendee::Role role; | ||
155 | Attendee::PartStat status; | 155 | Attendee::PartStat status; | ||
156 | uint role_int, status_int; | 156 | uint role_int, status_int; | ||
157 | 157 | | |||
158 | in_stream >> person; | 158 | in_stream >> person; | ||
159 | QVERIFY(person->name() == attendee1->name()); | 159 | QVERIFY(person->name() == attendee1->name()); | ||
160 | QVERIFY(person->email() == attendee1->email()); | 160 | QVERIFY(person->email() == attendee1->email()); | ||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |