diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /kaddressbook/xxport/pab_pablib.h | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/xxport/pab_pablib.h')
-rw-r--r-- | kaddressbook/xxport/pab_pablib.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/kaddressbook/xxport/pab_pablib.h b/kaddressbook/xxport/pab_pablib.h new file mode 100644 index 000000000..ff54a32a2 --- /dev/null +++ b/kaddressbook/xxport/pab_pablib.h @@ -0,0 +1,77 @@ +/*************************************************************************** + pablib.hxx - description + ------------------- + begin : Tue Jul 4 2000 + copyright : (C) 2000 by Hans Dijkema + email : kmailcvt@hum.org + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + + +#ifndef PAB_LIB_HXX +#define PAB_LIB_HXX + +#include <klocale.h> +#include <qfile.h> + +#include "pab_mapihd.h" + +#define INDEX_OF_INDEX 0x000000c4 +#define PAB_REC_OK 0xbcec +#define PAB_FILE_ID 0x4e444221 + +class pab +{ + friend class pabrec; + + private: + QFile in; + const char *pabfile; + QString cap; + QWidget *parent; + public: + pab(const char *pabFile); + ~pab(); + private: + content_t skip(int longwords) { return relative(longwords); } + content_t go(adr_t); + content_t relative(int longwords); + content_t relative(pabsize_t); + content_t add(adr_t &,int words); + content_t read(void); + void read(unsigned char *mem,content_t size); + void read(word_t &); + pabsize_t size(content_t); + void size(content_t,pabsize_t &, pabsize_t &); + word_t lower(content_t); + word_t upper(content_t); + byte_t readbyte(void); + adr_t curpos(void) { return in.at(); } + adr_t tell(void) { return curpos(); } + private: + bool recUnknown(pabrec & R); + bool recNoFunction(pabrec & R); + const char *get(unsigned char *mem,pabrec_entry e,pabrec & R); + bool knownPAB(void); + private: + void rdPabRec(pabrec & R); + void prt(unsigned char *mem,pabrec & R,pabrec_entry E); + void getrange(pabrec & R,pabrec_entry e,word_t & b,word_t & _e); + private: + bool convert(adr_t A,content_t start,content_t stop); + void dotable(adr_t table,content_t start,content_t stop); + void processRec(adr_t REC); + public: + bool convert(void); +}; + + +#endif |