pilotDOCEntry.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _KPILOT_PILOTDOCENTRY_H
00029 #define _KPILOT_PILOTDOCENTRY_H
00030
00031 #include <pilotAppCategory.h>
00032 #include "makedoc9.h"
00033
00034
00035 class PilotRecord;
00036
00037
00038 class PilotDOCEntry:public PilotAppCategory {
00039 private:
00040 bool compress;
00041 tBuf fText;
00042 public:
00043 static const int TEXT_SIZE;
00044 PilotDOCEntry();
00045 PilotDOCEntry(PilotRecord * rec, bool compressed = false);
00046 PilotDOCEntry(const PilotDOCEntry & e);
00047 ~PilotDOCEntry() {};
00048 PilotDOCEntry & operator=(const PilotDOCEntry & e);
00049
00050 PilotRecord *pack() {
00051 return PilotAppCategory::pack();
00052 }
00053
00054 QString getText() {
00055 fText.Decompress();
00056 return QString::fromLatin1((const char *) fText.text());
00057 };
00058 void setText(QString newtext, bool compressed = false) {
00059 fText.setText((const unsigned char *) newtext.latin1(),
00060 newtext.length(), compressed);
00061 };
00062
00063 bool getCompress() const {
00064 return compress;
00065 }
00066 void setCompress(bool compressed) {
00067 compress = compressed;
00068 };
00069
00070 protected:
00071 void *pack(void *, int *);
00072 void unpack(const void *, int = 0) {
00073 }
00074 };
00075
00076
00077
00078 #endif
00079
This file is part of the documentation for kpilot Library Version 3.2.2.