Network Interface#

The network interface enables the module to define a module related network connection.

#include "gt_moduleinterface.h"
#include "gt_networkinterface.h"

class MyModule: public QObject, public GtModuleInterface, GtNetworkInterface
{
    [...]

    Q_INTERFACES(GtModuleInterface)
    Q_INTERFACES(GtNetworkInterface)

    [...]

            /**
            * @brief Returns identification string of access point.
            * @return Identification string of access point.
            */
            QString accessId() override;

            /**
            * @brief Returns meta object of GtAbstractAccessDataConnection class.
            * @return Meta object of GtAbstractAccessDataConnection class.
            */
            QMetaObject accessConnection() override;

    [...]
}

Documentation on Virtual Member Functions#