void FeedPropertiesDialog::accept() { m_feed->setNotificationMode(false); m_feed->setTitle( feedName() ); m_feed->setXmlUrl( url() ); m_feed->setCustomFetchIntervalEnabled(autoFetch()); if (autoFetch()) m_feed->setFetchInterval(fetchInterval()); m_feed->setArchiveMode(archiveMode()); m_feed->setMaxArticleAge(maxArticleAge()); m_feed->setMaxArticleNumber(maxArticleNumber()); m_feed->setMarkImmediatelyAsRead(markImmediatelyAsRead()); m_feed->setUseNotification(useNotification()); m_feed->setLoadLinkedWebsite(loadLinkedWebsite()); m_feed->setNotificationMode(true); KDialog::accept(); }
void FeedPropertiesDialog::setFeed(Feed *feed) { m_feed = feed; if(!feed) return; setFeedName(feed->title()); setUrl(feed->xmlUrl()); setAutoFetch(feed->useCustomFetchInterval()); if(feed->useCustomFetchInterval()) setFetchInterval(feed->fetchInterval()); else setFetchInterval(Settings::autoFetchInterval()); setArchiveMode(feed->archiveMode()); setMaxArticleAge(feed->maxArticleAge()); setMaxArticleNumber(feed->maxArticleNumber()); setMarkImmediatelyAsRead(feed->markImmediatelyAsRead()); setUseNotification(feed->useNotification()); setLoadLinkedWebsite(feed->loadLinkedWebsite()); slotSetCaption(feedName()); }