Adapted to latest dbus-1-tqt version (TQT_DBusObjectPath inheriting from TQString).

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 6 years ago
parent 2895b54800
commit feae597446
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -105,7 +105,7 @@ void CellularDeviceTray::addMenuItems(TDEPopupMenu* menu)
NMProxy* nm = NMProxy::getInstance(); NMProxy* nm = NMProxy::getInstance();
Connection* active_conn = nm->getActiveConnection(d->dev); Connection* active_conn = nm->getActiveConnection(d->dev);
if (active_conn) if (active_conn)
kdDebug() << active_conn->getObjectPath().data() << endl; kdDebug() << active_conn->getObjectPath().ascii() << endl;
// get all available Connections for cellular devices // get all available Connections for cellular devices
// WILLTODO : repeat for GSM // WILLTODO : repeat for GSM

@ -92,8 +92,8 @@ void NetworkMenuItem::slotActivate()
NMProxy* nm = NMProxy::getInstance(); NMProxy* nm = NMProxy::getInstance();
if (nm) if (nm)
{ {
kdDebug() << "Activate Connection " << d->conn->getObjectPath().data() << " on Device " << d->dev->getObjectPath().ascii() << endl; kdDebug() << "Activate Connection " << d->conn->getObjectPath().ascii() << " on Device " << d->dev->getObjectPath().ascii() << endl;
printf("Activate Connection %s on Device %s\n", d->conn->getObjectPath().data(), d->dev->getObjectPath().ascii()); printf("Activate Connection %s on Device %s\n", d->conn->getObjectPath().ascii(), d->dev->getObjectPath().ascii());
#if NM_CHECK_VERSION(0,8,992) #if NM_CHECK_VERSION(0,8,992)
if (nm->ActivateConnectionAsync(id, "org.freedesktop.NetworkManagerUserSettings", d->conn->getObjectPath(), TQT_DBusObjectPath(QCString(d->dev->getObjectPath())), d->conn->getObjectPath(), err)) if (nm->ActivateConnectionAsync(id, "org.freedesktop.NetworkManagerUserSettings", d->conn->getObjectPath(), TQT_DBusObjectPath(QCString(d->dev->getObjectPath())), d->conn->getObjectPath(), err))
@ -110,7 +110,7 @@ void NetworkMenuItem::slotActivate()
else if (d->conn) else if (d->conn)
{ {
// no device given, just take the default device // no device given, just take the default device
printf("Activate Connection %s on default device\n", d->conn->getObjectPath().data()); printf("Activate Connection %s on default device\n", d->conn->getObjectPath().ascii());
TQT_DBusObjectPath act_conn = nm->getDefaultActiveConnection(); TQT_DBusObjectPath act_conn = nm->getDefaultActiveConnection();
TQT_DBusObjectPath device = nm->getDeviceForActiveConnection(act_conn); TQT_DBusObjectPath device = nm->getDeviceForActiveConnection(act_conn);
vpn_attempt_this_conn = d->conn->getObjectPath(); vpn_attempt_this_conn = d->conn->getObjectPath();

@ -781,7 +781,7 @@ void Tray::slotDeactivateConnection(int index)
NMProxy* nm = NMProxy::getInstance(); NMProxy* nm = NMProxy::getInstance();
if (conn) { if (conn) {
TQString actionText = conn->getObjectPath().data(); TQString actionText = conn->getObjectPath().ascii();
nm->deactivateConnection(conn, dev); nm->deactivateConnection(conn, dev);
} }
} }

@ -102,7 +102,7 @@ void WiredDeviceTray::addMenuItems(TDEPopupMenu* menu)
NMProxy* nm = NMProxy::getInstance(); NMProxy* nm = NMProxy::getInstance();
Connection* active_conn = nm->getActiveConnection(d->dev); Connection* active_conn = nm->getActiveConnection(d->dev);
if (active_conn) if (active_conn)
kdDebug() << active_conn->getObjectPath().data() << endl; kdDebug() << active_conn->getObjectPath().ascii() << endl;
// get all available Connections for wired devices // get all available Connections for wired devices
TQValueList<Connection*> connections = connectionStore->getConnections(NM_SETTING_WIRED_SETTING_NAME); TQValueList<Connection*> connections = connectionStore->getConnections(NM_SETTING_WIRED_SETTING_NAME);

@ -153,7 +153,7 @@ void WirelessDeviceTray::addWirelessNetworks(TDEPopupMenu* menu)
NMProxy* nm = NMProxy::getInstance(); NMProxy* nm = NMProxy::getInstance();
Connection* active_conn = nm->getActiveConnection(d->dev); Connection* active_conn = nm->getActiveConnection(d->dev);
if (active_conn) if (active_conn)
kdDebug() << active_conn->getObjectPath().data() << endl; kdDebug() << active_conn->getObjectPath().ascii() << endl;
// add all wireless connections in range // add all wireless connections in range
// (we may have more then one connection per network) // (we may have more then one connection per network)

@ -72,7 +72,7 @@ void WirelessNetworkItem::slotActivate()
{ {
if ( _conn ) if ( _conn )
{ {
kdDebug() << "Activate Connection " << _conn->getObjectPath().data() << " on Device " << _dev->getObjectPath().ascii() << endl; kdDebug() << "Activate Connection " << _conn->getObjectPath().ascii() << " on Device " << _dev->getObjectPath().ascii() << endl;
#if NM_CHECK_VERSION(0,8,992) #if NM_CHECK_VERSION(0,8,992)
if (!nm->ActivateConnectionAsync(id, "org.freedesktop.NetworkManagerUserSettings", _conn->getObjectPath(), TQT_DBusObjectPath(QCString(_dev->getObjectPath())), _conn->getObjectPath(), err)) if (!nm->ActivateConnectionAsync(id, "org.freedesktop.NetworkManagerUserSettings", _conn->getObjectPath(), TQT_DBusObjectPath(QCString(_dev->getObjectPath())), _conn->getObjectPath(), err))
#else #else

@ -404,7 +404,7 @@ static TQString toString(const TQDomElement& element)
static TQT_DBusObjectPath toObjectPath(const TQDomElement& element) static TQT_DBusObjectPath toObjectPath(const TQDomElement& element)
{ {
return TQCString(element.text().ascii()); return element.text();
} }
static TQT_DBusData::Type typeFromEntry(const TQDomElement& element) static TQT_DBusData::Type typeFromEntry(const TQDomElement& element)

Loading…
Cancel
Save