42 #include <QtCore/qmetaobject.h> 43 #include <QtCore/qstringlist.h> 66 for (
int i = 0; i < plain.
length(); ++i) {
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");
253 .
arg(interface, xml);
285 for (
int i = 0; i < domainName.
count(); ++i)
301 .
arg(interface, xml);
static QString typeNameToXml(const char *typeName)
#define QT_END_NAMESPACE
This macro expands to.
#define QCLASSINFO_DBUS_INTROSPECTION
const QChar at(int i) const
Returns the character at the given index position in the string.
QString & replace(int i, int len, QChar after)
The QByteArray class provides an array of bytes.
int length() const
Returns the number of characters in this string.
QString & prepend(QChar c)
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
QString organizationDomain
the Internet domain of the organization that wrote this application
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)
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
void reserve(int size)
Attempts to allocate memory for at least size characters.
Q_DBUS_EXPORT QString qDBusGenerateMetaObjectXml(QString interface, const QMetaObject *mo, const QMetaObject *base, int flags)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString qDBusInterfaceFromMetaObject(const QMetaObject *mo)
static QString generateInterfaceXml(const QMetaObject *mo, int flags, int methodOffset, int propOffset)
static bool isEmpty(const char *str)
#define ANNOTATION_NO_WAIT
int access(const char *, int)
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
const T & at(int i) const
Returns the item at index position i in the list.
#define QCLASSINFO_DBUS_INTERFACE
The QStringList class provides a list of strings.
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
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...
bool isUpper() const
Returns true if the character is an uppercase letter, i.
int qDBusNameToTypeId(const char *name)
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
static QCoreApplication * instance()
Returns a pointer to the application's QCoreApplication (or QApplication) instance.
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.
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.