Changeset View
Changeset View
Standalone View
Standalone View
resources/kolab/pimkolab/autotests/testhelpers.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 64 | { | |||
---|---|---|---|---|---|
68 | ba += ")"; | 68 | ba += ")"; | ||
69 | return qstrdup(ba.data()); | 69 | return qstrdup(ba.data()); | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | template<> | 72 | template<> | ||
73 | char *toString(const KCalCore::Attendee &at) | 73 | char *toString(const KCalCore::Attendee &at) | ||
74 | { | 74 | { | ||
75 | QByteArray ba = "Attendee("; | 75 | QByteArray ba = "Attendee("; | ||
76 | ba += at.name().toAscii() + ", "; | 76 | ba += at.name().toLatin1() + ", "; | ||
77 | ba += at.email().toAscii() + ", "; | 77 | ba += at.email().toLatin1() + ", "; | ||
78 | ba += QByteArray::number(at.role()) + ", "; | 78 | ba += QByteArray::number(at.role()) + ", "; | ||
79 | ba += QByteArray::number(at.status()) + ", "; | 79 | ba += QByteArray::number(at.status()) + ", "; | ||
80 | ba += QByteArray::number(at.RSVP()) + ", "; | 80 | ba += QByteArray::number(at.RSVP()) + ", "; | ||
81 | ba += at.delegate().toAscii() + ", "; | 81 | ba += at.delegate().toLatin1() + ", "; | ||
82 | ba += at.delegator().toAscii() + ", "; | 82 | ba += at.delegator().toLatin1() + ", "; | ||
83 | ba += at.uid().toAscii() + ", "; | 83 | ba += at.uid().toLatin1() + ", "; | ||
84 | ba += ")"; | 84 | ba += ")"; | ||
85 | return qstrdup(ba.data()); | 85 | return qstrdup(ba.data()); | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | template<> | 88 | template<> | ||
89 | char *toString(const QList<int> &l) | 89 | char *toString(const QList<int> &l) | ||
90 | { | 90 | { | ||
91 | QByteArray ba = "QList<int>("; | 91 | QByteArray ba = "QList<int>("; | ||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |