kpilot Library API Documentation

pilotCard.h

00001 #ifndef _KPILOT_PILOTCARD_H 00002 #define _KPILOT_PILOTCARD_H 00003 /* pilotUser.h KPilot 00004 ** 00005 ** Copyright (C) 2003 by Dan Pilone 00006 ** 00007 ** This class is a wrapper around pilot-link's CardInfo structure 00008 */ 00009 00010 /* 00011 ** This program is free software; you can redistribute it and/or modify 00012 ** it under the terms of the GNU Lesser General Public License as published by 00013 ** the Free Software Foundation; either version 2.1 of the License, or 00014 ** (at your option) any later version. 00015 ** 00016 ** This program is distributed in the hope that it will be useful, 00017 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 ** GNU Lesser General Public License for more details. 00020 ** 00021 ** You should have received a copy of the GNU Lesser General Public License 00022 ** along with this program in a file called COPYING; if not, write to 00023 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00024 ** MA 02111-1307, USA. 00025 */ 00026 00027 /* 00028 ** Bug reports and questions can be sent to kde-pim@kde.org 00029 */ 00030 00031 #include <stdlib.h> 00032 #include <string.h> 00033 #include <time.h> 00034 00035 #ifndef _PILOT_DLP_H_ 00036 #include <pi-dlp.h> 00037 #endif 00038 00039 class KPilotCard 00040 { 00041 public: 00042 KPilotCard() { ::memset(&fCard,0,sizeof(struct CardInfo)); } 00043 KPilotCard(const CardInfo* card) { fCard = *card; } 00044 00045 CardInfo *cardInfo() { return &fCard; } 00046 00051 void boundsCheck() {} 00052 00053 const int getCardIndex() const { return fCard.card; } 00054 const int getCardVersion() const { return fCard.version; } 00055 unsigned long getRomSize() const { return fCard.romSize; } 00056 unsigned long getRamSize() const { return fCard.ramSize; } 00057 unsigned long getRamFree() const { return fCard.ramFree; } 00058 const char* getCardName() const { return fCard.name; } 00059 const char* getCardManufacturer() const { return fCard.manufacturer; } 00060 00061 private: 00062 struct CardInfo fCard; 00063 }; 00064 00065 #endif
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