9#include <private/qcore_unix_p.h>
11#if defined(QQNXNAVIGATOR_DEBUG)
12#define qNavigatorDebug qDebug
14#define qNavigatorDebug QT_NO_QDEBUG_MACRO
19const char *QQnxNavigatorPps::navigatorControlPath =
"/pps/services/navigator/control";
20const size_t QQnxNavigatorPps::ppsBufferSize = 4096;
35bool QQnxNavigatorPps::openPpsConnection()
44 qWarning(
"QQNX: failed to open navigator pps, errno=%d", errno);
55 if (!openPpsConnection())
58 return sendPpsMessage(
"invoke", encodedUrl);
66 ppsMessage +=
"\ndat::" +
data;
76 qFatal(
"QQNX: failed to write navigator pps, errno=%d", errno);
79 char buffer[ppsBufferSize];
86 qFatal(
"QQNX: failed to read navigator pps, errno=%d", errno);
97 parsePPS(ppsData, responseFields);
101 qCritical() <<
"navigator responded with error: " << responseFields.
value(
"err");
121 for (
int i = 1;
i < lines.
size();
i++) {
128 int firstColon = attr.
indexOf(
':');
129 if (firstColon == -1) {
134 int secondColon = attr.
indexOf(
':', firstColon + 1);
135 if (secondColon == -1) {
qsizetype size() const noexcept
Returns the number of bytes in this byte array.
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
QList< QByteArray > split(char sep) const
Splits the byte array into subarrays wherever sep occurs, and returns the list of those arrays.
qsizetype indexOf(char c, qsizetype from=0) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
QByteArray left(qsizetype len) const
Returns a byte array that contains the first len bytes of this byte array.
QByteArray mid(qsizetype index, qsizetype len=-1) const
Returns a byte array containing len bytes from this byte array, starting at position pos.
bool contains(const Key &key) const noexcept
Returns true if the hash contains an item with the key; otherwise returns false.
T value(const Key &key) const noexcept
qsizetype size() const noexcept
bool empty() const noexcept
const_reference at(qsizetype i) const noexcept
bool requestInvokeUrl(const QByteArray &encodedUrl) override
QQnxNavigatorPps(QObject *parent=nullptr)
Combined button and popup list for selecting options.
static qint64 qt_safe_write(int fd, const void *data, qint64 len)
static int qt_safe_open(const char *pathname, int flags, mode_t mode=0777)
static qint64 qt_safe_read(int fd, void *data, qint64 maxlen)
static int qt_safe_close(int fd)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint GLsizei const GLchar * message
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent