kbookmarkimporter_kde1.h

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) 2000 David Faure <faure@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License version 2 as published by the Free Software Foundation.
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., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __kbookmarkimporter_kde1_h
00022 #define __kbookmarkimporter_kde1_h
00023 
00024 #include <qdom.h>
00025 #include <qcstring.h>
00026 #include <qstringlist.h>
00027 #include <ksimpleconfig.h>
00028 
00034 class KIO_EXPORT KBookmarkImporter
00035 {
00036 public:
00037     KBookmarkImporter( QDomDocument * doc ) : m_pDoc(doc) {}
00038 
00039     void import( const QString & path );
00040 
00041 private:
00042     void scanIntern( QDomElement & parentElem, const QString & _path );
00043     void parseBookmark( QDomElement & parentElem, QCString _text,
00044                         KSimpleConfig& _cfg, const QString &_group );
00045     QDomDocument * m_pDoc;
00046     QStringList m_lstParsedDirs;
00047 };
00048 
00049 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys