Lines 42-48
Link Here
|
42 |
|
42 |
|
43 |
QString discoverPath( QDomElement const & elem ); |
43 |
QString discoverPath( QDomElement const & elem ); |
44 |
|
44 |
|
45 |
QDomDocument doc; |
|
|
46 |
QDBusProxy * proxy; |
45 |
QDBusProxy * proxy; |
47 |
DBusObject * p; |
46 |
DBusObject * p; |
48 |
}; |
47 |
}; |
Lines 89-107
Link Here
|
89 |
|
88 |
|
90 |
// Now iterate through self, enumerating interfaces, properties, and |
89 |
// Now iterate through self, enumerating interfaces, properties, and |
91 |
// other objects. |
90 |
// other objects. |
92 |
QDomElement childElement = myElem.firstChild().toElement(); |
91 |
myElem = myElem.firstChild().toElement(); |
93 |
|
92 |
|
94 |
try { |
93 |
try { |
95 |
do { |
94 |
do { |
96 |
if ( childElement.tagName() == "node" ) |
95 |
if ( myElem.tagName() == "node" ) |
97 |
new DBusObject( this, childElement, d->proxy ); |
96 |
new DBusObject( this, myElem, d->proxy ); |
98 |
else if ( childElement.tagName() == "interface" ) |
97 |
else if ( myElem.tagName() == "interface" ) |
99 |
new DBusInterface( this, childElement ); |
98 |
new DBusInterface( this, myElem ); |
100 |
else |
99 |
else |
101 |
kdWarning() << "Unhandled node in introspect data: " |
100 |
kdWarning() << "Unhandled node in introspect data: " |
102 |
<< childElement.tagName() << endl; |
101 |
<< myElem.tagName() << endl; |
103 |
childElement = childElement.nextSibling().toElement(); |
102 |
myElem = myElem.nextSibling().toElement(); |
104 |
} while ( !childElement.isNull() ); |
103 |
} while ( !myElem.isNull() ); |
105 |
} |
104 |
} |
106 |
catch ( std::runtime_error const & e ) { |
105 |
catch ( std::runtime_error const & e ) { |
107 |
m_ok = false; |
106 |
m_ok = false; |
Lines 129-134
Link Here
|
129 |
.arg( proxy->lastError().message() ) |
128 |
.arg( proxy->lastError().message() ) |
130 |
); |
129 |
); |
131 |
|
130 |
|
|
|
131 |
QDomDocument doc; |
132 |
if ( !doc.setContent( reply[0].toString() ) ) |
132 |
if ( !doc.setContent( reply[0].toString() ) ) |
133 |
throw QDBusXmlError( |
133 |
throw QDBusXmlError( |
134 |
i18n( |
134 |
i18n( |