mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Added api for news feeds to the plugin interface.
Added news feeds to the FeedReader plugin. Recompile needed. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6066 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f12473f7f7
commit
a60422069c
21 changed files with 1080 additions and 99 deletions
|
@ -42,40 +42,22 @@ bool FeedReaderUserNotify::hasSetting(QString &name)
|
|||
|
||||
bool FeedReaderUserNotify::notifyEnabled()
|
||||
{
|
||||
bool enable = true;
|
||||
|
||||
Settings->beginGroup(QString("FeedReader"));
|
||||
enable = Settings->value("TrayNotifyEnable", enable).toBool();
|
||||
Settings->endGroup();
|
||||
|
||||
return enable;
|
||||
return Settings->valueFromGroup("FeedReader", "TrayNotifyEnable", true).toBool();
|
||||
}
|
||||
|
||||
bool FeedReaderUserNotify::notifyCombined()
|
||||
{
|
||||
bool combined = false;
|
||||
|
||||
Settings->beginGroup(QString("FeedReader"));
|
||||
combined = Settings->value("TrayNotifyCombined", combined).toBool();
|
||||
Settings->endGroup();
|
||||
|
||||
return combined;
|
||||
return Settings->valueFromGroup("FeedReader", "TrayNotifyCombined", false).toBool();
|
||||
}
|
||||
|
||||
bool FeedReaderUserNotify::notifyBlink()
|
||||
{
|
||||
bool blink = false;
|
||||
|
||||
Settings->beginGroup(QString("FeedReader"));
|
||||
blink = Settings->value("TrayNotifyBlink", blink).toBool();
|
||||
Settings->endGroup();
|
||||
|
||||
return blink;
|
||||
return Settings->valueFromGroup("FeedReader", "TrayNotifyBlink", false).toBool();
|
||||
}
|
||||
|
||||
void FeedReaderUserNotify::setNotifyEnabled(bool enabled, bool combined, bool blink)
|
||||
{
|
||||
Settings->beginGroup(QString("FeedReader"));
|
||||
Settings->beginGroup("FeedReader");
|
||||
Settings->setValue("TrayNotifyEnable", enabled);
|
||||
Settings->setValue("TrayNotifyCombined", combined);
|
||||
Settings->setValue("TrayNotifyBlink", blink);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue