ChatMainWindow::ChatMainWindow()
{
setupUi(this);
// add our D-Bus interface and connect to D-Bus
new ChatAdaptor(this);
com::trolltech::chat *iface;
//connect(iface, SIGNAL(message(QString,QString)), this, SLOT(messageSlot(QString,QString)));
}
ChatMainWindow::ChatMainWindow()
: m_nickname(QLatin1String("nickname"))
{
setupUi(this);
// add our D-Bus interface and connect to D-Bus
new ChatAdaptor(this);
QDBusConnection::sessionBus().registerObject("/", this);
com::trolltech::chat *iface;
iface = new com::trolltech::chat(QString(), QString(), QDBusConnection::sessionBus(), this);
//connect(iface, SIGNAL(message(QString,QString)), this, SLOT(messageSlot(QString,QString)));
QDBusConnection::sessionBus().connect(QString(), QString(), "com.trolltech.chat", "message", this, SLOT(messageSlot(QString,QString)));
connect(iface, SIGNAL(action(QString,QString)), this, SLOT(actionSlot(QString,QString)));
}
To copy to clipboard, switch view to plain text mode
Bookmarks