1 #ifndef QCEPDATAOBJECT_H
2 #define QCEPDATAOBJECT_H
8 #include <QScriptValue>
63 void mkPath(QString filePath);
71 Q_PROPERTY(QString
type READ get_Type WRITE set_Type)
74 Q_PROPERTY(quint64 byteSize READ get_ByteSize WRITE set_ByteSize STORED false)
77 Q_PROPERTY(QString
creator READ get_Creator WRITE set_Creator)
80 Q_PROPERTY(QString
version READ get_Version WRITE set_Version)
83 Q_PROPERTY(QString
qtVersion READ get_QtVersion WRITE set_QtVersion)
86 Q_PROPERTY(QString description READ get_Description WRITE set_Description)
89 Q_PROPERTY(QString
fileName READ get_FileName WRITE set_FileName)
92 Q_PROPERTY(
int objectSaved READ get_ObjectSaved WRITE set_ObjectSaved)
96 #endif // QCEPDATAOBJECT_H
virtual void saveData(QString &name, QString filter, Overwrite canOverwrite=NoOverwrite)
static void fromScriptValue(const QScriptValue &obj, QcepDataObjectPtr &data)
QcepSettingsSaverWPtr m_Saver
static QScriptValue toScriptValue(QScriptEngine *engine, const QcepDataObjectPtr &data)
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
QString uniqueFileName(QString name)
virtual int columnCount() const
void mkPath(QString filePath)
QcepDataObject(QcepSettingsSaverWPtr saver, QString name, int byteSize, QcepObject *parent)
virtual QcepDataGroupPtr parentItem() const
virtual ~QcepDataObject()
static int deletedObjects()
virtual int childCount() const
virtual QString fileFormatFilterString()
#define QCEP_INTEGER_PROPERTY(propname)
QString metaTypeName(int id) const
static int allocatedObjects()
#define QCEP_STRING_PROPERTY(propname)
virtual int rowCount() const
virtual void setParentItem(QcepDataGroupWPtr parent)
QcepDataGroupWPtr m_Parent
virtual int indexInParent() const
QcepDataGroupPtr rootItem()
#define QCEP_INTEGER64_PROPERTY(propname)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
virtual QString description() const
virtual QcepDataObjectPtr item(int n)
static QcepDataObjectPtr newDataObject(QcepSettingsSaverWPtr saver, QString name, QcepObject *parent)
virtual QVariant columnData(int col) const
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr
QWeakPointer< QcepDataGroup > QcepDataGroupWPtr
QcepSettingsSaverWPtr saver()