kpilot Library API Documentation

pilotDatabase.cc

00001 /* pilotDatabase.cc KPilot 00002 ** 00003 ** Copyright (C) 1998-2001 by Dan Pilone 00004 ** 00005 ** This is the abstract base class for databases, which is used both 00006 ** by local databases and by the serial databases held in the Pilot. 00007 */ 00008 00009 /* 00010 ** This program is free software; you can redistribute it and/or modify 00011 ** it under the terms of the GNU Lesser General Public License as published by 00012 ** the Free Software Foundation; either version 2.1 of the License, or 00013 ** (at your option) any later version. 00014 ** 00015 ** This program is distributed in the hope that it will be useful, 00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 ** GNU Lesser General Public License for more details. 00019 ** 00020 ** You should have received a copy of the GNU Lesser General Public License 00021 ** along with this program in a file called COPYING; if not, write to 00022 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00023 ** MA 02111-1307, USA. 00024 */ 00025 00026 /* 00027 ** Bug reports and questions can be sent to kde-pim@kde.org 00028 */ 00029 00030 #include "options.h" 00031 00032 #include <time.h> // Needed by pilot-link include 00033 00034 #include <pi-appinfo.h> 00035 00036 #include "pilotDatabase.moc" 00037 00038 PilotDatabase::PilotDatabase(QObject *o,const char *n) : 00039 QObject(o,n), 00040 fDBOpen(false) 00041 { 00042 FUNCTIONSETUP; 00043 } 00044 00045 /* virtual */ PilotDatabase::~PilotDatabase() 00046 { 00047 FUNCTIONSETUP; 00048 } 00049 00050 /* static */ void PilotDatabase::listAppInfo(const struct CategoryAppInfo *category) 00051 { 00052 #ifdef DEBUG 00053 FUNCTIONSETUP; 00054 00055 for (int i = 0; i < 15; i++) 00056 { 00057 DEBUGKPILOT << fname 00058 << ": Category #" 00059 << i 00060 << " has ID " 00061 << (int) category->ID[i] 00062 << " and name " 00063 << (category->name[i][0] ? "*" : "-") 00064 << category->name[i] << endl; 00065 } 00066 #endif 00067 }
KDE Logo
This file is part of the documentation for kpilot Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:57:49 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003