pilotMemo.h
00001 #ifndef _KPILOT_PILOTMEMO_H
00002 #define _KPILOT_PILOTMEMO_H
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
00029
00030
00031 #include <qstring.h>
00032
00033 #include "pilotAppCategory.h"
00034
00035
00036 class PilotMemo : public PilotAppCategory
00037 {
00038 public:
00039 PilotMemo(void) : PilotAppCategory() { } ;
00040 PilotMemo(const QString &s) : PilotAppCategory() { fText=s; } ;
00041 PilotMemo(PilotRecord* rec);
00042 PilotMemo(void *buf) : PilotAppCategory() { unpack(buf, 1); } ;
00043 PilotMemo(void *buf, int attr, recordid_t id, int category)
00044 : PilotAppCategory(attr, id, category) { unpack(buf, 1); } ;
00045 ~PilotMemo() { } ;
00046
00047 virtual QString getTextRepresentation(bool richText=false);
00048 QString text(void) const { return fText; } ;
00049 void setText(const QString &text) { fText = text; } ;
00050 QString getTitle(void) const ;
00051 PilotRecord* pack() { return PilotAppCategory::pack(); } ;
00052
00053 typedef enum { MAX_MEMO_LEN=8192 } Constants ;
00054
00061 QString shortTitle() const;
00062
00067 QString sensibleTitle() const;
00068
00069 protected:
00070 void *pack(void *, int *);
00071 void unpack(const void *, int = 0);
00072
00073 private:
00074 QString fText;
00075
00076 void *internalPack(unsigned char *);
00077 };
00078
00079 #endif
This file is part of the documentation for kpilot Library Version 3.2.2.