Update docs.
This commit is contained in:
parent
c1fe781b50
commit
cb2b6277c7
resources/docs
src/librssguard/services
@ -233,4 +233,6 @@ To redirect debug output of RSS Guard to log file, do this:
|
||||
2. Navigate to your RSS Guard installation folder.
|
||||
3. Enter `rssguard.exe --log 'log.txt'`. RSS Guard will now start. You can of course specify arbitrary file where to store log and its location must be writable.
|
||||
4. Now try to simulate your problem.
|
||||
5. Attach generated `log.txt` file to your bug report.
|
||||
5. Attach generated `log.txt` file to your bug report.
|
||||
|
||||
On Windows, there are some problems if you want to see debug output of a GUI program, because Windows does not support "dual" applications. You can, however, display application's debug console output with PowerShell, specifically for RSS Guard like this: `.\rssguard.exe | Out-Default`. Just run this stuff when you are in RSS Guard's folder and you should see console output directly in your PowerShell window.
|
@ -15,6 +15,9 @@ class FormAccountDetails : public QDialog {
|
||||
public:
|
||||
explicit FormAccountDetails(const QIcon& icon, QWidget* parent = nullptr);
|
||||
|
||||
template<class T>
|
||||
T* account() const;
|
||||
|
||||
protected slots:
|
||||
|
||||
// Applies changes.
|
||||
@ -40,4 +43,9 @@ class FormAccountDetails : public QDialog {
|
||||
ServiceRoot* m_account;
|
||||
};
|
||||
|
||||
template<class T>
|
||||
inline T* FormAccountDetails::account() const {
|
||||
return qobject_cast<T*>(m_account);
|
||||
}
|
||||
|
||||
#endif // FORMACCOUNTDETAILS_H
|
||||
|
@ -24,7 +24,7 @@ TtRssServiceRoot* FormEditTtRssAccount::addEditAccount(TtRssServiceRoot* account
|
||||
}
|
||||
|
||||
exec();
|
||||
return ttRssAccount();
|
||||
return account<TtRssServiceRoot>();
|
||||
}
|
||||
|
||||
void FormEditTtRssAccount::apply() {
|
||||
@ -39,22 +39,22 @@ void FormEditTtRssAccount::apply() {
|
||||
editing_account = false;
|
||||
}
|
||||
|
||||
ttRssAccount()->network()->setUrl(m_details->m_ui.m_txtUrl->lineEdit()->text());
|
||||
ttRssAccount()->network()->setUsername(m_details->m_ui.m_txtUsername->lineEdit()->text());
|
||||
ttRssAccount()->network()->setPassword(m_details->m_ui.m_txtPassword->lineEdit()->text());
|
||||
ttRssAccount()->network()->setAuthIsUsed(m_details->m_ui.m_gbHttpAuthentication->isChecked());
|
||||
ttRssAccount()->network()->setAuthUsername(m_details->m_ui.m_txtHttpUsername->lineEdit()->text());
|
||||
ttRssAccount()->network()->setAuthPassword(m_details->m_ui.m_txtHttpPassword->lineEdit()->text());
|
||||
ttRssAccount()->network()->setForceServerSideUpdate(m_details->m_ui.m_checkServerSideUpdate->isChecked());
|
||||
ttRssAccount()->network()->setDownloadOnlyUnreadMessages(m_details->m_ui.m_checkDownloadOnlyUnreadMessages->isChecked());
|
||||
account<TtRssServiceRoot>()->network()->setUrl(m_details->m_ui.m_txtUrl->lineEdit()->text());
|
||||
account<TtRssServiceRoot>()->network()->setUsername(m_details->m_ui.m_txtUsername->lineEdit()->text());
|
||||
account<TtRssServiceRoot>()->network()->setPassword(m_details->m_ui.m_txtPassword->lineEdit()->text());
|
||||
account<TtRssServiceRoot>()->network()->setAuthIsUsed(m_details->m_ui.m_gbHttpAuthentication->isChecked());
|
||||
account<TtRssServiceRoot>()->network()->setAuthUsername(m_details->m_ui.m_txtHttpUsername->lineEdit()->text());
|
||||
account<TtRssServiceRoot>()->network()->setAuthPassword(m_details->m_ui.m_txtHttpPassword->lineEdit()->text());
|
||||
account<TtRssServiceRoot>()->network()->setForceServerSideUpdate(m_details->m_ui.m_checkServerSideUpdate->isChecked());
|
||||
account<TtRssServiceRoot>()->network()->setDownloadOnlyUnreadMessages(m_details->m_ui.m_checkDownloadOnlyUnreadMessages->isChecked());
|
||||
|
||||
ttRssAccount()->saveAccountDataToDatabase();
|
||||
account<TtRssServiceRoot>()->saveAccountDataToDatabase();
|
||||
accept();
|
||||
|
||||
if (editing_account) {
|
||||
ttRssAccount()->network()->logout();
|
||||
ttRssAccount()->completelyRemoveAllData();
|
||||
ttRssAccount()->syncIn();
|
||||
account<TtRssServiceRoot>()->network()->logout();
|
||||
account<TtRssServiceRoot>()->completelyRemoveAllData();
|
||||
account<TtRssServiceRoot>()->syncIn();
|
||||
}
|
||||
}
|
||||
|
||||
@ -72,7 +72,3 @@ void FormEditTtRssAccount::setEditableAccount(ServiceRoot* editable_account) {
|
||||
m_details->m_ui.m_checkServerSideUpdate->setChecked(existing_root->network()->forceServerSideUpdate());
|
||||
m_details->m_ui.m_checkDownloadOnlyUnreadMessages->setChecked(existing_root->network()->downloadOnlyUnreadMessages());
|
||||
}
|
||||
|
||||
TtRssServiceRoot* FormEditTtRssAccount::ttRssAccount() const {
|
||||
return qobject_cast<TtRssServiceRoot*>(m_account);
|
||||
}
|
||||
|
@ -23,9 +23,6 @@ class FormEditTtRssAccount : public FormAccountDetails {
|
||||
protected:
|
||||
virtual void setEditableAccount(ServiceRoot* editable_account);
|
||||
|
||||
private:
|
||||
TtRssServiceRoot* ttRssAccount() const;
|
||||
|
||||
private:
|
||||
TtRssAccountDetails* m_details;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user