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

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

Inheritance diagram for TabCompletionSettings:
Collaboration diagram for TabCompletionSettings:

Public Types

enum  SortMode { Alphabetical, LastActivity }
enum  Mode { Default, Custom }

Public Member Functions

 TabCompletionSettings ()
void setCompletionSuffix (const QString &)
QString completionSuffix ()
void setAddSpaceMidSentence (bool)
bool addSpaceMidSentence ()
void setSortMode (SortMode)
SortMode sortMode ()
void setCaseSensitivity (Qt::CaseSensitivity)
Qt::CaseSensitivity caseSensitivity ()
void setUseLastSpokenTo (bool)
bool useLastSpokenTo ()
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 152 of file clientsettings.h.

Member Enumeration Documentation

enum SortMode
Enumerator:
Alphabetical 
LastActivity 

Definition at line 155 of file clientsettings.h.

enum Mode
inherited
Enumerator:
Default 
Custom 

Definition at line 47 of file settings.h.

Constructor & Destructor Documentation

Definition at line 343 of file clientsettings.cpp.

Member Function Documentation

void setCompletionSuffix ( const QString &  suffix)

Definition at line 348 of file clientsettings.cpp.

References Settings::setLocalValue().

QString completionSuffix ( )
void setAddSpaceMidSentence ( bool  space)

Definition at line 360 of file clientsettings.cpp.

References Settings::setLocalValue().

bool addSpaceMidSentence ( )

Definition at line 366 of file clientsettings.cpp.

References Settings::localValue().

Referenced by TabCompleter::complete().

void setSortMode ( SortMode  mode)

Definition at line 372 of file clientsettings.cpp.

References Settings::setLocalValue().

Definition at line 378 of file clientsettings.cpp.

References LastActivity, and Settings::localValue().

void setCaseSensitivity ( Qt::CaseSensitivity  cs)

Definition at line 384 of file clientsettings.cpp.

References Settings::setLocalValue().

Qt::CaseSensitivity caseSensitivity ( )

Definition at line 390 of file clientsettings.cpp.

References Settings::localValue().

void setUseLastSpokenTo ( bool  use)

Definition at line 396 of file clientsettings.cpp.

References Settings::setLocalValue().

bool useLastSpokenTo ( )

Definition at line 402 of file clientsettings.cpp.

References Settings::localValue().

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(), setAddSpaceMidSentence(), CoreAccountSettings::setAutoConnectAccount(), CoreAccountSettings::setAutoConnectOnStartup(), CoreAccountSettings::setAutoConnectToFixedAccount(), CoreConnectionSettings::setAutoReconnect(), setCaseSensitivity(), 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(), setSortMode(), CoreSettings::setStorageSettings(), ChatViewSettings::setTimestampFormatString(), 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(), addSpaceMidSentence(), CoreAccountSettings::autoConnectAccount(), CoreAccountSettings::autoConnectOnStartup(), CoreAccountSettings::autoConnectToFixedAccount(), CoreConnectionSettings::autoReconnect(), caseSensitivity(), 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(), SessionSettings::sessionAge(), CoreUserSettings::sessionData(), CoreUserSettings::sessionState(), CoreUserSettings::sessionValue(), BufferSettings::showUserStateIcons(), WarningsSettings::showWarning(), ChatViewSettings::showWebPreview(), sortMode(), CoreSettings::storageSettings(), ChatViewSettings::timestampFormatString(), 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 files: