summaryrefslogtreecommitdiffstats
path: root/tdeio/bookmarks/kbookmarkimporter.cc
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-06 21:23:48 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-06 21:24:20 +0900
commit4f99f868f09bbffa2e15733b8b7c78eba07a199e (patch)
tree3fb0957e93160f69f55942fff50a2ad496bf4f4c /tdeio/bookmarks/kbookmarkimporter.cc
parent19f44e5ff3756172540e768fc0d08d761f0c374e (diff)
downloadtdelibs-4f99f868f09bbffa2e15733b8b7c78eba07a199e.tar.gz
tdelibs-4f99f868f09bbffa2e15733b8b7c78eba07a199e.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeio/bookmarks/kbookmarkimporter.cc')
-rw-r--r--tdeio/bookmarks/kbookmarkimporter.cc99
1 files changed, 0 insertions, 99 deletions
diff --git a/tdeio/bookmarks/kbookmarkimporter.cc b/tdeio/bookmarks/kbookmarkimporter.cc
deleted file mode 100644
index a83e36c78..000000000
--- a/tdeio/bookmarks/kbookmarkimporter.cc
+++ /dev/null
@@ -1,99 +0,0 @@
-/* This file is part of the KDE libraries
- Copyright (C) 2003 Alexander Kellett <lypanov@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License version 2 as published by the Free Software Foundation.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include <tdefiledialog.h>
-#include <kstringhandler.h>
-#include <tdelocale.h>
-#include <kdebug.h>
-#include <kcharsets.h>
-#include <tqtextcodec.h>
-
-#include <sys/types.h>
-#include <stddef.h>
-#include <dirent.h>
-#include <sys/stat.h>
-#include <assert.h>
-
-#include "kbookmarkmanager.h"
-
-#include "kbookmarkimporter_ns.h"
-#include "kbookmarkimporter_opera.h"
-#include "kbookmarkimporter_ie.h"
-
-#include "kbookmarkimporter.h"
-
-void KXBELBookmarkImporterImpl::parse()
-{
- //kdDebug() << "KXBELBookmarkImporterImpl::parse()" << endl;
- KBookmarkManager *manager = KBookmarkManager::managerForFile(m_fileName);
- KBookmarkGroup root = manager->root();
- traverse(root);
- // FIXME delete it!
- // delete manager;
-}
-
-void KXBELBookmarkImporterImpl::visit(const KBookmark &bk)
-{
- //kdDebug() << "KXBELBookmarkImporterImpl::visit" << endl;
- if (bk.isSeparator())
- emit newSeparator();
- else
- emit newBookmark(bk.fullText(), bk.url().url().utf8(), "");
-}
-
-void KXBELBookmarkImporterImpl::visitEnter(const KBookmarkGroup &grp)
-{
- //kdDebug() << "KXBELBookmarkImporterImpl::visitEnter" << endl;
- emit newFolder(grp.fullText(), false, "");
-}
-
-void KXBELBookmarkImporterImpl::visitLeave(const KBookmarkGroup &)
-{
- //kdDebug() << "KXBELBookmarkImporterImpl::visitLeave" << endl;
- emit endFolder();
-}
-
-void KBookmarkImporterBase::setupSignalForwards(TQObject *src, TQObject *dst)
-{
- connect(src, TQT_SIGNAL( newBookmark( const TQString &, const TQCString &, const TQString & ) ),
- dst, TQT_SIGNAL( newBookmark( const TQString &, const TQCString &, const TQString & ) ));
- connect(src, TQT_SIGNAL( newFolder( const TQString &, bool, const TQString & ) ),
- dst, TQT_SIGNAL( newFolder( const TQString &, bool, const TQString & ) ));
- connect(src, TQT_SIGNAL( newSeparator() ),
- dst, TQT_SIGNAL( newSeparator() ) );
- connect(src, TQT_SIGNAL( endFolder() ),
- dst, TQT_SIGNAL( endFolder() ) );
-}
-
-KBookmarkImporterBase* KBookmarkImporterBase::factory( const TQString &type )
-{
- if (type == "netscape")
- return new KNSBookmarkImporterImpl;
- else if (type == "mozilla")
- return new KMozillaBookmarkImporterImpl;
- else if (type == "xbel")
- return new KXBELBookmarkImporterImpl;
- else if (type == "ie")
- return new KIEBookmarkImporterImpl;
- else if (type == "opera")
- return new KOperaBookmarkImporterImpl;
- else
- return 0;
-}
-
-#include <kbookmarkimporter.moc>