kpilot Library API Documentation

pilotMemo.h

00001 #ifndef _KPILOT_PILOTMEMO_H
00002 #define _KPILOT_PILOTMEMO_H
00003 /* pilotMemo.h                  KPilot
00004 **
00005 ** Copyright (C) 1998-2001 by Dan Pilone
00006 **
00007 ** See the .cc file for an explanation of what this file is for.
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 <qstring.h>
00032 
00033 #include "pilotAppCategory.h"
00034 
00035 
00036 class PilotMemo : public PilotAppCategory
00037 {
00038 public:
00039         PilotMemo(void) : PilotAppCategory() { } ;
00040         PilotMemo(const QString &s) : PilotAppCategory() { fText=s; } ;
00041         PilotMemo(PilotRecord* rec);
00042         PilotMemo(void *buf) : PilotAppCategory() { unpack(buf, 1); } ;
00043         PilotMemo(void *buf, int attr, recordid_t id, int category)
00044                 : PilotAppCategory(attr, id, category) { unpack(buf, 1); } ;
00045         ~PilotMemo() { } ;
00046 
00047         QString text(void) const { return fText; } ;
00048         void setText(const QString &text) { fText = text; } ;
00049         QString getTitle(void) const ;
00050         PilotRecord* pack() { return PilotAppCategory::pack(); } ;
00051 
00052         typedef enum { MAX_MEMO_LEN=8192 } Constants ;
00053 
00060         QString shortTitle() const;
00061 
00066         QString sensibleTitle() const;
00067 
00068 protected:
00069         void *pack(void *, int *);
00070         void unpack(const void *, int = 0);
00071 
00072 private:
00073         QString fText;
00074 
00075         void *internalPack(unsigned char *);
00076 };
00077 
00078 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:44 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001