void GuessSpellItem::sendGift() { ServerInterface *server = ServerInterface::getInstance(); std::string uid = server->getLoginAccountInfo()->m_id; std::vector<UiMsgEv::PropDef> props; props.push_back(UiMsgEv::PropDef(m_giftType,m_giftCount)); // 3: social guess. server->gainPropAction(uid,3,props); showGift(); }
void ProfileWidget::createActions() { connect(m_showHistory, SIGNAL(clicked()), this, SLOT(showHistory())); connect(m_hideHistory, SIGNAL(clicked()), this, SLOT(hideHistory())); connect(m_giftButton, SIGNAL(clicked()), this, SLOT(showGift())); connect(m_submitGift, SIGNAL(clicked()), this, SLOT(hideGift())); connect(m_submitGift, SIGNAL(clicked()), m_parent, SLOT(s_updateCredit())); connect(m_counteroffer, SIGNAL(clicked()), this, SLOT(showCOTable())); connect(m_hideCOTable, SIGNAL(clicked()), this, SLOT(hideCOTable())); connect(m_counterofferTable, SIGNAL(cellClicked(int, int)), this, SLOT(s_buttonClicked(int,int))); connect(m_counterofferTable, SIGNAL(cellClicked(int,int)), m_parent, SLOT(s_updateCredit())); }