Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
BacklogSettings Class Reference

#include </tmp/quassel/src/client/backlogsettings.h>

Inheritance diagram for BacklogSettings:
Collaboration diagram for BacklogSettings:

Public Types

enum  Mode { Default, Custom }

Public Member Functions

 BacklogSettings ()
int requesterType ()
void setRequesterType (int requesterType)
int dynamicBacklogAmount ()
void setDynamicBacklogAmount (int amount)
int fixedBacklogAmount ()
void setFixedBacklogAmount (int amount)
int globalUnreadBacklogLimit ()
void setGlobalUnreadBacklogLimit (int limit)
int globalUnreadBacklogAdditional ()
void setGlobalUnreadBacklogAdditional (int Additional)
int perBufferUnreadBacklogLimit ()
void setPerBufferUnreadBacklogLimit (int limit)
int perBufferUnreadBacklogAdditional ()
void setPerBufferUnreadBacklogAdditional (int Additional)
virtual void notify (const QString &key, QObject *receiver, const char *slot)
 Call the given slot on change of the given key.
void initAndNotify (const QString &key, QObject *receiver, const char *slot, const QVariant &defaultValue=QVariant())
 Sets up notification and calls the given slot to set the initial value.
virtual uint version ()

Protected Member Functions

void setGroup (const QString &group_)
virtual QStringList allLocalKeys ()
virtual QStringList localChildKeys (const QString &rootkey=QString())
virtual QStringList localChildGroups (const QString &rootkey=QString())
virtual void setLocalValue (const QString &key, const QVariant &data)
virtual const QVariant & localValue (const QString &key, const QVariant &def=QVariant())
virtual void removeLocalKey (const QString &key)

Protected Attributes

QString group
QString appName

Detailed Description

Definition at line 26 of file backlogsettings.h.

Member Enumeration Documentation

enum Mode
inherited
Enumerator:
Default 
Custom 

Definition at line 47 of file settings.h.

Constructor & Destructor Documentation

BacklogSettings ( )
inline

Definition at line 29 of file backlogsettings.h.

Member Function Documentation

int requesterType ( )
inline
void setRequesterType ( int  requesterType)
inline

Definition at line 31 of file backlogsettings.h.

References Settings::setLocalValue().

Referenced by BacklogSettingsPage::save().

int dynamicBacklogAmount ( )
inline

Definition at line 33 of file backlogsettings.h.

References Settings::localValue().

Referenced by MessageModel::requestBacklog().

void setDynamicBacklogAmount ( int  amount)
inline

Definition at line 34 of file backlogsettings.h.

References Settings::setLocalValue().

int fixedBacklogAmount ( )
inline

Definition at line 36 of file backlogsettings.h.

References Settings::localValue().

Referenced by FixedBacklogRequester::FixedBacklogRequester().

void setFixedBacklogAmount ( int  amount)
inline

Definition at line 37 of file backlogsettings.h.

References Settings::setLocalValue().

int globalUnreadBacklogLimit ( )
inline
void setGlobalUnreadBacklogLimit ( int  limit)
inline

Definition at line 40 of file backlogsettings.h.

References Settings::setLocalValue().

int globalUnreadBacklogAdditional ( )
inline
void setGlobalUnreadBacklogAdditional ( int  Additional)
inline

Definition at line 42 of file backlogsettings.h.

References Settings::setLocalValue().

int perBufferUnreadBacklogLimit ( )
inline
void setPerBufferUnreadBacklogLimit ( int  limit)
inline

Definition at line 45 of file backlogsettings.h.

References Settings::setLocalValue().

int perBufferUnreadBacklogAdditional ( )
inline
void setPerBufferUnreadBacklogAdditional ( int  Additional)
inline

Definition at line 47 of file backlogsettings.h.

References Settings::setLocalValue().

void initAndNotify ( const QString &  key,
QObject *  receiver,
const char *  slot,
const QVariant &  defaultValue = QVariant() 
)
inherited
uint version ( )
virtualinherited

Definition at line 75 of file settings.cpp.

References create_qsettings, and VERSION.

Referenced by Core::Core(), and QtUiApplication::init().

void setGroup ( const QString &  group_)
inlineprotectedinherited

Definition at line 62 of file settings.h.

References Settings::group.

QStringList allLocalKeys ( )
protectedvirtualinherited

Definition at line 89 of file settings.cpp.

References create_qsettings, and Settings::group.

Referenced by ShortcutSettings::clear().

QStringList localChildKeys ( const QString &  rootkey = QString())
protectedvirtualinherited
QStringList localChildGroups ( const QString &  rootkey = QString())
protectedvirtualinherited
void setLocalValue ( const QString &  key,
const QVariant &  data 
)
protectedvirtualinherited

Definition at line 131 of file settings.cpp.

References create_qsettings, Settings::group, Settings::hasNotifier(), Settings::normalizedKey(), Settings::notifier(), Settings::setCacheValue(), and SettingsChangeNotifier::valueChanged().

