summaryrefslogtreecommitdiffstats
path: root/tdeabc/vcard/include/VCardAdrParam.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-19 11:48:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-19 11:48:03 +0900
commit5cb3ed2e545a03815cdd04ab8666b605a71c44b4 (patch)
tree8c731204e9fdf6a030163992ac88cf210ce8acbe /tdeabc/vcard/include/VCardAdrParam.h
parent6f0a5983467358a325740c689c1fd546c3752b52 (diff)
downloadtdelibs-5cb3ed2e545a03815cdd04ab8666b605a71c44b4.tar.gz
tdelibs-5cb3ed2e545a03815cdd04ab8666b605a71c44b4.zip
tdeabc/vcard: integrated "generated" partial header files into the place where they
are actually used. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeabc/vcard/include/VCardAdrParam.h')
-rw-r--r--tdeabc/vcard/include/VCardAdrParam.h51
1 files changed, 34 insertions, 17 deletions
diff --git a/tdeabc/vcard/include/VCardAdrParam.h b/tdeabc/vcard/include/VCardAdrParam.h
index d40165f4a..00d016c31 100644
--- a/tdeabc/vcard/include/VCardAdrParam.h
+++ b/tdeabc/vcard/include/VCardAdrParam.h
@@ -34,25 +34,42 @@ namespace VCARD
class KVCARD_EXPORT AdrParam : public Param
{
+ public:
+ AdrParam();
+ AdrParam(const AdrParam&);
+ AdrParam(const TQCString&);
+ AdrParam & operator = (AdrParam&);
+ AdrParam & operator = (const TQCString&);
+ bool operator ==(AdrParam&);
+ bool operator !=(AdrParam& x) {return !(*this==x);}
+ bool operator ==(const TQCString& s) {AdrParam a(s);return(*this==a);}
+ bool operator != (const TQCString& s) {return !(*this == s);}
-#include "AdrParam-generated.h"
-
- TQStrList adrTypeList()
- { parse(); return adrTypeList_; }
-
- TQCString textParam()
- { parse(); return textParam_; }
-
- void setAdrTypeList(const TQStrList & l)
- { adrTypeList_ = l; assembled_ = false; }
-
- void setTextParam(const TQCString & s)
- { textParam_ = s; assembled_ = false; }
+ virtual ~AdrParam();
+ void parse() {if(!parsed_) _parse();parsed_=true;assembled_=false;}
+
+ void assemble() {if(assembled_) return;parse();_assemble();assembled_=true;}
+
+ void _parse();
+ void _assemble();
+ const char * className() const { return "AdrParam"; }
+
+ TQStrList adrTypeList()
+ { parse(); return adrTypeList_; }
+
+ TQCString textParam()
+ { parse(); return textParam_; }
- enum AdrType {
- AdrDom, AdrIntl, AdrPostal, AdrParcel, AdrHome, AdrWork, AdrPref,
- AdrIANA, AdrX
- };
+ void setAdrTypeList(const TQStrList & l)
+ { adrTypeList_ = l; assembled_ = false; }
+
+ void setTextParam(const TQCString & s)
+ { textParam_ = s; assembled_ = false; }
+
+ enum AdrType {
+ AdrDom, AdrIntl, AdrPostal, AdrParcel, AdrHome, AdrWork, AdrPref,
+ AdrIANA, AdrX
+ };
private: