32 #ifndef ARNINTERFACE_HPP 33 #define ARNINTERFACE_HPP 43 Q_PROPERTY( QString info READ info NOTIFY dummyNotifier)
92 explicit ArnInterface( QObject* parent = arnNullptr) : QObject( parent) {}
95 QString info() {
return QString::fromUtf8(
ArnM::instance().info().constData());}
135 void setValue(
const QString& path,
const QVariant& value)
139 void setVariant(
const QString& path,
const QVariant& value,
const QString& typeName = QString())
143 void setString(
const QString& path,
const QString& value)
147 void setBytes(
const QString& path,
const QByteArray& value)
152 void setNum(
const QString& path,
float value)
154 void setNum(
const QString& path,
double value)
177 QString
changeBasePath(
const QString& oldBasePath,
const QString& newBasePath,
const QString& path)
189 QString
providerPath(
const QString& path,
bool giveProviderPath =
true)
194 void dummyNotifier();
198 #endif // ARNINTERFACE_HPP QString childPath(const QString &parentPath, const QString &posterityPath)
Get substring for child from a path (posterityPath)
QString changeBasePath(const QString &oldBasePath, const QString &newBasePath, const QString &path)
See Arn::changeBasePath()
bool isFolder(const QString &path)
See ArnM::isFolder()
static bool isFolder(const QString &path)
void setValue(const QString &path, const QVariant &value)
See ArnM::setValue()
static void setValue(const QString &path, int value)
Assign an integer to an Arn Data Object at path
bool isFolderPath(const QString &path)
See Arn::isFolderPath()
Path: "/@/test" ==> "//test", Item: "@" ==> "".
double num(const QString &path)
See ArnM::valueDouble()
Empty not ok, Path: Absolute Item: FolderMark.
static bool exist(const QString &path)
Implies BiDir and all data is preserved as a stream.
void setBytes(const QString &path, const QByteArray &value)
See ArnM::setValue()
bool isProviderPath(const QString &path)
See Arn::isProviderPath()
NameF
Selects a format for path or item name.
static int valueInt(const QString &path)
Get the value of Arn Data Object at path
QString providerPath(const QString &path, bool giveProviderPath=true)
See Arn::providerPath()
QVariant variant(const QString &path)
See ArnM::valueVariant()
Assigning same value generates an update of the Arn Data Object
int intNum(const QString &path)
See ArnM::valueInt()
static QString valueString(const QString &path)
Get the value of Arn Data Object at path
Only on path, no effect on discrete names. "/test/value" ==> "test/value".
QString childPath(const QString &parentPath, const QString &posterityPath)
See Arn::childPath()
DataType
Data type of an Arn Data Object
static double valueDouble(const QString &path)
Get the value of Arn Data Object at path
QString string(const QString &path)
See ArnM::valueString()
static QStringList items(const QString &path)
Get the childrens of the folder at path
A two way object, typically for validation or pipe.
QVariant value(const QString &path)
See ArnM::valueVariant()
QString makePath(const QString &parentPath, const QString &itemName)
Make a path from a parent and an item name.
ObjectMode
General global mode of an Arn Data Object
QString changeBasePath(const QString &oldBasePath, const QString &newBasePath, const QString &path)
Change the base (start) of a path.
static bool isLeaf(const QString &path)
Assigning same value gives default action set in ArnM or ArnItem.
static QVariant valueVariant(const QString &path)
Get the value of Arn Data Object at path
static QByteArray valueByteArray(const QString &path)
Get the value of Arn Data Object at path
void setNum(const QString &path, double value)
See ArnM::setValue()
SameValue
Action when assigning same value to an ArnItem.
QString twinPath(const QString &path)
Get the bidirectional twin to a given path
QStringList items(const QString &path)
See ArnM::items()
QString itemName(const QString &path)
See Arn::itemName()
QString makePath(const QString &parentPath, const QString &itemName)
See Arn::makePath()
bool isLeaf(const QString &path)
See ArnM::isLeaf()
bool exist(const QString &path)
See ArnM::exist()
QString providerPathIf(const QString &path, bool giveProviderPath)
Get provider path or requester path
QString twinPath(const QString &path)
See Arn::twinPath()
QString parentPath(const QString &path)
Get the parent to a given path
void setVariant(const QString &path, const QVariant &value, const QString &typeName=QString())
See ArnM::setValue()
QString itemName(const QString &path)
The last part of a path
#define ARNLIBSHARED_EXPORT
bool isFolderPath(const QString &path)
Test if path is a folder path
Assigning same value is ignored.
Data is persistent and will be saved.
Only on discrete names, no effect on path. "test/" ==> "test".
void setIntNum(const QString &path, int value)
See ArnM::setValue()
QByteArray bytes(const QString &path)
See ArnM::valueByteArray()
void setString(const QString &path, const QString &value)
See ArnM::setValue()
bool isProviderPath(const QString &path)
Test if path is a provider path