filters
palmdoc.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __PALMDOC_H
00021 #define __PALMDOC_H
00022
00023 #include "palmdb.h"
00024 #include <qstring.h>
00025
00026 class PalmDoc: public PalmDB
00027 {
00028 public:
00029
00030 PalmDoc();
00031 virtual ~PalmDoc();
00032
00033 virtual bool load( const char* filename );
00034 virtual bool save( const char* filename );
00035
00036 int result(){ return m_result; }
00037
00038 QString text(){ return m_text; }
00039 void setText( const QString& t){ m_text = t; }
00040
00041 enum { OK, ReadError, InvalidFormat, WriteError };
00042
00043 private:
00044
00045 int m_result;
00046 QString m_text;
00047
00048 QByteArray compress( const QString& text );
00049 QString uncompress( QByteArray rec );
00050 };
00051
00052 #endif
|