27 Secrecy::Secrecy(
int type )
32 bool Secrecy::operator==(
const Secrecy &s )
const
34 return ( mType == s.mType );
37 bool Secrecy::operator!=(
const Secrecy &s )
const
39 return !( *
this == s );
42 bool Secrecy::isValid()
const
44 return mType != Invalid;
47 void Secrecy::setType(
int type )
52 int Secrecy::type()
const
57 Secrecy::TypeList Secrecy::typeList()
62 list << Public << Private << Confidential;
67 TQString Secrecy::typeLabel(
int type )
71 return i18n(
"Public" );
74 return i18n(
"Private" );
77 return i18n(
"Confidential" );
80 return i18n(
"Unknown type" );
85 TQString Secrecy::asString()
const
87 return typeLabel( mType );
90 TQDataStream &TDEABC::operator<<( TQDataStream &s,
const Secrecy &secrecy )
92 return s << secrecy.mType;
95 TQDataStream &TDEABC::operator>>( TQDataStream &s, Secrecy &secrecy )
static data, shared by ALL addressee objects