mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
remove trailing whitespaces
This commit is contained in:
parent
b91efaa973
commit
46f62e1af9
117 changed files with 3039 additions and 3040 deletions
|
@ -15,7 +15,7 @@ namespace qt
|
|||
{
|
||||
}
|
||||
|
||||
void Worker::startDaemon()
|
||||
void Worker::startDaemon()
|
||||
{
|
||||
qDebug("Performing daemon start...");
|
||||
//try{
|
||||
|
@ -28,7 +28,7 @@ namespace qt
|
|||
emit resultReady(true, QObject::tr("Error: unknown exception"));
|
||||
}*/
|
||||
}
|
||||
void Worker::restartDaemon()
|
||||
void Worker::restartDaemon()
|
||||
{
|
||||
qDebug("Performing daemon restart...");
|
||||
//try{
|
||||
|
@ -55,7 +55,7 @@ namespace qt
|
|||
}
|
||||
|
||||
Controller::Controller(DaemonQTImpl& daemon):
|
||||
m_Daemon (daemon)
|
||||
m_Daemon (daemon)
|
||||
{
|
||||
Worker *worker = new Worker (m_Daemon);
|
||||
worker->moveToThread(&workerThread);
|
||||
|
@ -66,7 +66,7 @@ namespace qt
|
|||
connect(worker, &Worker::resultReady, this, &Controller::handleResults);
|
||||
workerThread.start();
|
||||
}
|
||||
Controller::~Controller()
|
||||
Controller::~Controller()
|
||||
{
|
||||
qDebug("Closing and waiting for daemon worker thread...");
|
||||
workerThread.quit();
|
||||
|
@ -79,7 +79,7 @@ namespace qt
|
|||
qDebug("Stopped the daemon.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
DaemonQTImpl::DaemonQTImpl ():
|
||||
mutex(nullptr), m_IsRunning(nullptr), m_RunningChangedCallback(nullptr)
|
||||
{
|
||||
|
@ -119,7 +119,7 @@ namespace qt
|
|||
start();
|
||||
}
|
||||
|
||||
void DaemonQTImpl::setRunningCallback(runningChangedCallback cb)
|
||||
void DaemonQTImpl::setRunningCallback(runningChangedCallback cb)
|
||||
{
|
||||
m_RunningChangedCallback = cb;
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ namespace qt
|
|||
void DaemonQTImpl::setRunning(bool newValue)
|
||||
{
|
||||
bool oldValue = m_IsRunning;
|
||||
if(oldValue!=newValue)
|
||||
if(oldValue!=newValue)
|
||||
{
|
||||
m_IsRunning = newValue;
|
||||
if(m_RunningChangedCallback)
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace qt
|
|||
public:
|
||||
|
||||
DaemonQTImpl ();
|
||||
~DaemonQTImpl ();
|
||||
~DaemonQTImpl ();
|
||||
|
||||
typedef void (*runningChangedCallback)();
|
||||
|
||||
|
@ -45,11 +45,11 @@ namespace qt
|
|||
Q_OBJECT
|
||||
public:
|
||||
|
||||
Worker (DaemonQTImpl& daemon);
|
||||
Worker (DaemonQTImpl& daemon);
|
||||
|
||||
private:
|
||||
|
||||
DaemonQTImpl& m_Daemon;
|
||||
DaemonQTImpl& m_Daemon;
|
||||
|
||||
public slots:
|
||||
void startDaemon();
|
||||
|
@ -58,7 +58,7 @@ namespace qt
|
|||
|
||||
signals:
|
||||
void resultReady(bool failed, QString failureMessage);
|
||||
};
|
||||
};
|
||||
|
||||
class Controller : public QObject
|
||||
{
|
||||
|
@ -68,7 +68,7 @@ namespace qt
|
|||
Controller(DaemonQTImpl& daemon);
|
||||
~Controller();
|
||||
private:
|
||||
DaemonQTImpl& m_Daemon;
|
||||
DaemonQTImpl& m_Daemon;
|
||||
|
||||
public slots:
|
||||
void handleResults(bool failed, QString failureMessage){
|
||||
|
|
|
@ -23,7 +23,7 @@ public class I2PDMainActivity extends QtActivity
|
|||
public void onCreate(Bundle savedInstanceState) {
|
||||
I2PDMainActivity.setInstance(this);
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
|
||||
//set the app be foreground (do not unload when RAM needed)
|
||||
doBindService();
|
||||
}
|
||||
|
@ -45,8 +45,8 @@ public class I2PDMainActivity extends QtActivity
|
|||
private static void setInstance(I2PDMainActivity instance) {
|
||||
I2PDMainActivity.instance = instance;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// private LocalService mBoundService;
|
||||
|
||||
|
@ -82,7 +82,7 @@ public class I2PDMainActivity extends QtActivity
|
|||
// class name because we want a specific service implementation that
|
||||
// we know will be running in our own process (and thus won't be
|
||||
// supporting component replacement by other applications).
|
||||
bindService(new Intent(this,
|
||||
bindService(new Intent(this,
|
||||
LocalService.class), mConnection, Context.BIND_AUTO_CREATE);
|
||||
mIsBound = true;
|
||||
}
|
||||
|
|
|
@ -35,8 +35,8 @@ public class LocalService extends Service {
|
|||
|
||||
// Display a notification about us starting. We put an icon in the status bar.
|
||||
showNotification();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<h1 id="blog_title" style="font-size:14pt; font-weight:normal; margin:0px">
|
||||
OpenSSL под Android в Qt
|
||||
|
||||
|
||||
</h1> <div class="smallfont shade"> <span class="shade">Запись от <a href="http://www.cyberforum.ru/blogs/748276/">Wyn</a> размещена 18.01.2016 в 18:22</span> </div> <script type="text/javascript" src="./patch_openssl_so_libs_files/blog_ajax_tag.js"></script> <div class="smallfont" id="blogtagcontainer_4086"> <span class="shade">Метки</span> <span id="blogtaglist_4086"><a href="http://www.cyberforum.ru/blog.php?tag=android&u=748276">android</a>, <a href="http://www.cyberforum.ru/blog.php?tag=openssl&u=748276">openssl</a>, <a href="http://www.cyberforum.ru/blog.php?tag=qt&u=748276">qt</a></span> </div> <div style="clear:both; margin-top:4px"></div> <hr size="1" style="color:#AAAAAA; background-color:#AAAAAA; margin-bottom:10px"> <div id="blog_message" style="margin-bottom:10px"><!-- google_ad_section_start --><!-- google_ad_section_start -->Мини-руководство по тому, как быстро скомпилировать OpenSSL для Android и связать его с проектом Qt.<br>
|
||||
Для Linux.<br> <br>
|
||||
Вначале действия полностью идентичны <a rel="nofollow" href="https://wiki.openssl.org/index.php/Android" target="_blank" title="https://wiki.openssl.org/index.php/Android">"расово-верному" руководству по компилянию OpenSSL для Android</a>:<br>
|
||||
|
|
|
@ -233,16 +233,16 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
|
||||
initCheckBox( OPTION("upnp","enabled",[]{return "true";}), uiSettings->enableUPnPCheckBox);
|
||||
initStringBox( OPTION("upnp","name",[]{return "I2Pd";}), uiSettings->upnpNameLineEdit);
|
||||
|
||||
|
||||
initCheckBox( OPTION("precomputation","elgamal",[]{return "false";}), uiSettings->useElGamalPrecomputedTablesCheckBox);
|
||||
|
||||
|
||||
initCheckBox( OPTION("reseed","verify",[]{return "";}), uiSettings->reseedVerifyCheckBox);
|
||||
initFileChooser( OPTION("reseed","file",[]{return "";}), uiSettings->reseedFileLineEdit, uiSettings->reseedFileBrowsePushButton);
|
||||
initStringBox( OPTION("reseed","urls",[]{return "";}), uiSettings->reseedURLsLineEdit);
|
||||
|
||||
|
||||
initStringBox( OPTION("addressbook","defaulturl",[]{return "";}), uiSettings->addressbookDefaultURLLineEdit);
|
||||
initStringBox( OPTION("addressbook","subscriptions",[]{return "";}), uiSettings->addressbookSubscriptionsURLslineEdit);
|
||||
|
||||
|
||||
initUInt16Box( OPTION("limits","transittunnels",[]{return "2500";}), uiSettings->maxNumOfTransitTunnelsLineEdit, tr("maxNumberOfTransitTunnels"));
|
||||
initUInt16Box( OPTION("limits","openfiles",[]{return "0";}), uiSettings->maxNumOfOpenFilesLineEdit, tr("maxNumberOfOpenFiles"));
|
||||
initUInt32Box( OPTION("limits","coresize",[]{return "0";}), uiSettings->coreFileMaxSizeNumberLineEdit, tr("coreFileMaxSize"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue