90 static const char *accessvalues[] = {0,
"read",
"write",
"readwrite"};
118 retval +=
QString::fromLatin1(
">\n <annotation name=\"org.qtproject.QtDBus.QtTypeName\" value=\"%3\"/>\n </property>\n")
127 for (
int i = methodOffset; i < mo->
methodCount(); ++i) {
130 int paren = signature.
indexOf(
'(');
162 xml +=
QString::fromLatin1(
" <annotation name=\"org.qtproject.QtDBus.QtTypeName.Out0\" value=\"%1\"/>\n")
173 if (inputCount == -1)
175 if (isSignal && inputCount + 1 != types.
count())
184 for (j = 1; j < types.
count(); ++j) {
195 bool isOutput = isSignal || j > inputCount;
206 xml +=
QString::fromLatin1(
" <annotation name=\"org.qtproject.QtDBus.QtTypeName.%1%2\" value=\"%3\"/>\n")
208 .
arg(isOutput && !isSignal ? j - inputCount : j - 1)
220 if ((flags & wantedMask) != wantedMask)
226 " value=\"true\"/>\n");
static QString typeNameToXml(const char *typeName)
The QByteArray class provides an array of bytes.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
static const char * typeToName(Type type)
Converts the enum representation of the storage type, typ, to its string representation.
bool qDBusCheckAsyncTag(const char *tag)
int qDBusParametersForMethod(const QMetaMethod &mm, QList< int > &metaTypes)
#define ANNOTATION_NO_WAIT
int access(const char *, int)
const T & at(int i) const
Returns the item at index position i in the list.
Type
This enum type defines the types of variable that a QVariant can contain.
QByteArray left(int len) const
Returns a byte array that contains the leftmost len bytes of this byte array.
int indexOf(char c, int from=0) const
Returns the index position of the first occurrence of the character ch in the byte array...
int qDBusNameToTypeId(const char *name)
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.