|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Test object exposing a wide range of property and method types. More...
#include <testobject.h>
Public Types | |
| enum | Mode { Idle , Busy , Broken } |
| Enumeration exposed to the meta-object system. | |
| enum | Option { None = 0 , Fast = 1 , Safe = 2 } |
| Flag enumeration exposed to the meta-object system. | |
Public Member Functions | |
| TestObject (QObject *parent=nullptr, const QString &name={ }) | |
| Creates the object with an optional parent and objectName. | |
| Options | options () const |
| Getter for the flags property. | |
| void | setOptions (Options o) |
| Setter for the flags property. | |
| int | readOnly () const |
| A constant property. | |
| int | rejecting () const |
| Getter of a property whose setter is a no-op. | |
| void | setRejecting (int) |
| Setter that ignores its argument. | |
| int | add (int a, int b) |
| Invokable that adds two numbers. | |
| QString | describe (const QString &s) |
| Invokable overloaded on argument type. | |
| void | takeOpaque (SondeTest::Opaque) |
| Invokable with an argument that JSON cannot express. | |
| QPoint | origin () const |
| Invokable that returns a point. | |
| double | sum (const SondeTest::Coordinate &c) const |
| Invokable taking a gadget: the sum of its latitude and longitude. | |
| QVariantList | places () const |
| Invokable returning a list of maps that hold gadgets, as the viewer's model data does. | |
| void | poke () |
| Slot with no arguments that counts calls. | |
| void | setMode (SondeTest::TestObject::Mode mode) |
| Slot taking an enum. | |
| void | poked () |
| Emitted by poke(). | |
| void | pinged (int count, const QString ¬e) |
| Emitted by tests, with two arguments. | |
| void | pinged () |
| Overload of pinged() without arguments. | |
| void | sentOpaque (SondeTest::Opaque value) |
| Emitted by tests, with an argument JSON can't express. | |
| void | nudged (int amount=1) |
| Emitted by tests; the default argument makes moc add a clone, nudged(). | |
Public Attributes | |
| int | pokes = 0 |
| Number of poke() calls. | |
| QString | m_text |
| Backing field. | |
| bool | m_visible = true |
| Backing field. | |
| bool | m_enabled = true |
| Backing field. | |
| int | m_number = 0 |
| Backing field. | |
| double | m_real = 0 |
| Backing field. | |
| QPoint | m_point |
| Backing field. | |
| QPointF | m_pointF |
| Backing field. | |
| QSize | m_size |
| Backing field. | |
| QSizeF | m_sizeF |
| Backing field. | |
| QRect | m_rect |
| Backing field. | |
| QRectF | m_rectF |
| Backing field. | |
| QUrl | m_url |
| Backing field. | |
| QByteArray | m_bytes |
| Backing field. | |
| Mode | m_mode = Idle |
| Backing field. | |
| Options | m_options |
| Backing field. | |
| QObject * | m_buddy = nullptr |
| Backing field. | |
| TestObject * | m_peer = nullptr |
| Backing field. | |
| QVariant | m_anything |
| Backing field. | |
| QStringList | m_list |
| Backing field. | |
Test object exposing a wide range of property and method types.