[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kppp
From:       Laurent Montel <montel () kde ! org>
Date:       2007-01-04 14:42:24
Message-ID: 1167921744.582320.30862.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 619818 by mlaurent:

Fix dbus connection


 M  +5 -4      connect.cpp  
 M  +0 -3      connect.h  


--- trunk/KDE/kdenetwork/kppp/connect.cpp #619817:619818
@@ -111,10 +111,12 @@
   setObjectName(name);
 
   modified_hostname = false;
-  m_kpppInterface = new QDBusInterface("org.kde.kppp", "/Kppp", \
                "org.kde.kppp.Kppp",QDBusConnection::sessionBus() );
-  connect( this, SIGNAL(aboutToConnect()), m_kpppInterface,SIGNAL(aboutToConnect()) \
                );
-  connect( this, SIGNAL(connected()), m_kpppInterface,SIGNAL(connected()) );
 
+  QDBusConnection dbus = QDBusConnection::sessionBus();
+  dbus.connect(QString(), "/Kppp", "org.kde.kppp", "aboutToConnect", this, \
SLOT(aboutToConnect())); +  dbus.connect(QString(), "/Kppp", "org.kde.kppp", \
"connected", this, SLOT(connect())); +
+
   QVBoxLayout *tl = new QVBoxLayout(this);
   tl->setSpacing(10);
   tl->setMargin(8);
@@ -185,7 +187,6 @@
 
 
 ConnectWidget::~ConnectWidget() {
-    delete m_kpppInterface;
 }
 
 
--- trunk/KDE/kdenetwork/kppp/connect.h #619817:619818
@@ -42,7 +42,6 @@
 #include "docking.h"
 #include "loginterm.h"
 
-class QDBusInterface;
 #define MAXLOOPNEST (MAX_SCRIPT_ENTRIES/2)
 
 class PPPStats;
@@ -151,8 +150,6 @@
   int dialnumber; // the current number to dial
 
   PPPStats *stats;
-private:
-    QDBusInterface *m_kpppInterface;
 };
 
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic