libkdepim Library API Documentation

kvcarddrag.h

00001 /*
00002     This file is part of the KDE PIM library.
00003     Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018     Boston, MA 02111-1307, USA.
00019 */
00020 
00021 #ifndef KVCARDDRAG_H
00022 #define KVCARDDRAG_H
00023 
00024 #include <qdragobject.h>
00025 #include <qstring.h>
00026 
00027 class KVCardDragPrivate;
00028 
00035 class KVCardDrag : public QStoredDrag
00036 {
00037   Q_OBJECT
00038 
00039   public:
00043     KVCardDrag( QWidget *dragsource = 0, const char *name = 0 );
00044 
00048     KVCardDrag( const QString &content, QWidget *dragsource = 0, const char *name = 0 );
00049     virtual ~KVCardDrag() {};
00050 
00054     void setVCard( const QString &content );
00055 
00059     static bool canDecode( QMimeSource *e );
00060 
00064     static bool decode( QMimeSource *e, QString &content );
00065 
00066   protected:
00067      virtual void virtual_hook( int id, void* data );
00068 
00069   private:
00070      KVCardDragPrivate *d;
00071 };
00072 
00073 #endif // KVCARDDRAG_H
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:31 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003