kpilot/lib
pilotMemo.h00001 #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 <qnamespace.h>
00032 #include <qstring.h>
00033
00034 #include <pi-memo.h>
00035
00036 #include "pilotRecord.h"
00037 #include "pilotAppInfo.h"
00038
00039 class KDE_EXPORT PilotMemo : public PilotRecordBase
00040 {
00041 public:
00045 PilotMemo(void) : PilotRecordBase() { } ;
00046
00051 PilotMemo(const QString &s) : PilotRecordBase()
00052 {
00053 setText(s);
00054 } ;
00055
00061 PilotMemo(const PilotRecord* rec);
00062
00068 PilotMemo(const PilotRecordBase *r, const QString &s) :
00069 PilotRecordBase(r)
00070 {
00071 setText(s);
00072 }
00073
00074 ~PilotMemo() { } ;
00075
00076 virtual QString getTextRepresentation(Qt::TextFormat richText);
00077 QString text(void) const { return fText; } ;
00078 void setText(const QString &text) { fText = text; } ;
00079 QString getTitle(void) const ;
00080 PilotRecord* pack();
00081
00082 static const int MAX_MEMO_LEN=8192;
00083
00090 QString shortTitle() const;
00091
00096 QString sensibleTitle() const;
00097
00098 private:
00099 QString fText;
00100
00101 };
00102
00103 typedef PilotAppInfo<struct MemoAppInfo,unpack_MemoAppInfo, pack_MemoAppInfo> PilotMemoInfo;
00104
00105 #endif
|