mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
- Switched to new RsAccounts interface.
- Reworked ServerPage to support HiddenNode configuration. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-initdev@7028 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
39db508ce7
commit
bbe3ee8d2f
13 changed files with 329 additions and 52 deletions
|
@ -456,9 +456,9 @@ void Rshare::loadStyleSheet(const QString &sheetName)
|
|||
file.setFileName(":/qss/stylesheet/" + sheetName.mid(1) + ".qss");
|
||||
} else {
|
||||
/* external stylesheet */
|
||||
file.setFileName(QString::fromUtf8(RsInit::RsConfigDirectory().c_str()) + "/qss/" + sheetName + ".qss");
|
||||
file.setFileName(QString::fromUtf8(RsAccounts::ConfigDirectory().c_str()) + "/qss/" + sheetName + ".qss");
|
||||
if (!file.exists()) {
|
||||
file.setFileName(QString::fromUtf8(RsInit::getRetroshareDataDirectory().c_str()) + "/qss/" + sheetName + ".qss");
|
||||
file.setFileName(QString::fromUtf8(RsAccounts::DataDirectory().c_str()) + "/qss/" + sheetName + ".qss");
|
||||
}
|
||||
}
|
||||
if (file.open(QFile::ReadOnly)) {
|
||||
|
@ -488,14 +488,14 @@ void Rshare::getAvailableStyleSheets(QMap<QString, QString> &styleSheets)
|
|||
styleSheets.insert(QString("%1 (%2)").arg(name, tr("built-in")), ":" + name);
|
||||
}
|
||||
}
|
||||
fileInfoList = QDir(QString::fromUtf8(RsInit::RsConfigDirectory().c_str()) + "/qss/").entryInfoList(QStringList("*.qss"));
|
||||
fileInfoList = QDir(QString::fromUtf8(RsAccounts::ConfigDirectory().c_str()) + "/qss/").entryInfoList(QStringList("*.qss"));
|
||||
foreach (fileInfo, fileInfoList) {
|
||||
if (fileInfo.isFile()) {
|
||||
QString name = fileInfo.baseName();
|
||||
styleSheets.insert(name, name);
|
||||
}
|
||||
}
|
||||
fileInfoList = QDir(QString::fromUtf8(RsInit::getRetroshareDataDirectory().c_str()) + "/qss/").entryInfoList(QStringList("*.qss"));
|
||||
fileInfoList = QDir(QString::fromUtf8(RsAccounts::DataDirectory().c_str()) + "/qss/").entryInfoList(QStringList("*.qss"));
|
||||
foreach (fileInfo, fileInfoList) {
|
||||
if (fileInfo.isFile()) {
|
||||
QString name = fileInfo.baseName();
|
||||
|
@ -613,15 +613,10 @@ void Rshare::blinkTimer()
|
|||
}
|
||||
}
|
||||
|
||||
bool Rshare::loadCertificate(const std::string &accountId, bool autoLogin, std::string gpgId)
|
||||
bool Rshare::loadCertificate(const std::string &accountId, bool autoLogin)
|
||||
{
|
||||
if (gpgId.empty()) {
|
||||
std::string gpgName, gpgEmail, sslName;
|
||||
if (!RsInit::getAccountDetails(accountId, gpgId, gpgName, gpgEmail, sslName)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!RsInit::SelectGPGAccount(gpgId)) {
|
||||
if (!RsAccounts::SelectAccount(accountId))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue