kbookmarkdombuilder.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Alexander Kellett <lypanov@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this program; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __kbookmarkdombuilder_h
00021 #define __kbookmarkdombuilder_h
00022 
00023 #include <qvaluestack.h>
00024 #include <qobject.h>
00025 #include <kbookmark.h>
00026 
00030 class KIO_EXPORT KBookmarkDomBuilder : public QObject {
00031    Q_OBJECT
00032 public:
00033    KBookmarkDomBuilder(const KBookmarkGroup &group, KBookmarkManager *);
00034    virtual ~KBookmarkDomBuilder();
00035    void connectImporter(const QObject *);
00036 protected slots:
00037    void newBookmark(const QString &text, const QCString &url, const QString &additionalInfo);
00038    void newFolder(const QString &text, bool open, const QString &additionalInfo);
00039    void newSeparator();
00040    void endFolder();
00041 private:
00042    QValueStack<KBookmarkGroup> m_stack;
00043    QValueList<KBookmarkGroup> m_list;
00044    KBookmarkManager *m_manager;
00045    class KBookmarkDomBuilderPrivate *p;
00046 };
00047 
00048 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys