24 #include <VCardClassValue.h>
26 #include <VCardValue.h>
30 using namespace VCARD;
32 ClassValue::ClassValue()
37 ClassValue::ClassValue(
const ClassValue & x)
39 classType_(x.classType_)
43 ClassValue::ClassValue(
const TQCString & s)
49 ClassValue::operator = (ClassValue & x)
51 if (*
this == x)
return *
this;
54 classType_ = x.classType_;
56 Value::operator = (x);
61 ClassValue::operator = (
const TQCString & s)
63 Value::operator = (s);
68 ClassValue::operator == (ClassValue & x)
71 return ( classType_ == x.classType_ );
74 ClassValue::~ClassValue()
81 return new ClassValue( *
this );
87 if (tqstricmp(strRep_,
"PUBLIC") == 0)
90 else if (tqstricmp(strRep_,
"PRIVATE") == 0)
93 else if (tqstricmp(strRep_,
"CONFIDENTIAL") == 0)
94 classType_ = Confidential;
96 else classType_ = Other;
100 ClassValue::_assemble()
102 switch (classType_) {
113 strRep_ =
"CONFIDENTIAL";