mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix compilation due to RsPeers::GetRetroshareInvite
This commit is contained in:
parent
2b3570903f
commit
c6ca3c5669
@ -422,7 +422,9 @@ void PeersHandler::handleWildcard(Request &req, Response &resp)
|
||||
{
|
||||
if(str == "self" && !req.mPath.empty() && req.mPath.top() == "certificate")
|
||||
{
|
||||
resp.mDataStream << makeKeyValue("cert_string", mRsPeers->GetRetroshareInvite(false));
|
||||
resp.mDataStream << makeKeyValue(
|
||||
"cert_string",
|
||||
mRsPeers->GetRetroshareInvite());
|
||||
resp.setOk();
|
||||
return;
|
||||
}
|
||||
|
@ -33,9 +33,9 @@
|
||||
#include <iostream>
|
||||
|
||||
#define URL_FAQ "http://retroshare.sourceforge.net/wiki/index.php/Frequently_Asked_Questions"
|
||||
#define URL_FORUM "http://retroshare.sourceforge.net/forum/"
|
||||
#define URL_WEBSITE "http://retroshare.org"
|
||||
#define URL_DOWNLOAD "http://retroshare.sourceforge.net/downloads.html"
|
||||
#define URL_FORUM "https://github.com/RetroShare/RetroShare/issues"
|
||||
#define URL_WEBSITE "http://retroshare.net"
|
||||
#define URL_DOWNLOAD "http://retroshare.net/downloads.html"
|
||||
|
||||
#define EMAIL_SUBSCRIBE "lists@retroshare.org"
|
||||
|
||||
@ -236,7 +236,7 @@ void GetStartedDialog::inviteFriends()
|
||||
{
|
||||
RsAutoUpdatePage::lockAllEvents();
|
||||
|
||||
cert = rsPeers->GetRetroshareInvite(false);
|
||||
cert = rsPeers->GetRetroshareInvite();
|
||||
|
||||
RsAutoUpdatePage::unlockAllEvents() ;
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ ConnectFriendWizard::ConnectFriendWizard(QWidget *parent) :
|
||||
body = GetStartedDialog::GetInviteText();
|
||||
|
||||
body += "\n" + GetStartedDialog::GetCutBelowText();
|
||||
body += "\n\n" + QString::fromUtf8(rsPeers->GetRetroshareInvite(false).c_str());
|
||||
body += "\n\n" + QString::fromUtf8(rsPeers->GetRetroshareInvite().c_str());
|
||||
|
||||
std::string advsetting;
|
||||
if(rsConfig->getConfigurationOption(RS_CONFIG_ADVANCED, advsetting) && (advsetting == "YES"))
|
||||
@ -436,7 +436,7 @@ void ConnectFriendWizard::initializePage(int id)
|
||||
QString body = ui->inviteTextEdit->toPlainText();
|
||||
|
||||
body += "\n" + GetStartedDialog::GetCutBelowText();
|
||||
body += "\n\n" + QString::fromUtf8(rsPeers->GetRetroshareInvite(false).c_str());
|
||||
body += "\n\n" + QString::fromUtf8(rsPeers->GetRetroshareInvite().c_str());
|
||||
|
||||
ui->inviteTextEdit->setPlainText(body);
|
||||
}
|
||||
@ -797,7 +797,7 @@ bool ConnectFriendWizard::validateCurrentPage()
|
||||
QString body = ui->inviteTextEdit->toPlainText();
|
||||
|
||||
body += "\n" + GetStartedDialog::GetCutBelowText();
|
||||
body += "\n\n" + QString::fromUtf8(rsPeers->GetRetroshareInvite(false).c_str());
|
||||
body += "\n\n" + QString::fromUtf8(rsPeers->GetRetroshareInvite().c_str());
|
||||
|
||||
sendMail (mailaddresses, ui->subjectEdit->text(), body);
|
||||
}
|
||||
@ -998,7 +998,8 @@ void ConnectFriendWizard::accept()
|
||||
|
||||
void ConnectFriendWizard::updateOwnCert()
|
||||
{
|
||||
std::string invite = rsPeers->GetRetroshareInvite(ui->userCertIncludeSignaturesButton->isChecked());
|
||||
std::string invite = rsPeers->GetRetroshareInvite( rsPeers->getOwnId(),
|
||||
ui->userCertIncludeSignaturesButton->isChecked() );
|
||||
|
||||
std::cerr << "TextPage() getting Invite: " << invite << std::endl;
|
||||
|
||||
@ -1174,7 +1175,7 @@ void ConnectFriendWizard::generateCertificateCalled()
|
||||
std::cerr << " generateCertificateCalled" << std::endl;
|
||||
#endif
|
||||
|
||||
std::string cert = rsPeers->GetRetroshareInvite(false);
|
||||
std::string cert = rsPeers->GetRetroshareInvite();
|
||||
if (cert.empty()) {
|
||||
QMessageBox::information(this, "RetroShare", tr("Sorry, create certificate failed"), QMessageBox::Ok, QMessageBox::Ok);
|
||||
return;
|
||||
|
@ -92,7 +92,7 @@ void ProfileWidget::statusmessagedlg()
|
||||
|
||||
void ProfileWidget::copyCert()
|
||||
{
|
||||
std::string cert = rsPeers->GetRetroshareInvite(false);
|
||||
std::string cert = rsPeers->GetRetroshareInvite();
|
||||
if (cert.empty()) {
|
||||
QMessageBox::information(this, tr("RetroShare"),
|
||||
tr("Sorry, create certificate failed"),
|
||||
|
@ -96,8 +96,11 @@ CryptoPage::~CryptoPage()
|
||||
void
|
||||
CryptoPage::load()
|
||||
{
|
||||
/* Loads ouer default Puplickey */
|
||||
ui.certplainTextEdit->setPlainText(QString::fromUtf8(rsPeers->GetRetroshareInvite(ui._includeSignatures_CB->isChecked()).c_str()));
|
||||
ui.certplainTextEdit->setPlainText(
|
||||
QString::fromUtf8(
|
||||
rsPeers->GetRetroshareInvite(
|
||||
rsPeers->getOwnId(),
|
||||
ui._includeSignatures_CB->isChecked() ).c_str() ) );
|
||||
}
|
||||
void
|
||||
CryptoPage::copyRSLink()
|
||||
|
Loading…
Reference in New Issue
Block a user