Skip to content

Commit

Permalink
Import dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tobydox committed Feb 8, 2021
1 parent 8aeec31 commit 8bd8f19
Show file tree
Hide file tree
Showing 57 changed files with 4,476 additions and 369 deletions.
7 changes: 4 additions & 3 deletions InCore.CloudOfThings/CloudOfThingsDeviceManager.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ Example
updateManager: UpdateManager {
//all default due to Cloud of Things command
autoInstall: true
autoDownload: true
// use this configuration to update incremental via Cloud of Things
// else set all to true
autoInstall: false
autoDownload: false
autoReboot: true
repositories: [
Expand Down
2 changes: 2 additions & 0 deletions InCore.CloudOfThings/CloudOfThingsMeasurementWriter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ Signals

* :ref:`errorOccurred() <signal_CloudOfThingsMeasurementWriter_errorOccurred>`
* :ref:`DataObjectWriter.objectsDataChanged() <signal_DataObjectWriter_objectsDataChanged>`
* :ref:`DataObjectWriter.submitted() <signal_DataObjectWriter_submitted>`
* :ref:`DataObjectWriter.truncated() <signal_DataObjectWriter_truncated>`
* :ref:`Object.completed() <signal_Object_completed>`

Enumerations
Expand Down
2 changes: 2 additions & 0 deletions InCore.Database/DatabaseEventTable.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ Signals
* :ref:`DatabaseTable.queriesDataChanged() <signal_DatabaseTable_queriesDataChanged>`
* :ref:`DatabaseTable.structureDataChanged() <signal_DatabaseTable_structureDataChanged>`
* :ref:`DataObjectWriter.objectsDataChanged() <signal_DataObjectWriter_objectsDataChanged>`
* :ref:`DataObjectWriter.submitted() <signal_DataObjectWriter_submitted>`
* :ref:`DataObjectWriter.truncated() <signal_DataObjectWriter_truncated>`
* :ref:`Object.completed() <signal_Object_completed>`

Enumerations
Expand Down
22 changes: 21 additions & 1 deletion InCore.Database/DatabaseSqlQuery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ Properties
++++++++++

.. hlist::
:columns: 1
:columns: 2

* :ref:`error <property_DatabaseSqlQuery_error>`
* :ref:`errorString <property_DatabaseSqlQuery_errorString>`
* :ref:`forwardOnly <property_DatabaseSqlQuery_forwardOnly>`
* :ref:`lastInsertedId <property_DatabaseSqlQuery_lastInsertedId>`
* :ref:`query <property_DatabaseSqlQuery_query>`
* :ref:`results <property_DatabaseSqlQuery_results>`
* :ref:`Object.objectId <property_Object_objectId>`
Expand Down Expand Up @@ -115,6 +116,25 @@ This property holds whether the query is forward only. For some queries :ref:`fo
:**› Attributes**: Writable


.. _property_DatabaseSqlQuery_lastInsertedId:

.. _signal_DatabaseSqlQuery_lastInsertedIdChanged:

.. index::
single: lastInsertedId

lastInsertedId
++++++++++++++

This property holds the object ID of the most recent inserted row if the database supports it. ``undefined`` will be returned if the query did not insert any value or if the database does not report the id back. If more than one row was touched by the insert, the behavior is undefined. For MySQL databases the row's auto-increment field will be returned.

This property was introduced in InCore 2.3.

:**› Type**: Variant
:**› Signal**: lastInsertedIdChanged()
:**› Attributes**: Readonly


.. _property_DatabaseSqlQuery_query:

.. _signal_DatabaseSqlQuery_queryChanged:
Expand Down
2 changes: 2 additions & 0 deletions InCore.Database/DatabaseTable.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ Signals
* :ref:`queriesDataChanged() <signal_DatabaseTable_queriesDataChanged>`
* :ref:`structureDataChanged() <signal_DatabaseTable_structureDataChanged>`
* :ref:`DataObjectWriter.objectsDataChanged() <signal_DataObjectWriter_objectsDataChanged>`
* :ref:`DataObjectWriter.submitted() <signal_DataObjectWriter_submitted>`
* :ref:`DataObjectWriter.truncated() <signal_DataObjectWriter_truncated>`
* :ref:`Object.completed() <signal_Object_completed>`

Enumerations
Expand Down
1 change: 1 addition & 0 deletions InCore.Foundation/ByteArray.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The ByteArray object is used to store and transport binary data and convert it t
This object was introduced in InCore 2.0.

:**› Inherits**: :ref:`Object <object_Object>`
:**› Inherited by**: :ref:`UdpDatagram <object_UdpDatagram>`

Overview
********
Expand Down
2 changes: 2 additions & 0 deletions InCore.Foundation/CsvWriter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ Signals

* :ref:`errorOccurred() <signal_CsvWriter_errorOccurred>`
* :ref:`DataObjectWriter.objectsDataChanged() <signal_DataObjectWriter_objectsDataChanged>`
* :ref:`DataObjectWriter.submitted() <signal_DataObjectWriter_submitted>`
* :ref:`DataObjectWriter.truncated() <signal_DataObjectWriter_truncated>`
* :ref:`Object.completed() <signal_Object_completed>`

Enumerations
Expand Down
30 changes: 30 additions & 0 deletions InCore.Foundation/DataObjectWriter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Signals
:columns: 1

* :ref:`objectsDataChanged() <signal_DataObjectWriter_objectsDataChanged>`
* :ref:`submitted() <signal_DataObjectWriter_submitted>`
* :ref:`truncated() <signal_DataObjectWriter_truncated>`
* :ref:`Object.completed() <signal_Object_completed>`

Enumerations
Expand Down Expand Up @@ -233,6 +235,34 @@ objectsDataChanged(SignedInteger index)
This signal is emitted whenever the :ref:`List.dataChanged() <signal_List_dataChanged>` signal is emitted, i.e. the item at ``index`` in the :ref:`objects <property_DataObjectWriter_objects>` list itself emitted the dataChanged() signal.



.. _signal_DataObjectWriter_submitted:

.. index::
single: submitted

submitted()
+++++++++++

This signal is emitted when :ref:`objects <property_DataObjectWriter_objects>` have been successfully submitted.

This signal was introduced in InCore 2.3.



.. _signal_DataObjectWriter_truncated:

.. index::
single: truncated

truncated()
+++++++++++

This signal is emitted when :ref:`objects <property_DataObjectWriter_objects>` have been truncated.

This signal was introduced in InCore 2.3.


Enumerations
************

Expand Down
8 changes: 1 addition & 7 deletions InCore.Foundation/ErrorCollector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Example

.. code-block:: qml
import InCore.Foundation 2.0
import InCore.Foundation 2.3
Application {
Expand All @@ -101,11 +101,6 @@ Example
fileName: "test.txt"
}
Sms {
// SMS without transport will raise an error when sent
id: sms
}
// polling on property which does not support polling will an raise error
Polling on name {
id: polling
Expand Down Expand Up @@ -146,7 +141,6 @@ Example
onCompleted: {
// trigger errors
file.open();
sms.send();
customObject.doSomething()
customObjectWithSignal.doSomething()
}
Expand Down
17 changes: 17 additions & 0 deletions InCore.Foundation/File.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Properties
* :ref:`IoDevice.atEnd <property_IoDevice_atEnd>`
* :ref:`IoDevice.autoOpen <property_IoDevice_autoOpen>`
* :ref:`IoDevice.bytesAvailable <property_IoDevice_bytesAvailable>`
* :ref:`IoDevice.canReadLine <property_IoDevice_canReadLine>`
* :ref:`IoDevice.deviceErrorString <property_IoDevice_deviceErrorString>`
* :ref:`IoDevice.isOpen <property_IoDevice_isOpen>`
* :ref:`IoDevice.isWritable <property_IoDevice_isWritable>`
Expand All @@ -48,11 +49,14 @@ Methods
:columns: 2

* :ref:`remove() <method_File_remove>`
* :ref:`sync() <method_File_sync>`
* :ref:`IoDevice.close() <method_IoDevice_close>`
* :ref:`IoDevice.flush() <method_IoDevice_flush>`
* :ref:`IoDevice.open() <method_IoDevice_open>`
* :ref:`IoDevice.peekAll() <method_IoDevice_peekAll>`
* :ref:`IoDevice.read() <method_IoDevice_read>`
* :ref:`IoDevice.readAll() <method_IoDevice_readAll>`
* :ref:`IoDevice.readLine() <method_IoDevice_readLine>`
* :ref:`IoDevice.sync() <method_IoDevice_sync>`
* :ref:`IoDevice.write() <method_IoDevice_write>`
* :ref:`Object.fromJson() <method_Object_fromJson>`
Expand All @@ -65,6 +69,7 @@ Signals
:columns: 1

* :ref:`errorOccurred() <signal_File_errorOccurred>`
* :ref:`IoDevice.lineAvailableForRead() <signal_IoDevice_lineAvailableForRead>`
* :ref:`IoDevice.readyRead() <signal_IoDevice_readyRead>`
* :ref:`Object.completed() <signal_Object_completed>`

Expand Down Expand Up @@ -166,6 +171,18 @@ This method removes the file specified by :ref:`fileName <property_File_fileName
:**› Returns**: Boolean



.. _method_File_sync:

.. index::
single: sync

sync()
++++++

This method calls :ref:`IoDevice.flush() <method_IoDevice_flush>` and tells the operating system to write all pending data to its storages. Calling this method might block the program execution for a while depending on the amount of data to be written.


Signals
*******

Expand Down
71 changes: 69 additions & 2 deletions InCore.Foundation/IoDevice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The IoDevice object is the base interface class of all I/O devices. It provides
Before accessing data the device must be configured through the corresponding properties such as :ref:`readOnly <property_IoDevice_readOnly>`, :ref:`append <property_IoDevice_append>` and :ref:`truncate <property_IoDevice_truncate>`. It can then be opened via :ref:`open() <method_IoDevice_open>`. Objects interacting with I/O devices (e.g. :ref:`CsvWriter <object_CsvWriter>` or :ref:`EventLogFile <object_EventLogFile>`) usually open them automatically.

:**› Inherits**: :ref:`Object <object_Object>`
:**› Inherited by**: :ref:`File <object_File>`
:**› Inherited by**: :ref:`File <object_File>`, :ref:`IpSocket <object_IpSocket>`, :ref:`WebSocket <object_WebSocket>`

Overview
********
Expand All @@ -28,6 +28,7 @@ Properties
* :ref:`atEnd <property_IoDevice_atEnd>`
* :ref:`autoOpen <property_IoDevice_autoOpen>`
* :ref:`bytesAvailable <property_IoDevice_bytesAvailable>`
* :ref:`canReadLine <property_IoDevice_canReadLine>`
* :ref:`deviceErrorString <property_IoDevice_deviceErrorString>`
* :ref:`isOpen <property_IoDevice_isOpen>`
* :ref:`isWritable <property_IoDevice_isWritable>`
Expand All @@ -47,10 +48,12 @@ Methods
:columns: 2

* :ref:`close() <method_IoDevice_close>`
* :ref:`flush() <method_IoDevice_flush>`
* :ref:`open() <method_IoDevice_open>`
* :ref:`peekAll() <method_IoDevice_peekAll>`
* :ref:`read() <method_IoDevice_read>`
* :ref:`readAll() <method_IoDevice_readAll>`
* :ref:`readLine() <method_IoDevice_readLine>`
* :ref:`sync() <method_IoDevice_sync>`
* :ref:`write() <method_IoDevice_write>`
* :ref:`Object.fromJson() <method_Object_fromJson>`
Expand All @@ -62,6 +65,7 @@ Signals
.. hlist::
:columns: 1

* :ref:`lineAvailableForRead() <signal_IoDevice_lineAvailableForRead>`
* :ref:`readyRead() <signal_IoDevice_readyRead>`
* :ref:`Object.completed() <signal_Object_completed>`

Expand Down Expand Up @@ -145,6 +149,25 @@ This property was introduced in InCore 2.0.
:**› Attributes**: Readonly


.. _property_IoDevice_canReadLine:

.. _signal_IoDevice_canReadLineChanged:

.. index::
single: canReadLine

canReadLine
+++++++++++

This property holds whether a complete line of data can be read from the device.

This property was introduced in InCore 2.3.

:**› Type**: Boolean
:**› Signal**: canReadLineChanged()
:**› Attributes**: Readonly


.. _property_IoDevice_deviceErrorString:

.. _signal_IoDevice_deviceErrorStringChanged:
Expand Down Expand Up @@ -316,6 +339,20 @@ This method flushes any buffered data and closes the I/O device.



.. _method_IoDevice_flush:

.. index::
single: flush

flush()
+++++++

This method flushes all write buffers and possibly buffered data of the I/O device to the operating system.

This method was introduced in InCore 2.3.



.. _method_IoDevice_open:

.. index::
Expand Down Expand Up @@ -376,6 +413,22 @@ This method was introduced in InCore 2.0.



.. _method_IoDevice_readLine:

.. index::
single: readLine

readLine()
++++++++++

This method reads a line from the device (maximum 65535 characters) and returns the result as a UTF-8 encoded string. This function has no way of reporting errors, i.e. an empty string can mean either that no data was currently available for reading, or that an error occurred.

This method was introduced in InCore 2.3.

:**› Returns**: String



.. _method_IoDevice_sync:

.. index::
Expand All @@ -384,7 +437,7 @@ This method was introduced in InCore 2.0.
sync()
++++++

This method flushes any buffered data to the I/O device and tells the operating system to write all pending data to its storages.
This method calls :ref:`IoDevice.flush() <method_IoDevice_flush>` and tells the operating system to write all pending data to its storages. Calling this method might block the program execution for a while depending on the amount of data to be written.



Expand All @@ -405,6 +458,20 @@ Signals
*******


.. _signal_IoDevice_lineAvailableForRead:

.. index::
single: lineAvailableForRead

lineAvailableForRead()
++++++++++++++++++++++

This signal is emitted once everytime a a complete line of data can be read from the device. It will only be emitted again once new data is available, such as when a new payload of network data has arrived on a network socket, or when a new block of data has been appended to the device.

This signal was introduced in InCore 2.3.



.. _signal_IoDevice_readyRead:

.. index::
Expand Down

0 comments on commit 8bd8f19

Please sign in to comment.