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

#include </tmp/quassel/src/uisupport/uisettings.h>

Inheritance diagram for SessionSettings:
Collaboration diagram for SessionSettings:

Public Types

enum  Mode { Default, Custom }

Public Member Functions

 SessionSettings (const QString &sessionId, const QString &group="Session")
virtual void setValue (const QString &key, const QVariant &data)
virtual QVariant value (const QString &key, const QVariant &def=QVariant())
void removeKey (const QString &key)
void removeSession ()
void cleanup ()
void sessionAging ()
int sessionAge ()
void setSessionAge (int age)
const QString sessionId ()
void setSessionId (const QString &sessionId)
void remove (const QString &key)
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

Private Attributes

QString _sessionId

Detailed Description

Definition at line 53 of file uisettings.h.

Member Enumeration Documentation

enum Mode
inherited
Enumerator:
Default 
Custom 

Definition at line 47 of file settings.h.

Constructor & Destructor Documentation

SessionSettings ( const QString &  sessionId,
const QString &  group = "Session" 
)

Definition at line 73 of file uisettings.cpp.

Member Function Documentation

void setValue ( const QString &  key,
const QVariant &  data 
)
virtual

Reimplemented from UiSettings.

Definition at line 79 of file uisettings.cpp.

References _sessionId, and Settings::setLocalValue().

Referenced by setSessionAge().

QVariant value ( const QString &  key,
const QVariant &  def = QVariant() 
)
virtual

Reimplemented from UiSettings.

Definition at line 85 of file uisettings.cpp.

References _sessionId, and Settings::localValue().

void removeKey ( const QString &  key)

Definition at line 91 of file uisettings.cpp.

References _sessionId, and Settings::removeLocalKey().

Referenced by removeSession().

void removeSession ( )

Definition at line 129 of file uisettings.cpp.

References Settings::localChildKeys(), removeKey(), and sessionId().

Referenced by cleanup(), and sessionAge().

void sessionAging ( )
int sessionAge ( )

Definition at line 112 of file uisettings.cpp.

References _sessionId, Settings::localValue(), and removeSession().

Referenced by cleanup(), and sessionAging().

void setSessionAge ( int  age)
const QString sessionId ( )
inline

Definition at line 69 of file uisettings.h.

References _sessionId.

Referenced by cleanup(), removeSession(), sessionAging(), and setSessionId().

void setSessionId ( const QString &  sessionId)
inline

Definition at line 70 of file uisettings.h.

References _sessionId, and sessionId().

Referenced by cleanup(), and sessionAging().

void remove ( const QString &  key)
inlineinherited

Definition at line 35 of file uisettings.h.

References Settings::removeLocalKey().

Referenced by AppearanceSettingsPage::save().

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(), BacklogSettings::setDynamicBacklogAmount(), BufferSettings::setErrorMsgsTarget(), BacklogSettings::setFixedBacklogAmount(), BacklogSettings::setGlobalUnreadBacklogAdditional(), BacklogSettings::setGlobalUnreadBacklogLimit(), NotificationSettings::setHighlightList(), NotificationSettings::setHighlightNick(), CoreAccountSettings::setLastAccount(), BufferSettings::setMessageFilter(), CoreConnectionSettings::setNetworkDetectionMode(), NotificationSettings::setNicksCaseSensitive(), BacklogSettings::setPerBufferUnreadBacklogAdditional(), BacklogSettings::setPerBufferUnreadBacklogLimit(), CoreConnectionSettings::setPingTimeoutInterval(), CoreConnectionSettings::setReconnectInterval(), BacklogSettings::setRequesterType(), BufferSettings::setServerNoticesTarget(), CoreUserSettings::setSessionState(), CoreUserSettings::setSessionValue(), WarningsSettings::setShowWarning(), TabCompletionSettings::setSortMode(), CoreSettings::setStorageSettings(), ChatViewSettings::setTimestampFormatString(), TabCompletionSettings::setUseLastSpokenTo(), BufferSettings::setUserNoticesTarget(), UiSettings::setValue(), BufferSettings::setValue(), 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(), BacklogSettings::dynamicBacklogAmount(), BufferSettings::errorMsgsTarget(), BufferSettings::filterMessage(), BacklogSettings::fixedBacklogAmount(), BacklogSettings::globalUnreadBacklogAdditional(), BacklogSettings::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(), BacklogSettings::perBufferUnreadBacklogAdditional(), BacklogSettings::perBufferUnreadBacklogLimit(), CoreConnectionSettings::pingTimeoutInterval(), CoreConnectionSettings::reconnectInterval(), BacklogSettings::requesterType(), CoreAccountSettings::retrieveAccountData(), BufferSettings::serverNoticesTarget(), 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(), value(), NotificationSettings::value(), and ChatViewSettings::webSearchUrlFormatString().

Member Data Documentation

QString _sessionId
private

Definition at line 73 of file uisettings.h.

Referenced by removeKey(), sessionAge(), sessionId(), setSessionId(), setValue(), and value().

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 files: