KIO
kbookmarkexporter.h
Go to the documentation of this file.00001 // -*- c-basic-offset:4; indent-tabs-mode:nil -*- 00002 // vim: set ts=4 sts=4 sw=4 et: 00003 /* This file is part of the KDE libraries 00004 Copyright (C) 1996-1998 Martin R. Jones <mjones@kde.org> 00005 Copyright (C) 2000 David Faure <faure@kde.org> 00006 Copyright (C) 2003 Alexander Kellett <lypanov@kde.org> 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Library General Public 00010 License version 2 as published by the Free Software Foundation. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 00021 */ 00022 00023 #ifndef __kbookmarkexporter_h 00024 #define __kbookmarkexporter_h 00025 00026 #include <QtCore/QTextIStream> 00027 #include <kbookmark.h> 00028 00029 class KIO_EXPORT KBookmarkExporterBase 00030 { 00031 public: 00032 KBookmarkExporterBase(KBookmarkManager* mgr, const QString & fileName) 00033 : m_fileName(fileName), m_pManager(mgr) 00034 {} 00035 virtual ~KBookmarkExporterBase() {} 00036 virtual void write(const KBookmarkGroup&) = 0; 00037 protected: 00038 QString m_fileName; 00039 KBookmarkManager* m_pManager; 00040 private: 00041 class KBookmarkExporterBasePrivate *d; 00042 }; 00043 00044 #endif