DailymotionComment::DailymotionComment(const QVariantMap &comment, QObject *parent) : CTComment(parent), m_request(0) { setService(Resources::DAILYMOTION); loadComment(comment); }
DailymotionComment::DailymotionComment(const QString &id, QObject *parent) : CTComment(parent), m_request(0) { setService(Resources::DAILYMOTION); loadComment(id); }
void DailymotionComment::onCommentRequestFinished() { if (m_request->status() == QDailymotion::ResourcesRequest::Ready) { loadComment(m_request->result().toMap()); } disconnect(m_request, SIGNAL(finished()), this, SLOT(onCommentRequestFinished())); emit statusChanged(status()); }
void DailymotionComment::onAddCommentRequestFinished() { if (m_request->status() == QDailymotion::ResourcesRequest::Ready) { loadComment(m_request->result().toMap()); emit Dailymotion::instance()->commentAdded(this); #ifdef CUTETUBE_DEBUG qDebug() << "DailymotionComment::onAddCommentRequestFinished OK" << videoId(); #endif } disconnect(m_request, SIGNAL(finished()), this, SLOT(onAddCommentRequestFinished())); emit statusChanged(status()); }
void PhotoDialog::loadRequest(const TokenQueue *queue, const TokenRequest &req) { std::cerr << "PhotoShare::loadRequest()"; std::cerr << std::endl; if (queue == mPhotoQueue) { /* now switch on req */ switch(req.mType) { case TOKENREQ_MSGINFO: { switch(req.mAnsType) { case RS_TOKREQ_ANSTYPE_DATA: loadComment(req.mToken); break; case RS_TOKREQ_ANSTYPE_LIST: loadList(req.mToken); break; case RS_TOKREQ_ANSTYPE_ACK: acknowledgeComment(req.mToken); break; default: std::cerr << "PhotoShare::loadRequest() ERROR: MSG INVALID TYPE"; std::cerr << std::endl; break; } break; } default: { std::cerr << "PhotoShare::loadRequest() ERROR: INVALID TYPE"; std::cerr << std::endl; break; } } } }
// Callback from Widget->FeedHolder->ServiceDialog->CommentContainer->CommentDialog, void GxsChannelPostsWidget::openComments(uint32_t /*type*/, const RsGxsGroupId &groupId, const RsGxsMessageId &msgId, const QString &title) { emit loadComment(groupId, msgId, title); }
void DailymotionComment::addComment(const QVariantMap &comment) { loadComment(comment); addComment(); }
void PostedListWidget::openComments(uint32_t /*feed_type*/, const RsGxsGroupId &groupId, const RsGxsMessageId &msgId, const QString &title) { emit loadComment(groupId, msgId, title); }