Warning, /education/marble/src/bindings/python/sip/AbstractDataPluginModel.sip is written in an unsupported language. File is not indexed.

0001 //
0002 //     Copyright 2009 Simon Edwards <simon@simonzone.com>
0003 
0004 //                 Generated by twine
0005 
0006 // This file is part of PyKDE4.
0007 
0008 // PyKDE4 is free software; you can redistribute it and/or modify
0009 // it under the terms of the GNU Lesser General Public License as
0010 // published by the Free Software Foundation; either version 2.1 of
0011 // the License, or (at your option) any later version.
0012 
0013 // PyKDE4 is distributed in the hope that it will be useful,
0014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
0015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016 // GNU General Public License for more details.
0017 
0018 // You should have received a copy of the GNU General Public License
0019 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
0020 
0021 namespace Marble
0022 {
0023 
0024 class AbstractDataPluginModel : QObject /Abstract/
0025 {
0026 %TypeHeaderCode
0027 #include <AbstractDataPluginModel.h>
0028 %End
0029 
0030 public:
0031     QList<Marble::AbstractDataPluginItem*>  whichItemAt (const QPoint& curpos);
0032 
0033 protected:
0034     virtual void            parseFile (const QByteArray& file)=0;
0035     void                    downloadItemData (const QUrl& url, const QString& type, Marble::AbstractDataPluginItem* item);
0036     void                    downloadDescriptionFile (const QUrl& url);
0037     void                    addItemToList (Marble::AbstractDataPluginItem* item);
0038     QString                 generateFilename (const QString& id, const QString& type) const;
0039     QString                 generateFilepath (const QString& id, const QString& type) const;
0040     bool                    fileExists (const QString& fileName) const;
0041     bool                    fileExists (const QString& id, const QString& type) const;
0042 public:
0043     virtual ~AbstractDataPluginModel ();
0044     void                    setItemSettings (QHash<QString,QVariant> itemSettings);
0045 protected:
0046     Marble::AbstractDataPluginItem*  findItem (const QString& id) const;
0047     bool                    itemExists (const QString& id) const;
0048 signals:
0049     void                    itemsUpdated ();
0050 public:
0051     virtual void            setFavoriteItems (const QStringList& list);
0052     QStringList             favoriteItems () const;
0053     virtual void            setFavoriteItemsOnly (bool favoriteOnly);
0054     bool                    isFavoriteItemsOnly () const;
0055 protected:
0056     void                    clear ();
0057 signals:
0058     void                    favoriteItemsChanged (const QStringList& favoriteItems);
0059 public:
0060     QObject*                favoritesModel ();
0061     void                    addItemsToList (const QList<Marble::AbstractDataPluginItem*>& items);
0062 protected:
0063     void                    registerItemProperties (const QMetaObject& item);
0064 signals:
0065     void                    favoriteItemsOnlyChanged ();
0066 public:
0067     explicit                AbstractDataPluginModel (const QString& name, const Marble::MarbleModel* marbleModel, QObject* parent /TransferThis/ = 0);
0068     const Marble::MarbleModel*  marbleModel () const;
0069     QList<Marble::AbstractDataPluginItem*>  items (const Marble::ViewportParams* viewport, qint32 number = 10);
0070 protected:
0071     virtual void            getAdditionalItems (const Marble::GeoDataLatLonAltBox& box, qint32 number = 10)=0;
0072     virtual void            getItem (const QString& id);
0073     void                    downloadItem (const QUrl& url, const QString& type, Marble::AbstractDataPluginItem* item);
0074 };
0075 // AbstractDataPluginModel
0076 
0077 };
0078 // Marble
0079 
0080