Clientversion

This commit is contained in:
myriadcoin
2014-03-19 22:51:04 +02:00
parent 9af308509e
commit 8088b4a295
4 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 99
#define CLIENT_VERSION_BUILD 4
#define CLIENT_VERSION_BUILD 5
// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
+13 -13
View File
@@ -83,8 +83,8 @@ void setupAmountWidget(QLineEdit *widget, QWidget *parent)
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
{
// return if URI is not valid or is no bitcoin URI
if(!uri.isValid() || uri.scheme() != QString("bitcoin"))
// return if URI is not valid or is no myriadcoin URI
if(!uri.isValid() || uri.scheme() != QString("myriadcoin"))
return false;
SendCoinsRecipient rv;
@@ -135,13 +135,13 @@ bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
bool parseBitcoinURI(QString uri, SendCoinsRecipient *out)
{
// Convert bitcoin:// to bitcoin:
// Convert myriadcoin:// to myriadcoin:
//
// Cannot handle this later, because bitcoin:// will cause Qt to see the part after // as host,
// Cannot handle this later, because myriadcoin:// will cause Qt to see the part after // as host,
// which will lower-case it (and thus invalidate the address).
if(uri.startsWith("bitcoin://"))
if(uri.startsWith("myriadcoin://"))
{
uri.replace(0, 10, "bitcoin:");
uri.replace(0, 10, "myriadcoin:");
}
QUrl uriInstance(uri);
return parseBitcoinURI(uriInstance, out);
@@ -295,12 +295,12 @@ bool ToolTipToRichTextFilter::eventFilter(QObject *obj, QEvent *evt)
#ifdef WIN32
boost::filesystem::path static StartupShortcutPath()
{
return GetSpecialFolderPath(CSIDL_STARTUP) / "Bitcoin.lnk";
return GetSpecialFolderPath(CSIDL_STARTUP) / "Myriadcoin.lnk";
}
bool GetStartOnSystemStartup()
{
// check for Bitcoin.lnk
// check for Myriadcoin.lnk
return boost::filesystem::exists(StartupShortcutPath());
}
@@ -377,7 +377,7 @@ boost::filesystem::path static GetAutostartDir()
boost::filesystem::path static GetAutostartFilePath()
{
return GetAutostartDir() / "bitcoin.desktop";
return GetAutostartDir() / "myriadcoin.desktop";
}
bool GetStartOnSystemStartup()
@@ -415,7 +415,7 @@ bool SetStartOnSystemStartup(bool fAutoStart)
boost::filesystem::ofstream optionFile(GetAutostartFilePath(), std::ios_base::out|std::ios_base::trunc);
if (!optionFile.good())
return false;
// Write a bitcoin.desktop file to the autostart directory:
// Write a myriadcoin.desktop file to the autostart directory:
optionFile << "[Desktop Entry]\n";
optionFile << "Type=Application\n";
optionFile << "Name=Myriadcoin\n";
@@ -437,7 +437,7 @@ bool SetStartOnSystemStartup(bool fAutoStart)
LSSharedFileListItemRef findStartupItemInList(LSSharedFileListRef list, CFURLRef findUrl);
LSSharedFileListItemRef findStartupItemInList(LSSharedFileListRef list, CFURLRef findUrl)
{
// loop through the list of startup items and try to find the bitcoin app
// loop through the list of startup items and try to find the myriadcoin app
CFArrayRef listSnapshot = LSSharedFileListCopySnapshot(list, NULL);
for(int i = 0; i < CFArrayGetCount(listSnapshot); i++) {
LSSharedFileListItemRef item = (LSSharedFileListItemRef)CFArrayGetValueAtIndex(listSnapshot, i);
@@ -471,7 +471,7 @@ bool SetStartOnSystemStartup(bool fAutoStart)
LSSharedFileListItemRef foundItem = findStartupItemInList(loginItems, bitcoinAppUrl);
if(fAutoStart && !foundItem) {
// add bitcoin app to startup item list
// add myriadcoin app to startup item list
LSSharedFileListInsertItemURL(loginItems, kLSSharedFileListItemBeforeFirst, NULL, NULL, bitcoinAppUrl, NULL, NULL);
}
else if(!fAutoStart && foundItem) {
@@ -493,7 +493,7 @@ HelpMessageBox::HelpMessageBox(QWidget *parent) :
header = tr("Myriadcoin-Qt") + " " + tr("version") + " " +
QString::fromStdString(FormatFullVersion()) + "\n\n" +
tr("Usage:") + "\n" +
" bitcoin-qt [" + tr("command-line options") + "] " + "\n";
" myriadcoin-qt [" + tr("command-line options") + "] " + "\n";
coreOptions = QString::fromStdString(HelpMessage());
+2 -2
View File
@@ -25,7 +25,7 @@
using namespace boost;
const int BITCOIN_IPC_CONNECT_TIMEOUT = 1000; // milliseconds
const QString BITCOIN_IPC_PREFIX("bitcoin:");
const QString BITCOIN_IPC_PREFIX("myriadcoin:");
//
// Create a name that is unique for:
@@ -106,7 +106,7 @@ PaymentServer::PaymentServer(QApplication* parent) : QObject(parent), saveURIs(t
uriServer = new QLocalServer(this);
if (!uriServer->listen(name))
qDebug() << tr("Cannot start bitcoin: click-to-pay handler");
qDebug() << tr("Cannot start myriadcoin: click-to-pay handler");
else
connect(uriServer, SIGNAL(newConnection()), this, SLOT(handleURIConnection()));
}
+1 -1
View File
@@ -3,7 +3,7 @@
//
// This class handles payment requests from clicking on
// bitcoin: URIs
// myriadcoin: URIs
//
// This is somewhat tricky, because we have to deal with
// the situation where the user clicks on a link during