rem: QDataStream & operator>>( QDataStream & stream, KMIdentity & i ) { #if 1 Q_UINT32 uoid; stream >> uoid; i.mUoid = uoid; return stream #else return stream >> (Q_UINT32)i.mUoid #endif >> i.mIdentity >> i.mFullName >> i.mOrganization >> i.mPgpIdentity >> i.mEmailAddr >> i.mReplyToAddr >> i.mBcc >> i.mVCardFile >> i.mTransport >> i.mFcc >> i.mDrafts >> i.mSignature;
add: QDataStream & operator>>( QDataStream & stream, Signature & sig ) { Q_UINT8 s; stream >> s >> sig.mUrl >> sig.mText; sig.mType = static_cast<Signature::Type>(s); return stream;
context: QDataStream & operator>>( QDataStream & stream, KMIdentity & i ) {#if 1 // why doesn't it work like for Q_UINT8 above???  Q_UINT32 uoid;  stream >> uoid;  i.mUoid = uoid;  return stream#else  return stream >> (Q_UINT32)i.mUoid#endif		>> i.mIdentity		>> i.mFullName		>> i.mOrganization		>> i.mPgpIdentity		>> i.mEmailAddr		>> i.mReplyToAddr		>> i.mBcc		>> i.mVCardFile		>> i.mTransport		>> i.mFcc		>> i.mDrafts		>> i.mSignature;}