32 #ifndef ARNITEMNET_HPP 33 #define ARNITEMNET_HPP 38 #include <QStringList> 45 explicit ArnItemNet(
void* sessionHandler);
46 virtual ~ArnItemNet();
47 bool openWithFlags(
const QString& path,
Arn::LinkFlags linkFlags);
49 void setNetId( uint netId);
51 void* sessionHandler()
const;
53 void addSyncModeString(
const QByteArray& smode,
bool linkShare);
54 QByteArray getSyncModeString()
const;
55 void setModeString(
const QByteArray& mode);
56 QByteArray getModeString()
const;
58 void sendNewItemMonEvent(
const QString& path,
bool isOld =
false);
59 void sendMonEvent(
int type,
const QByteArray& data = QByteArray(),
bool isLocal =
true);
60 void setBlockEcho(
bool blockEcho);
61 void setDisable(
bool disable =
true);
62 bool isDisable()
const;
63 bool isMonitor()
const;
64 void setMonitor(
bool isMonitor);
65 void setQueueNum(
int num);
69 void setEchoSeq( qint8 echoSeq);
70 qint8 echoSeq()
const;
71 bool isEchoSeqOld( qint8 receivedEchoSeq);
73 void resetDirtyValue();
74 void resetDirtyMode();
75 bool isDirtyValue()
const;
76 bool isDirtyMode()
const;
77 bool isLeadValueUpdate();
78 bool isLeadModeUpdate();
79 bool isBlock( quint32 sendId);
80 void setIniMaster(
bool iniMaster);
81 void setIniSlave(
bool iniSlave);
82 bool isMasterAtStart()
const;
83 void setSyncFlux(
bool isSyncFlux);
84 bool isSyncFlux()
const;
85 void setSaveFlux(
bool saveFlux);
86 bool isSaveFlux()
const;
87 quint32 localUpdateSinceStop()
const;
90 virtual void arnEvent( QEvent* ev,
bool isAlienThread);
92 static Arn::ObjectMode stringToObjectMode(
const QByteArray& modeString);
95 using ArnBasicItem::addSyncMode;
100 using ArnBasicItem::addIsOnlyEcho;
101 using ArnBasicItem::isOnlyEcho;
102 using ArnBasicItem::retireType;
106 using ArnBasicItem::childItemsMain;
107 using ArnBasicItem::openWithFlags;
112 void* _sessionHandler;
116 quint32 _updateCountStop;
130 class ArnItemNetEar :
public ArnItem 134 explicit ArnItemNetEar( QObject* parent = arnNullptr);
137 void arnTreeCreated(
const QString& path);
138 void arnTreeDestroyed(
const QString& path,
bool isGlobal);
141 virtual void customEvent( QEvent* ev);
147 #endif // ARNITEMNET_HPP Arn::ObjectSyncMode syncMode() const
Arn::ObjectMode getMode() const
Use with care, link must be "referenced" before use, otherwise it might have been deleted...
void arnImport(const QByteArray &data, int ignoreSame=Arn::SameValue::DefaultAction)
Import data to an Arn Data Object
Link flags when accessing an Arn Data Object
Arn::DataType type() const
The type stored in the Arn Data Object
QByteArray arnExport() const
Handle for an Arn Data Object.
Base class handle for an Arn Data Object.