xmppClient::xmppClient(QObject *parent) : QXmppClient(parent) , m_turnPort(0) , m_turnFinished(false) { bool check; Q_UNUSED(check); // add QXmppCallManager extension callManager = new QXmppCallManager; addExtension(callManager); check = connect(this, SIGNAL(connected()), this, SLOT(slotConnected())); Q_ASSERT(check); check = connect(this, SIGNAL(presenceReceived(QXmppPresence)), this, SLOT(slotPresenceReceived(QXmppPresence))); Q_ASSERT(check); check = connect(callManager, SIGNAL(callReceived(QXmppCall*)), this, SLOT(slotCallReceived(QXmppCall*))); Q_ASSERT(check); check = connect(&m_dns, SIGNAL(finished()), this, SLOT(slotDnsLookupFinished())); Q_ASSERT(check); }
rpcClient::rpcClient(QObject *parent) : QXmppClient(parent) { // add RPC manager m_rpcManager = new QXmppRpcManager; addExtension(m_rpcManager); // observe incoming presences bool check = connect(this, SIGNAL(presenceReceived(QXmppPresence)), this, SLOT(slotPresenceReceived(QXmppPresence))); Q_ASSERT(check); Q_UNUSED(check); }
xmppClient::xmppClient(QObject *parent) : QXmppClient(parent) { // add QXmppCallManager extension callManager = new QXmppCallManager; addExtension(callManager); bool check = connect(this, SIGNAL(presenceReceived(QXmppPresence)), this, SLOT(slotPresenceReceived(QXmppPresence))); Q_ASSERT(check); check = connect(callManager, SIGNAL(callReceived(QXmppCall*)), this, SLOT(slotCallReceived(QXmppCall*))); Q_ASSERT(check); }
xmppClient::xmppClient(QObject *parent) : QXmppClient(parent), transferManager(0) { // add transfer manager transferManager = new QXmppTransferManager; addExtension(transferManager); // uncomment one of the following if you only want to use a specific transfer method: // // transferManager->setSupportedMethods(QXmppTransferJob::InBandMethod); // transferManager->setSupportedMethods(QXmppTransferJob::SocksMethod); bool check = connect(this, SIGNAL(presenceReceived(QXmppPresence)), this, SLOT(slotPresenceReceived(QXmppPresence))); Q_ASSERT(check); check = connect(transferManager, SIGNAL(fileReceived(QXmppTransferJob*)), this, SLOT(slotFileReceived(QXmppTransferJob*))); Q_ASSERT(check); }