To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / import / Importer.h
History | View | Annotate | Download (689 Bytes)
| 1 |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
|---|---|
| 2 |
|
| 3 |
#ifndef _CLASSICAL_DATA_IMPORTER_H_
|
| 4 |
#define _CLASSICAL_DATA_IMPORTER_H_
|
| 5 |
|
| 6 |
#include "Objects.h" |
| 7 |
|
| 8 |
#include <QUrl> |
| 9 |
#include <QObject> |
| 10 |
|
| 11 |
namespace ClassicalData {
|
| 12 |
|
| 13 |
class Importer : public QObject |
| 14 |
{
|
| 15 |
Q_OBJECT |
| 16 |
|
| 17 |
Q_PROPERTY(QUrl source READ source WRITE setSource STORED true)
|
| 18 |
|
| 19 |
public: |
| 20 |
Importer(QObject *parent = 0) : QObject(parent) { }
|
| 21 |
virtual ~Importer() { }
|
| 22 |
|
| 23 |
virtual QUrl source() const { return m_source; } |
| 24 |
virtual void setSource(QUrl source) = 0; |
| 25 |
|
| 26 |
virtual QObjectList getImportedObjects() = 0;
|
| 27 |
|
| 28 |
protected:
|
| 29 |
QUrl m_source; |
| 30 |
}; |
| 31 |
|
| 32 |
} |
| 33 |
|
| 34 |
Q_DECLARE_METATYPE(ClassicalData::Importer*); |
| 35 |
|
| 36 |
#endif
|