00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
#include <VCardParam.h>
00025
00026
#include <VCardEntity.h>
00027
00028
#include <VCardRToken.h>
00029
00030
using namespace VCARD;
00031
00032 Param::Param()
00033 : Entity(),
00034 name_(
""),
00035 value_(
"")
00036 {
00037 }
00038
00039 Param::Param(
const Param & x)
00040 : Entity(x),
00041 name_(x.name_),
00042 value_(x.value_)
00043 {
00044 }
00045
00046 Param::Param(
const QCString & s)
00047 : Entity(s),
00048 name_(
""),
00049 value_(
"")
00050 {
00051 }
00052
00053 Param &
00054 Param::operator = (Param & x)
00055 {
00056
if (*
this == x)
return *
this;
00057
00058 Entity::operator = (x);
00059 name_ = x.name_;
00060 value_ = x.value_;
00061
00062
return *
this;
00063 }
00064
00065 Param &
00066 Param::operator = (
const QCString & s)
00067 {
00068 Entity::operator = (s);
00069
return *
this;
00070 }
00071
00072
bool
00073 Param::operator == (Param & x)
00074 {
00075 x.parse();
00076
return false;
00077 }
00078
00079 Param::~Param()
00080 {
00081 }
00082
00083
void
00084 Param::_parse()
00085 {
00086 }
00087
00088
void
00089 Param::_assemble()
00090 {
00091 strRep_ = name_ +
"=" + value_;
00092 }
00093
00094 Param::Param(
const QCString &name,
const QCString &value)
00095 : Entity(),
00096 name_(
name),
00097 value_(value)
00098 {
00099 parsed_ =
true;
00100 assembled_ =
false;
00101 }
00102
00103
void
00104 Param::setName(
const QCString & name)
00105 {
00106 name_ =
name;
00107
00108 assembled_ =
false;
00109 }
00110
00111
void
00112 Param::setValue(
const QCString & value)
00113 {
00114 value_ = value;
00115
00116 assembled_ =
false;
00117 }
00118
00119
QCString
00120 Param::name()
00121 {
00122
return name_;
00123 }
00124
00125
QCString
00126 Param::value()
00127 {
00128
return value_;
00129 }