From 083dbd6407c433a7ff2b4880836d919a84b2cea9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 19 Dec 2020 11:48:03 +0900 Subject: tdeabc/vcard: integrated "generated" partial header files into the place where they are actually used. Signed-off-by: Michele Calgaro (cherry picked from commit 5cb3ed2e545a03815cdd04ab8666b605a71c44b4) --- tdeabc/vcard/include/VCardTelParam.h | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'tdeabc/vcard/include/VCardTelParam.h') diff --git a/tdeabc/vcard/include/VCardTelParam.h b/tdeabc/vcard/include/VCardTelParam.h index 9eea5da2f..a780108d8 100644 --- a/tdeabc/vcard/include/VCardTelParam.h +++ b/tdeabc/vcard/include/VCardTelParam.h @@ -33,13 +33,31 @@ namespace VCARD class KVCARD_EXPORT TelParam : public Param { -#include "TelParam-generated.h" - - enum TelType { - TelHome, TelWork, TelPref, TelVoice, TelFex, TelMsg, TelCell, - TelPager, TelBBS, TelModem, TelCar, TelISDN, TelVideo, TelPCS, - TelIANA, TelX - }; + public: + TelParam(); + TelParam(const TelParam&); + TelParam(const TQCString&); + TelParam & operator = (TelParam&); + TelParam & operator = (const TQCString&); + bool operator ==(TelParam&); + bool operator !=(TelParam& x) {return !(*this==x);} + bool operator ==(const TQCString& s) {TelParam a(s);return(*this==a);} + bool operator != (const TQCString& s) {return !(*this == s);} + + virtual ~TelParam(); + 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 "TelParam"; } + + enum TelType { + TelHome, TelWork, TelPref, TelVoice, TelFex, TelMsg, TelCell, + TelPager, TelBBS, TelModem, TelCar, TelISDN, TelVideo, TelPCS, + TelIANA, TelX + }; private: -- cgit v1.2.1