Purpose
purposeprocess_main.cpp
57 while ((pos < bytes) && (couldRead = (m_socket.bytesAvailable() || m_socket.waitForReadyRead()))) {
63 Purpose::Configuration config(QCborValue::fromCbor(dataArray).toMap().toJsonObject(), pluginType, md);
131 parser.addOption(QCommandLineOption(QStringLiteral("server"), QStringLiteral("Named socket to connect to"), QStringLiteral("name")));
132 parser.addOption(QCommandLineOption(QStringLiteral("pluginPath"), QStringLiteral("Chosen plugin"), QStringLiteral("path")));
133 parser.addOption(QCommandLineOption(QStringLiteral("pluginType"), QStringLiteral("Plugin type name "), QStringLiteral("path")));
virtual Q_SCRIPTABLE void start()=0
bool isValid() const
This class will be in charge of figuring out the job configuration.
Definition configuration.h:33
const QVariantMap toMap(const MODEL &model)
QString path(const QString &relativePath)
void chop(qsizetype n)
char * data()
void resize(qsizetype newSize, char c)
qlonglong toLongLong(bool *ok, int base) const const
QCborValue fromCbor(QCborStreamReader &reader)
QCommandLineOption addHelpOption()
bool addOption(const QCommandLineOption &option)
void process(const QCoreApplication &app)
QString value(const QCommandLineOption &option) const const
QByteArray read(qint64 maxSize)
QByteArray readLine(qint64 maxSize)
qint64 write(const QByteArray &data)
ReadWrite
Compact
QByteArray toJson(JsonFormat format) const const
QJsonValue fromVariant(const QVariant &variant)
LocalSocketError
virtual qint64 bytesAvailable() const const override
virtual bool canReadLine() const const override
void connectToServer(OpenMode openMode)
LocalSocketError error() const const
void setServerName(const QString &name)
bool waitForConnected(int msecs)
virtual bool waitForReadyRead(int msecs) override
int indexOfSlot(const char *slot) const const
QMetaMethod method(int index) const const
QMetaProperty property(int index) const const
int propertyCount() const const
bool hasNotifySignal() const const
bool isReadable() const const
const char * name() const const
QMetaMethod notifySignal() const const
int notifySignalIndex() const const
QVariant read(const QObject *object) const const
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual const QMetaObject * metaObject() const const
int senderSignalIndex() const const
bool endsWith(QChar c, Qt::CaseSensitivity cs) const const
QString fromLatin1(QByteArrayView str)
UniqueConnection
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.