MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / reconnectServer

Method reconnectServer

src/WizMainWindow.cpp:4163–4177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4161}
4162
4163void WizMainWindow::reconnectServer()
4164{
4165 WizDatabase& db = m_dbMgr.db();
4166 WizToken::setUserId(db.getUserId());
4167 if (!m_settings->password().isEmpty())
4168 {
4169 WizToken::setPasswd(m_settings->password());
4170 }
4171
4172 m_syncFull->clearCurrentToken();
4173 m_syncQuick->clearCurrentToken();
4174 connect(WizToken::instance(), SIGNAL(tokenAcquired(QString)),
4175 SLOT(on_TokenAcquired(QString)), Qt::QueuedConnection);
4176 WizToken::requestToken();
4177}
4178
4179void WizMainWindow::setFocusForNewNote(WIZDOCUMENTDATA doc)
4180{

Callers

nothing calls this directly

Calls 5

connectFunction · 0.85
getUserIdMethod · 0.80
isEmptyMethod · 0.80
clearCurrentTokenMethod · 0.80
passwordMethod · 0.45

Tested by

no test coverage detected