Referenced by BufferSettings::enableUserStateIcons(), ChatViewSettings::enableWebPreview(), BufferSettings::filterMessage(), BufferSettings::removeFilter(), ShortcutSettings::saveShortcut(), CoreAccountSettings::setAccountValue(), TabCompletionSettings::setAddSpaceMidSentence(), CoreAccountSettings::setAutoConnectAccount(), CoreAccountSettings::setAutoConnectOnStartup(), CoreAccountSettings::setAutoConnectToFixedAccount(), CoreConnectionSettings::setAutoReconnect(), TabCompletionSettings::setCaseSensitivity(), TabCompletionSettings::setCompletionSuffix(), CoreSettings::setCoreState(), UiStyleSettings::setCustomFormat(), setDynamicBacklogAmount(), BufferSettings::setErrorMsgsTarget(), setFixedBacklogAmount(), setGlobalUnreadBacklogAdditional(), setGlobalUnreadBacklogLimit(), NotificationSettings::setHighlightList(), NotificationSettings::setHighlightNick(), CoreAccountSettings::setLastAccount(), BufferSettings::setMessageFilter(), CoreConnectionSettings::setNetworkDetectionMode(), NotificationSettings::setNicksCaseSensitive(), setPerBufferUnreadBacklogAdditional(), setPerBufferUnreadBacklogLimit(), CoreConnectionSettings::setPingTimeoutInterval(), CoreConnectionSettings::setReconnectInterval(), setRequesterType(), BufferSettings::setServerNoticesTarget(), CoreUserSettings::setSessionState(), CoreUserSettings::setSessionValue(), WarningsSettings::setShowWarning(), TabCompletionSettings::setSortMode(), CoreSettings::setStorageSettings(), ChatViewSettings::setTimestampFormatString(), TabCompletionSettings::setUseLastSpokenTo(), BufferSettings::setUserNoticesTarget(), UiSettings::setValue(), BufferSettings::setValue(), SessionSettings::setValue(), NotificationSettings::setValue(), ChatViewSettings::setWebSearchUrlFormatString(), CoreAccountSettings::storeAccountData(), and CoreUserSettings::storeIdentity().

const QVariant & localValue ( const QString &  key,
const QVariant &  def = QVariant() 
)
protectedvirtualinherited

Definition at line 143 of file settings.cpp.

References Settings::cacheValue(), create_qsettings, Settings::group, Settings::isCached(), Settings::normalizedKey(), and Settings::setCacheValue().

Referenced by CoreAccountSettings::accountValue(), TabCompletionSettings::addSpaceMidSentence(), CoreAccountSettings::autoConnectAccount(), CoreAccountSettings::autoConnectOnStartup(), CoreAccountSettings::autoConnectToFixedAccount(), CoreConnectionSettings::autoReconnect(), TabCompletionSettings::caseSensitivity(), TabCompletionSettings::completionSuffix(), CoreSettings::coreState(), UiStyleSettings::customFormat(), ItemViewSettings::displayTopicInTooltip(), dynamicBacklogAmount(), BufferSettings::errorMsgsTarget(), BufferSettings::filterMessage(), fixedBacklogAmount(), globalUnreadBacklogAdditional(), globalUnreadBacklogLimit(), BufferSettings::hasFilter(), NotificationSettings::highlightList(), NotificationSettings::highlightNick(), CoreUserSettings::identity(), Settings::initAndNotify(), CoreAccountSettings::lastAccount(), ShortcutSettings::loadShortcut(), BufferSettings::messageFilter(), ItemViewSettings::mouseWheelChangesBuffer(), CoreConnectionSettings::networkDetectionMode(), NotificationSettings::nicksCaseSensitive(), CoreSettings::oldDbSettings(), perBufferUnreadBacklogAdditional(), perBufferUnreadBacklogLimit(), CoreConnectionSettings::pingTimeoutInterval(), CoreConnectionSettings::reconnectInterval(), requesterType(), CoreAccountSettings::retrieveAccountData(), BufferSettings::serverNoticesTarget(), SessionSettings::sessionAge(), CoreUserSettings::sessionData(), CoreUserSettings::sessionState(), CoreUserSettings::sessionValue(), BufferSettings::showUserStateIcons(), WarningsSettings::showWarning(), ChatViewSettings::showWebPreview(), TabCompletionSettings::sortMode(), CoreSettings::storageSettings(), ChatViewSettings::timestampFormatString(), TabCompletionSettings::useLastSpokenTo(), BufferSettings::userNoticesTarget(), UiSettings::value(), BufferSettings::value(), SessionSettings::value(), NotificationSettings::value(), and ChatViewSettings::webSearchUrlFormatString().

Member Data Documentation

QString appName
protectedinherited

Definition at line 74 of file settings.h.

Referenced by Settings::fileName().


The documentation for this class was generated from the following file: