bool QXmppPubSubManager::requestItems(const QString &jid, const QString &node)
{
    QXmppPubSubIq iq;
    iq.setTo(jid);
    iq.setType(QXmppIq::Get);
    iq.setQueryType(QXmppPubSubIq::ItemsQuery);
    iq.setQueryNode(node);
    return client()->sendPacket(iq);
}
bool QXmppPubSubManager::setItems(const QString &jid, const QString &node, const QList<QXmppPubSubItem> items)
{
    QXmppPubSubIq iq;
    iq.setTo(jid);
    iq.setType(QXmppIq::Set);
    iq.setQueryType(QXmppPubSubIq::PublishQuery);
    iq.setQueryNode(node);
    iq.setItems(items);
    return client()->sendPacket(iq);
}