File indexing completed on 2024-04-21 14:53:27

0001 //  -*- c-basic-offset:4; indent-tabs-mode:nil -*-
0002 /*
0003     This file is part of the KDE libraries
0004     SPDX-FileCopyrightText: 1996-1998 Martin R. Jones <mjones@kde.org>
0005     SPDX-FileCopyrightText: 2000 David Faure <faure@kde.org>
0006     SPDX-FileCopyrightText: 2003 Alexander Kellett <lypanov@kde.org>
0007 
0008     SPDX-License-Identifier: LGPL-2.0-only
0009 */
0010 
0011 #ifndef __kbookmarkexporter_h
0012 #define __kbookmarkexporter_h
0013 
0014 #include <kbookmark.h>
0015 
0016 /**
0017  * A class for exporting bookmarks
0018  */
0019 class KBOOKMARKS_EXPORT KBookmarkExporterBase
0020 {
0021 public:
0022     KBookmarkExporterBase(KBookmarkManager *mgr, const QString &fileName)
0023         : m_fileName(fileName)
0024         , m_pManager(mgr)
0025     {
0026     }
0027     virtual ~KBookmarkExporterBase()
0028     {
0029     }
0030     virtual void write(const KBookmarkGroup &) = 0;
0031 
0032 protected:
0033     QString m_fileName;
0034     KBookmarkManager *m_pManager;
0035 
0036 private:
0037     class KBookmarkExporterBasePrivate *d;
0038 };
0039 
0040 #endif