3 #ifndef AKREGATOR_SETTINGS_H
4 #define AKREGATOR_SETTINGS_H
8 #include <kconfigskeleton.h>
19 enum type { keepAllArticles, limitArticleNumber, limitArticleAge, disableArchiving, COUNT };
24 enum type { OpenInInternalBrowser, OpenInBackground, OpenInExternalBrowser, COUNT };
29 enum type { OpenInInternalBrowser, OpenInBackground, OpenInExternalBrowser, COUNT };
41 if (!
self()->isImmutable( QString::fromLatin1(
"ShowQuickFilter" ) ))
42 self()->mShowQuickFilter = v;
51 return self()->mShowQuickFilter;
60 if (!
self()->isImmutable( QString::fromLatin1(
"StatusFilter" ) ))
61 self()->mStatusFilter = v;
70 return self()->mStatusFilter;
79 if (!
self()->isImmutable( QString::fromLatin1(
"TextFilter" ) ))
80 self()->mTextFilter = v;
89 return self()->mTextFilter;
98 if (!
self()->isImmutable( QString::fromLatin1(
"ViewMode" ) ))
99 self()->mViewMode = v;
108 return self()->mViewMode;
117 if (!
self()->isImmutable( QString::fromLatin1(
"Splitter1Sizes" ) ))
118 self()->mSplitter1Sizes = v;
127 return self()->mSplitter1Sizes;
136 if (!
self()->isImmutable( QString::fromLatin1(
"Splitter2Sizes" ) ))
137 self()->mSplitter2Sizes = v;
146 return self()->mSplitter2Sizes;
155 if (!
self()->isImmutable( QString::fromLatin1(
"StandardFont" ) ))
156 self()->mStandardFont = v;
165 return self()->mStandardFont;
174 if (!
self()->isImmutable( QString::fromLatin1(
"FixedFont" ) ))
175 self()->mFixedFont = v;
184 return self()->mFixedFont;
193 if (!
self()->isImmutable( QString::fromLatin1(
"SerifFont" ) ))
194 self()->mSerifFont = v;
203 return self()->mSerifFont;
212 if (!
self()->isImmutable( QString::fromLatin1(
"SansSerifFont" ) ))
213 self()->mSansSerifFont = v;
222 return self()->mSansSerifFont;
231 if (!
self()->isImmutable( QString::fromLatin1(
"UseCustomColors" ) ))
232 self()->mUseCustomColors = v;
241 return self()->mUseCustomColors;
250 if (!
self()->isImmutable( QString::fromLatin1(
"ColorUnreadArticles" ) ))
251 self()->mColorUnreadArticles = v;
260 return self()->mColorUnreadArticles;
269 if (!
self()->isImmutable( QString::fromLatin1(
"ColorNewArticles" ) ))
270 self()->mColorNewArticles = v;
279 return self()->mColorNewArticles;
288 if (!
self()->isImmutable( QString::fromLatin1(
"Fonts" ) ))
298 return self()->mFonts;
307 if (!
self()->isImmutable( QString::fromLatin1(
"MediumFontSize" ) ))
308 self()->mMediumFontSize = v;
317 return self()->mMediumFontSize;
326 if (!
self()->isImmutable( QString::fromLatin1(
"MinimumFontSize" ) ))
327 self()->mMinimumFontSize = v;
336 return self()->mMinimumFontSize;
345 if (!
self()->isImmutable( QString::fromLatin1(
"UnderlineLinks" ) ))
346 self()->mUnderlineLinks = v;
355 return self()->mUnderlineLinks;
364 if (!
self()->isImmutable( QString::fromLatin1(
"ArchiveMode" ) ))
365 self()->mArchiveMode = v;
374 return self()->mArchiveMode;
383 if (!
self()->isImmutable( QString::fromLatin1(
"MaxArticleAge" ) ))
384 self()->mMaxArticleAge = v;
393 return self()->mMaxArticleAge;
402 if (!
self()->isImmutable( QString::fromLatin1(
"MaxArticleNumber" ) ))
403 self()->mMaxArticleNumber = v;
412 return self()->mMaxArticleNumber;
421 if (!
self()->isImmutable( QString::fromLatin1(
"DoNotExpireImportantArticles" ) ))
422 self()->mDoNotExpireImportantArticles = v;
431 return self()->mDoNotExpireImportantArticles;
440 if (!
self()->isImmutable( QString::fromLatin1(
"ConcurrentFetches" ) ))
441 self()->mConcurrentFetches = v;
450 return self()->mConcurrentFetches;
459 if (!
self()->isImmutable( QString::fromLatin1(
"UseHTMLCache" ) ))
460 self()->mUseHTMLCache = v;
469 return self()->mUseHTMLCache;
478 if (!
self()->isImmutable( QString::fromLatin1(
"CustomUserAgent" ) ))
479 self()->mCustomUserAgent = v;
488 return self()->mCustomUserAgent;
497 if (!
self()->isImmutable( QString::fromLatin1(
"FetchOnStartup" ) ))
498 self()->mFetchOnStartup = v;
507 return self()->mFetchOnStartup;
516 if (!
self()->isImmutable( QString::fromLatin1(
"MarkAllFeedsReadOnStartup" ) ))
517 self()->mMarkAllFeedsReadOnStartup = v;
526 return self()->mMarkAllFeedsReadOnStartup;
535 if (!
self()->isImmutable( QString::fromLatin1(
"UseIntervalFetch" ) ))
536 self()->mUseIntervalFetch = v;
545 return self()->mUseIntervalFetch;
554 if (!
self()->isImmutable( QString::fromLatin1(
"AutoFetchInterval" ) ))
555 self()->mAutoFetchInterval = v;
564 return self()->mAutoFetchInterval;
573 if (!
self()->isImmutable( QString::fromLatin1(
"UseNotifications" ) ))
574 self()->mUseNotifications = v;
583 return self()->mUseNotifications;
592 if (!
self()->isImmutable( QString::fromLatin1(
"ShowTrayIcon" ) ))
593 self()->mShowTrayIcon = v;
602 return self()->mShowTrayIcon;
611 if (!
self()->isImmutable( QString::fromLatin1(
"EnableTrayIconUnreadArticleCount" ) ))
612 self()->mEnableTrayIconUnreadArticleCount = v;
621 return self()->mEnableTrayIconUnreadArticleCount;
630 if (!
self()->isImmutable( QString::fromLatin1(
"AlwaysShowTabBar" ) ))
631 self()->mAlwaysShowTabBar = v;
640 return self()->mAlwaysShowTabBar;
649 if (!
self()->isImmutable( QString::fromLatin1(
"CloseButtonOnTabs" ) ))
650 self()->mCloseButtonOnTabs = v;
659 return self()->mCloseButtonOnTabs;
668 if (!
self()->isImmutable( QString::fromLatin1(
"NewWindowInTab" ) ))
669 self()->mNewWindowInTab = v;
678 return self()->mNewWindowInTab;
687 if (!
self()->isImmutable( QString::fromLatin1(
"ExternalBrowserUseKdeDefault" ) ))
688 self()->mExternalBrowserUseKdeDefault = v;
697 return self()->mExternalBrowserUseKdeDefault;
706 if (!
self()->isImmutable( QString::fromLatin1(
"ExternalBrowserUseCustomCommand" ) ))
707 self()->mExternalBrowserUseCustomCommand = v;
716 return self()->mExternalBrowserUseCustomCommand;
725 if (!
self()->isImmutable( QString::fromLatin1(
"ExternalBrowserCustomCommand" ) ))
726 self()->mExternalBrowserCustomCommand = v;
735 return self()->mExternalBrowserCustomCommand;
744 if (!
self()->isImmutable( QString::fromLatin1(
"LMBBehaviour" ) ))
745 self()->mLMBBehaviour = v;
754 return self()->mLMBBehaviour;
763 if (!
self()->isImmutable( QString::fromLatin1(
"MMBBehaviour" ) ))
764 self()->mMMBBehaviour = v;
773 return self()->mMMBBehaviour;
782 if (!
self()->isImmutable( QString::fromLatin1(
"FeedlistHeaderStates" ) ))
783 self()->mFeedlistHeaderStates = v;
792 return self()->mFeedlistHeaderStates;
801 if (!
self()->isImmutable( QString::fromLatin1(
"ArticlelistHeaderStates" ) ))
802 self()->mArticlelistHeaderStates = v;
811 return self()->mArticlelistHeaderStates;
820 if (!
self()->isImmutable( QString::fromLatin1(
"ArticlelistSortColumn" ) ))
821 self()->mArticlelistSortColumn = v;
830 return self()->mArticlelistSortColumn;
839 if (!
self()->isImmutable( QString::fromLatin1(
"ArticlelistSortOrder" ) ))
840 self()->mArticlelistSortOrder = v;
849 return self()->mArticlelistSortOrder;
858 if (!
self()->isImmutable( QString::fromLatin1(
"ArchiveBackend" ) ))
859 self()->mArchiveBackend = v;
868 return self()->mArchiveBackend;
877 if (!
self()->isImmutable( QString::fromLatin1(
"UseMarkReadDelay" ) ))
878 self()->mUseMarkReadDelay = v;
887 return self()->mUseMarkReadDelay;
896 if (!
self()->isImmutable( QString::fromLatin1(
"MarkReadDelay" ) ))
897 self()->mMarkReadDelay = v;
906 return self()->mMarkReadDelay;
915 if (!
self()->isImmutable( QString::fromLatin1(
"ResetQuickFilterOnNodeChange" ) ))
916 self()->mResetQuickFilterOnNodeChange = v;
925 return self()->mResetQuickFilterOnNodeChange;
930 friend class SettingsHelper;
static bool externalBrowserUseCustomCommand()
Get Use this command:
static void setArchiveMode(int v)
Set Archive Mode.
static void setSansSerifFont(const QString &v)
Set Sans Serif Font.
QList< int > mSplitter1Sizes
static void setFonts(const QStringList &v)
Set Fonts.
static void setUseCustomColors(bool v)
Set UseCustomColors.
static QString sansSerifFont()
Get Sans Serif Font.
static void setUseHTMLCache(bool v)
Set Use HTML Cache.
static void setEnableTrayIconUnreadArticleCount(bool v)
Set Display an unread article count in the tray icon.
static int maxArticleAge()
Get Expiry Age.
static QString customUserAgent()
Get Custom UserAgent.
static bool useNotifications()
Get Use notifications.
static QString archiveBackend()
Get Archive Backend.
static bool doNotExpireImportantArticles()
Get Do Not Expire Important Articles.
static bool alwaysShowTabBar()
Get Always show the tab bar.
static bool closeButtonOnTabs()
Get Show close buttons on tabs.
static bool enableTrayIconUnreadArticleCount()
Get Display an unread article count in the tray icon.
static bool useMarkReadDelay()
Get Delay Mark Read.
static void setCustomUserAgent(const QString &v)
Set Custom UserAgent.
static void setFetchOnStartup(bool v)
Set Fetch on startup.
static QString standardFont()
Get Standard Font.
static void setAutoFetchInterval(int v)
Set Interval for autofetching.
static bool useIntervalFetch()
Get Use interval fetching.
static int minimumFontSize()
Get MinimumFontSize.
static void setShowQuickFilter(bool v)
Set Show Quick Filter.
static int mMBBehaviour()
Get MMB Behaviour.
static int mediumFontSize()
Get MediumFontSize.
static QString serifFont()
Get Serif Font.
static bool useCustomColors()
Get UseCustomColors.
static bool showTrayIcon()
Get Show tray icon.
static void setMediumFontSize(int v)
Set MediumFontSize.
static void setShowTrayIcon(bool v)
Set Show tray icon.
static void setMarkAllFeedsReadOnStartup(bool v)
Set Mark all feeds as read on startup.
int mArticlelistSortColumn
static int markReadDelay()
Get Mark Read Delay.
static void setUseIntervalFetch(bool v)
Set Use interval fetching.
QList< int > mArticlelistHeaderStates
QString mExternalBrowserCustomCommand
static void setViewMode(int v)
Set View Mode.
static void setFeedlistHeaderStates(const QList< int > &v)
Set Feedlist Header States.
static void setConcurrentFetches(int v)
Set Concurrent Fetches.
static void setCloseButtonOnTabs(bool v)
Set Show close buttons on tabs.
static int articlelistSortColumn()
Get Articlelist Sort Column.
static void setLMBBehaviour(int v)
Set LMB Behaviour.
static void setStatusFilter(int v)
Set Status Filter.
static int lMBBehaviour()
Get LMB Behaviour.
QList< int > mFeedlistHeaderStates
static int viewMode()
Get View Mode.
QList< int > mSplitter2Sizes
static bool markAllFeedsReadOnStartup()
Get Mark all feeds as read on startup.
static void setColorNewArticles(const QColor &v)
Set ColorNewArticles.
static int concurrentFetches()
Get Concurrent Fetches.
static void setFixedFont(const QString &v)
Set Fixed Font.
static void setTextFilter(const QString &v)
Set Text Filter.
static QString fixedFont()
Get Fixed Font.
static bool showQuickFilter()
Get Show Quick Filter.
static int articlelistSortOrder()
Get Articlelist Sort Order.
static void setExternalBrowserUseKdeDefault(bool v)
Set Use default KDE web browser.
static void setColorUnreadArticles(const QColor &v)
Set ColorUnreadArticles.
static QString textFilter()
Get Text Filter.
static void setNewWindowInTab(bool v)
Set Open links in new tab instead of in new window.
static void setMaxArticleAge(int v)
Set Expiry Age.
static bool resetQuickFilterOnNodeChange()
Get Reset Quick Filter On Node Change.
static void setDoNotExpireImportantArticles(bool v)
Set Do Not Expire Important Articles.
static bool newWindowInTab()
Get Open links in new tab instead of in new window.
static bool externalBrowserUseKdeDefault()
Get Use default KDE web browser.
static void setMaxArticleNumber(int v)
Set Article Limit.
static QList< int > articlelistHeaderStates()
Get Articlelist Header States.
static void setUnderlineLinks(bool v)
Set UnderlineLinks.
static int autoFetchInterval()
Get Interval for autofetching.
static bool underlineLinks()
Get UnderlineLinks.
static void setArchiveBackend(const QString &v)
Set Archive Backend.
static void setExternalBrowserUseCustomCommand(bool v)
Set Use this command:
static int archiveMode()
Get Archive Mode.
static QList< int > splitter2Sizes()
Get Sizes for second splitter.
bool mDoNotExpireImportantArticles
static QStringList fonts()
Get Fonts.
bool mEnableTrayIconUnreadArticleCount
static void setArticlelistSortColumn(int v)
Set Articlelist Sort Column.
static int statusFilter()
Get Status Filter.
static QColor colorNewArticles()
Get ColorNewArticles.
bool mResetQuickFilterOnNodeChange
bool mExternalBrowserUseKdeDefault
static void setSplitter2Sizes(const QList< int > &v)
Set Sizes for second splitter.
static void setUseNotifications(bool v)
Set Use notifications.
static void setAlwaysShowTabBar(bool v)
Set Always show the tab bar.
static void setSplitter1Sizes(const QList< int > &v)
Set Sizes for first splitter.
static void setSerifFont(const QString &v)
Set Serif Font.
static QList< int > feedlistHeaderStates()
Get Feedlist Header States.
static bool useHTMLCache()
Get Use HTML Cache.
bool mExternalBrowserUseCustomCommand
static QString externalBrowserCustomCommand()
Get External Browser Custom Command.
static void setMarkReadDelay(int v)
Set Mark Read Delay.
static int maxArticleNumber()
Get Article Limit.
static void setMinimumFontSize(int v)
Set MinimumFontSize.
static void setArticlelistHeaderStates(const QList< int > &v)
Set Articlelist Header States.
static bool fetchOnStartup()
Get Fetch on startup.
static QColor colorUnreadArticles()
Get ColorUnreadArticles.
static void setExternalBrowserCustomCommand(const QString &v)
Set External Browser Custom Command.
static void setArticlelistSortOrder(int v)
Set Articlelist Sort Order.
static void setMMBBehaviour(int v)
Set MMB Behaviour.
static void setStandardFont(const QString &v)
Set Standard Font.
int mArticlelistSortOrder
bool mMarkAllFeedsReadOnStartup
static QList< int > splitter1Sizes()
Get Sizes for first splitter.
static void setResetQuickFilterOnNodeChange(bool v)
Set Reset Quick Filter On Node Change.
QColor mColorUnreadArticles
static void setUseMarkReadDelay(bool v)
Set Delay Mark Read.