Exemplo n.º 1
0
void QtUMSendFile::init(const QString & contactId,const QString & userName,const QString & md5,const QString & contactIdUploadFile,const QString & senderName) {

	setContactId(contactId);
	setUsername(userName);
	setMd5(md5);
	setContactIdUploadFile(contactIdUploadFile);
	setSenderName(senderName);

	Config & config = ConfigManager::getInstance().getCurrentConfig();
	QString address = QString::fromStdString(config.getSendFileUrl());


	address = address+QString("?username=%1&userkey=%2&recipient=%3&uid=%4").arg(_userName).arg(_md5).arg(_contactIdUploadFile).arg(_uuid);

	_ui->webView->setUrl(QUrl(address));
	
}
Exemplo n.º 2
0
/* get mail content from inbox */
bool Mapix::getInboxMailContent()
{
	setSenderName(contentOfMessage[Mapix::cols].senderName);
	setSenderEmail(contentOfMessage[Mapix::cols].senderEmail);
	setSenderBody(contentOfMessage[Mapix::cols].senderBody);
	setSenderSubject(contentOfMessage[Mapix::cols].senderSubject);
	setSenderTime(contentOfMessage[Mapix::cols].SenderReceivedTime);

	if(Mapix::cols == inboxRowCount)
	{
		delete [] contentOfMessage;
		Mapix::cols = 0;
		return 0;
	}
	else
		Mapix::cols++;
		
	return 1;
}