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