xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

以前網上找到的一份源代碼,但是忘記下載鏈接了。。我自己完美運行,所以上傳分享給大家。供大家參考,互相討論學習。

資源截圖

代碼片段和文件信息

#include?“addFriend.h“

AddFriendBox::AddFriendBox(links?*tlink
???const?QString?&myAccount
???QWidget?*parent/*?=0?*/)
???:?tempBox(2?parent)?link(tlink)
{
setWindowtitle(?tr(“add?Friend“)?);
setFixedSize(200?150);

message.kind?=?REQUEST_FRIEND;
//發送者是自己(這是廢話,呵呵)
message.sender?=?myAccount;

//setLabelName(“對方帳號“?“驗證信息“);
setLabelName(tr(“other‘s?account“)?tr(“Authentication?information“));
connect(link?SIGNAL(newReplySignal(qint32))?this?SLOT(result(qint32)));
}

AddFriendBox::~AddFriendBox()
{

}

void?AddFriendBox::clickedOKButton()
{
TempStrings?temp;
temp?=?getInformation();

if(temp.one.isEmpty())
{
//QMessageBox::critical(this?“ERROR“?“對方帳號不能為空“);
QMessageBox::critical(this?tr(“Error“)
tr(“The?other‘s?account?can?not?be?empty“));
return;
}

message.receiver?=?temp.one;
message.text?=?temp.two;
//好友不能是你自己
if(message.sender?==?message.receiver)
{
QMessageBox::critical(this?tr(“Error“)
tr(“Your?friends?can‘t?be?your?own“));
return;
}
link->addFriendRequest(message);
setAllEnabled(false);
}

void?AddFriendBox::result(qint32?replyKind)
{
if(FRIEDN_NO_ACCOUNT?==?replyKind)
//QMessageBox::critical(this?“錯誤“?“沒有這個用戶名“);
QMessageBox::critical(this?tr(“Error“)?
tr(“No?this?user?please?try?again“));

else?if(ALREAD_FRIENDS?==?replyKind)
//QMessageBox::critical(this?“錯誤“?“他(她)們已經是好友了或已經發送了好友請求“);
QMessageBox::critical(this?tr(“Error“)?
tr(“They?are?already?good?friends?or?have?sended?the?friend?request“));
else?if(FRIEND_REQUESTED?==?replyKind)
{
//QMessageBox::critical(this?“恭喜“?“好友請求已經發送,正在等待對方回復“);
QMessageBox::information(this?tr(“Congratulations“)
tr(“The?friend‘s?requestion?have?been?sended?is?waiting?for?reply“));
close();
}
setAllEnabled(true);
}

void?AddFriendBox::closeEvent(QCloseEvent?*event)
{
//因為link的parent不是AddFriendBox,所以不會隨著的關閉而斷開連接,
//所以要手動斷開連接
disconnect(link?SIGNAL(newReplySignal(qint32))?this?SLOT(result(qint32)));
}

評論

共有 條評論