27 #include <tqcstring.h>
29 #include <VCardParam.h>
34 class KVCARD_EXPORT SourceParam :
public Param
38 SourceParam(
const SourceParam&);
39 SourceParam(
const TQCString&);
40 SourceParam & operator = (SourceParam&);
41 SourceParam & operator = (
const TQCString&);
42 bool operator ==(SourceParam&);
43 bool operator !=(SourceParam& x) {
return !(*
this==x);}
44 bool operator ==(
const TQCString& s) {SourceParam a(s);
return(*
this==a);}
45 bool operator != (
const TQCString& s) {
return !(*
this == s);}
47 virtual ~SourceParam();
48 void parse() {
if(!parsed_) _parse();parsed_=
true;assembled_=
false;}
50 void assemble() {
if(assembled_)
return;parse();_assemble();assembled_=
true;}
54 const char * className()
const {
return "SourceParam"; }
56 enum SourceParamType { TypeUnknown, TypeValue, TypeContext, TypeX };
58 SourceParamType type() { parse();
return type_;}
59 TQCString par() { parse();
return par_; }
60 TQCString val() { parse();
return val_; }
62 void setType(SourceParamType t) { type_ = t; assembled_ =
false; }
63 void setPar(
const TQCString & s) { par_ = s; assembled_ =
false; }
64 void setVal(
const TQCString & s) { val_ = s; assembled_ =
false; }
68 SourceParamType type_;