filters

palmdb.h
1/* This file is part of the KDE project
2 Copyright (C) 2002 Ariya Hidayat <ariyahidayat@yahoo.de>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __PALMDB_H
21#define __PALMDB_H
22
23#include <tqcstring.h>
24#include <tqdatetime.h>
25#include <tqptrlist.h>
26#include <tqstring.h>
27
28class PalmDB
29{
30 public:
31
32 PalmDB();
33 virtual ~PalmDB();
34
35 virtual bool load( const char* filename );
36 virtual bool save( const char* filename );
37
38 TQString name(){ return m_name; }
39 void setName( const TQString& n ){ m_name = n; }
40
41 int attributes(){ return m_attributes; }
42 void setAttributes( int a ){ m_attributes = a; }
43
44 int version(){ return m_version; }
45 void setVersion( int v ){ m_version = v; }
46
47 TQDateTime creationDate(){ return m_creationDate; }
48 void setCreationDate( TQDateTime d ){ m_creationDate = d; }
49
50 TQDateTime modificationDate(){ return m_modificationDate; }
51 void setModificationDate( TQDateTime d ){ m_modificationDate = d; }
52
53 TQDateTime lastBackupDate(){ return m_lastBackupDate; }
54 void setLastBackupDate( TQDateTime d ){ m_lastBackupDate = d; }
55
56 TQString type(){ return m_type; }
57 TQString creator(){ return m_creator; }
58
59 void setType( const TQString& t );
60 void setCreator( const TQString& c );
61
62 int uniqueIDSeed(){ return m_uniqueIDSeed; }
63 void setUniqueIDSeed( int i ){ m_uniqueIDSeed= i; }
64
65 TQPtrList<TQByteArray> records;
66
67 private:
68
69 TQString m_name;
70 int m_attributes, m_version;
71 TQDateTime m_creationDate;
72 TQDateTime m_modificationDate;
73 TQDateTime m_lastBackupDate;
74 TQString m_type;
75 TQString m_creator;
76 int m_uniqueIDSeed;
77};
78
79#endif