The QML bindings for the static methods of of QtDataSync::EventCursor.
More...
#include <qqmleventcursor.h>
|
Q_INVOKABLE QtDataSync::EventCursor * | first (QObject *parent=nullptr) |
| Create a cursor positioned on the oldest change event. More...
|
|
Q_INVOKABLE QtDataSync::EventCursor * | first (const QString &setupName, QObject *parent=nullptr) |
| Create a cursor positioned on the oldest change event. More...
|
|
Q_INVOKABLE QtDataSync::EventCursor * | last (QObject *parent=nullptr) |
| Create a cursor positioned on the newest change event. More...
|
|
Q_INVOKABLE QtDataSync::EventCursor * | last (const QString &setupName, QObject *parent=nullptr) |
| Create a cursor positioned on the newest change event. More...
|
|
Q_INVOKABLE QtDataSync::EventCursor * | create (quint64 index, QObject *parent=nullptr) |
| Create a cursor positioned on the given index, if it is a valid index. More...
|
|
Q_INVOKABLE QtDataSync::EventCursor * | create (quint64 index, const QString &setupName, QObject *parent=nullptr) |
| Create a cursor positioned on the given index, if it is a valid index. More...
|
|
Q_INVOKABLE QtDataSync::EventCursor * | load (const QByteArray &data, QObject *parent=nullptr) |
| Create a cursor positioned on the index provided by the previously stored data, if still valid. More...
|
|
Q_INVOKABLE QtDataSync::EventCursor * | load (const QByteArray &data, const QString &setupName, QObject *parent=nullptr) |
| Create a cursor positioned on the index provided by the previously stored data, if still valid. More...
|
|
The QML bindings for the static methods of of QtDataSync::EventCursor.
- Since
- 4.2
- See also
- QtDataSync::EventCursor
Definition at line 16 of file qqmleventcursor.h.
◆ create() [1/2]
Create a cursor positioned on the given index, if it is a valid index.
- Parameters
-
index | The index of the change event to position the cursor on |
parent | The parent object to set as parent of the event cursor |
- Returns
- A valid eventcursor, positioned on the given index, or an invalid cursor if no changes exist for that index
- Exceptions
-
EventCursorException | Thrown if access to the underlying database failed |
If no setup name is specified, the cursor is created for the default setup name
- See also
- EventCursor::first, EventCursor::last, EventCursor::load, EventCursor::valid, EventCursor::isEventLogActive
◆ create() [2/2]
Create a cursor positioned on the given index, if it is a valid index.
- Parameters
-
setupName | The name of the setup to create the cursor for |
index | The index of the change event to position the cursor on |
parent | The parent object to set as parent of the event cursor |
- Returns
- A valid eventcursor, positioned on the given index, or an invalid cursor if no changes exist for that index
- Exceptions
-
EventCursorException | Thrown if access to the underlying database failed |
If no setup name is specified, the cursor is created for the default setup name
- See also
- EventCursor::first, EventCursor::last, EventCursor::load, EventCursor::valid, EventCursor::isEventLogActive
◆ first() [1/2]
Create a cursor positioned on the oldest change event.
- Parameters
-
parent | The parent object to set as parent of the event cursor |
- Returns
- A valid eventcursor, positioned on the oldest available change, or an invalid cursor if no changes exist
- Exceptions
-
EventCursorException | Thrown if access to the underlying database failed |
If no setup name is specified, the cursor is created for the default setup name
- See also
- EventCursor::last, EventCursor::create, EventCursor::load, EventCursor::valid, EventCursor::isEventLogActive
◆ first() [2/2]
Create a cursor positioned on the oldest change event.
- Parameters
-
setupName | The name of the setup to create the cursor for |
parent | The parent object to set as parent of the event cursor |
- Returns
- A valid eventcursor, positioned on the oldest available change, or an invalid cursor if no changes exist
- Exceptions
-
EventCursorException | Thrown if access to the underlying database failed |
If no setup name is specified, the cursor is created for the default setup name
- See also
- EventCursor::last, EventCursor::create, EventCursor::load, EventCursor::valid, EventCursor::isEventLogActive
◆ last() [1/2]
Create a cursor positioned on the newest change event.
- Parameters
-
parent | The parent object to set as parent of the event cursor |
- Returns
- A valid eventcursor, positioned on the newest available change, or an invalid cursor if no changes exist
- Exceptions
-
EventCursorException | Thrown if access to the underlying database failed |
If no setup name is specified, the cursor is created for the default setup name
- See also
- EventCursor::first, EventCursor::create, EventCursor::load, EventCursor::valid, EventCursor::isEventLogActive
◆ last() [2/2]
Create a cursor positioned on the newest change event.
- Parameters
-
setupName | The name of the setup to create the cursor for |
parent | The parent object to set as parent of the event cursor |
- Returns
- A valid eventcursor, positioned on the newest available change, or an invalid cursor if no changes exist
- Exceptions
-
EventCursorException | Thrown if access to the underlying database failed |
If no setup name is specified, the cursor is created for the default setup name
- See also
- EventCursor::first, EventCursor::create, EventCursor::load, EventCursor::valid, EventCursor::isEventLogActive
◆ load() [1/2]
Create a cursor positioned on the index provided by the previously stored data, if still valid.
- Parameters
-
data | The data to create the cursor from |
parent | The parent object to set as parent of the event cursor |
- Returns
- A valid eventcursor, positioned on the index part of the data, or an invalid cursor if no changes exist for that index
- Exceptions
-
EventCursorException | Thrown if access to the underlying database failed |
If no setup name is specified, the cursor is created for the default setup name. The following properties are restored from the data:
- EventCursor::index
- EventCursor::skipObsolete
Use save() to save the data of an existing cursor so you can later load it again using this method.
- Note
- The index is only set in case the returned cursor is valid. For an invalid cursor, only the skipObsolete property will be set.
- See also
- EventCursor::first, EventCursor::last, EventCursor::create, EventCursor::valid, EventCursor::isEventLogActive, EventCursor::save, EventCursor::skipObsolete
◆ load() [2/2]
Create a cursor positioned on the index provided by the previously stored data, if still valid.
- Parameters
-
setupName | The name of the setup to create the cursor for |
data | The data to create the cursor from |
parent | The parent object to set as parent of the event cursor |
- Returns
- A valid eventcursor, positioned on the index part of the data, or an invalid cursor if no changes exist for that index
- Exceptions
-
EventCursorException | Thrown if access to the underlying database failed |
If no setup name is specified, the cursor is created for the default setup name. The following properties are restored from the data:
- EventCursor::index
- EventCursor::skipObsolete
Use save() to save the data of an existing cursor so you can later load it again using this method.
- Note
- The index is only set in case the returned cursor is valid. For an invalid cursor, only the skipObsolete property will be set.
- See also
- EventCursor::first, EventCursor::last, EventCursor::create, EventCursor::valid, EventCursor::isEventLogActive, EventCursor::save, EventCursor::skipObsolete
The documentation for this class was generated from the following file: