filters

palmdb.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002 Ariya Hidayat <ariyahidayat@yahoo.de>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __PALMDB_H
00021 #define __PALMDB_H
00022 
00023 #include <qcstring.h>
00024 #include <qdatetime.h>
00025 #include <qptrlist.h>
00026 #include <qstring.h>
00027 
00028 class PalmDB
00029 {
00030   public:
00031 
00032     PalmDB();
00033     virtual ~PalmDB();
00034 
00035     virtual bool load( const char* filename );
00036     virtual bool save( const char* filename );
00037 
00038     QString name(){ return m_name; }
00039     void setName( const QString& n ){ m_name = n; }
00040 
00041     int attributes(){ return m_attributes; }
00042     void setAttributes( int a ){ m_attributes = a; }
00043 
00044     int version(){ return m_version; }
00045     void setVersion( int v ){ m_version = v; }
00046 
00047     QDateTime creationDate(){ return m_creationDate; }
00048     void setCreationDate( QDateTime d ){ m_creationDate = d; }
00049 
00050     QDateTime modificationDate(){ return m_modificationDate; }
00051     void setModificationDate( QDateTime d ){ m_modificationDate = d; }
00052 
00053     QDateTime lastBackupDate(){ return m_lastBackupDate; }
00054     void setLastBackupDate( QDateTime d ){ m_lastBackupDate = d; }
00055 
00056     QString type(){ return m_type; }
00057     QString creator(){ return m_creator; }
00058 
00059     void setType( const QString& t );
00060     void setCreator( const QString& c );
00061 
00062     int uniqueIDSeed(){ return m_uniqueIDSeed; }
00063     void setUniqueIDSeed( int i ){ m_uniqueIDSeed= i; }
00064 
00065     QPtrList<QByteArray> records;
00066 
00067   private:
00068 
00069     QString m_name;
00070     int m_attributes, m_version;
00071     QDateTime m_creationDate;
00072     QDateTime m_modificationDate;
00073     QDateTime m_lastBackupDate;
00074     QString m_type;
00075     QString m_creator;
00076     int m_uniqueIDSeed;
00077 };
00078 
00079 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys