/*************************************************************************** qgsbabelformat.cpp - import/export formats for GPSBabel ------------------- begin : Oct 20, 2004 copyright : (C) 2004 by Lars Luthman email : larsl@users.sourceforge.net ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /* $Id$ */ #include "qgsbabelformat.h" #include #include QgsBabelFormat::QgsBabelFormat() : mSupportsImport(false), mSupportsExport(false), mSupportsWaypoints(false), mSupportsRoutes(false), mSupportsTracks(false) { } const QString& QgsBabelFormat::name() const { static QString name = ""; return name; } QStringList QgsBabelFormat::importCommand(const QString& babel, const QString& featuretype, const QString& input, const QString& output) const { QStringList empty; return empty; } QStringList QgsBabelFormat::exportCommand(const QString& babel, const QString& featuretype, const QString& input, const QString& output) const { QStringList empty; return empty; } bool QgsBabelFormat::supportsImport() const { return mSupportsImport; } bool QgsBabelFormat::supportsExport() const { return mSupportsExport; } bool QgsBabelFormat::supportsWaypoints() const { return mSupportsWaypoints; } bool QgsBabelFormat::supportsRoutes() const { return mSupportsRoutes; } bool QgsBabelFormat::supportsTracks() const { return mSupportsTracks; } QgsSimpleBabelFormat::QgsSimpleBabelFormat(const QString& format, bool hasWaypoints, bool hasRoutes, bool hasTracks) : mFormat(format) { mSupportsWaypoints = hasWaypoints; mSupportsRoutes = hasRoutes; mSupportsTracks = hasTracks; mSupportsImport = true; mSupportsExport = false; } QStringList QgsSimpleBabelFormat::importCommand(const QString& babel, const QString& featuretype, const QString& input, const QString& output)const{ QStringList args; args<