qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
#include <settings.h>
Classes | |
struct | circleProp |
struct | friendProp |
struct | Request |
Public Types | |
enum | StyleType { StyleType::NONE = 0, StyleType::WITH_CHARS = 1, StyleType::WITHOUT_CHARS = 2 } |
enum | FriendListSortingMode { FriendListSortingMode::Name, FriendListSortingMode::Activity } |
![]() | |
enum | ProxyType { ProxyType::ptNone = 0, ProxyType::ptSOCKS5 = 1, ProxyType::ptHTTP = 2 } |
![]() | |
enum | AutoAcceptCall { AutoAcceptCall::None = 0x00, AutoAcceptCall::Audio = 0x01, AutoAcceptCall::Video = 0x02, AutoAcceptCall::AV = Audio | Video } |
Public Slots | |
void | saveGlobal () |
Asynchronous, saves the global settings. More... | |
void | sync () |
Waits for all asynchronous operations to complete. More... | |
void | setAutoLogin (bool state) |
void | updateProfileData (Profile *profile, const QCommandLineParser *parser) |
void | savePersonal (Profile *profile) |
Asynchronous, saves the profile. More... | |
Signals | |
void | autorunChanged (bool enabled) |
void | autoSaveEnabledChanged (bool enabled) |
void | autostartInTrayChanged (bool enabled) |
void | closeToTrayChanged (bool enabled) |
void | lightTrayIconChanged (bool enabled) |
void | minimizeToTrayChanged (bool enabled) |
void | notifyChanged (bool enabled) |
void | desktopNotifyChanged (bool enabled) |
void | showWindowChanged (bool enabled) |
void | makeToxPortableChanged (bool enabled) |
void | busySoundChanged (bool enabled) |
void | notifySoundChanged (bool enabled) |
void | notifyHideChanged (bool enabled) |
void | groupAlwaysNotifyChanged (bool enabled) |
void | translationChanged (const QString &translation) |
void | currentProfileIdChanged (quint32 id) |
void | enableLoggingChanged (bool enabled) |
void | autoAwayTimeChanged (int minutes) |
void | globalAutoAcceptDirChanged (const QString &path) |
void | autoAcceptMaxSizeChanged (size_t size) |
void | checkUpdatesChanged (bool enabled) |
void | widgetDataChanged (const QString &key) |
void | autoLoginChanged (bool enabled) |
void | nameColorsChanged (bool enabled) |
void | separateWindowChanged (bool enabled) |
void | showSystemTrayChanged (bool enabled) |
bool | minimizeOnCloseChanged (bool enabled) |
void | windowGeometryChanged (const QByteArray &rect) |
void | windowStateChanged (const QByteArray &state) |
void | splitterStateChanged (const QByteArray &state) |
void | dialogGeometryChanged (const QByteArray &rect) |
void | dialogSplitterStateChanged (const QByteArray &state) |
void | dialogSettingsGeometryChanged (const QByteArray &rect) |
void | styleChanged (const QString &style) |
void | themeColorChanged (int color) |
void | compactLayoutChanged (bool enabled) |
void | sortingModeChanged (FriendListSortingMode mode) |
void | showIdenticonsChanged (bool enabled) |
void | useEmoticonsChanged (bool enabled) |
void | smileyPackChanged (const QString &name) |
void | emojiFontPointSizeChanged (int size) |
void | dontGroupWindowsChanged (bool enabled) |
void | groupchatPositionChanged (bool enabled) |
void | chatMessageFontChanged (const QFont &font) |
void | stylePreferenceChanged (StyleType type) |
void | timestampFormatChanged (const QString &format) |
void | dateFormatChanged (const QString &format) |
void | statusChangeNotificationEnabledChanged (bool enabled) |
void | spellCheckingEnabledChanged (bool enabled) |
void | typingNotificationChanged (bool enabled) |
void | dbSyncTypeChanged (Db::syncType type) |
![]() | |
DECLARE_SIGNAL (autoAcceptCallChanged, const ToxPk &pk, AutoAcceptCallFlags accept) | |
DECLARE_SIGNAL (autoGroupInviteChanged, const ToxPk &pk, bool accept) | |
DECLARE_SIGNAL (autoAcceptDirChanged, const ToxPk &pk, const QString &dir) | |
DECLARE_SIGNAL (contactNoteChanged, const ToxPk &pk, const QString ¬e) | |
Public Member Functions | |
Paths & | getPaths () |
void | createSettingsDir () |
Creates a path to the settings dir, if it doesn't already exist. More... | |
void | createPersonal (const QString &basename) const |
Write a default personal .ini settings file for a profile. More... | |
void | savePersonal () |
Asynchronous, saves the current profile. More... | |
void | loadGlobal () |
void | loadPersonal (QString profileName, const ToxEncrypt *passKey) |
void | resetToDefault () |
bool | applyCommandLineOptions (const QCommandLineParser &parser) |
bool | getMakeToxPortable () const |
void | setMakeToxPortable (bool newValue) |
bool | getAutorun () const |
void | setAutorun (bool newValue) |
bool | getAutostartInTray () const |
void | setAutostartInTray (bool newValue) |
bool | getCloseToTray () const |
void | setCloseToTray (bool newValue) |
bool | getMinimizeToTray () const |
void | setMinimizeToTray (bool newValue) |
bool | getLightTrayIcon () const |
void | setLightTrayIcon (bool newValue) |
QString | getStyle () const |
void | setStyle (const QString &newValue) |
bool | getShowSystemTray () const |
void | setShowSystemTray (bool newValue) |
bool | getUseEmoticons () const |
void | setUseEmoticons (bool newValue) |
QString | getCurrentProfile () const |
uint32_t | getCurrentProfileId () const |
void | setCurrentProfile (const QString &profile) |
QString | getTranslation () const |
void | setTranslation (const QString &newValue) |
void | setAutoSaveEnabled (bool newValue) |
bool | getAutoSaveEnabled () const |
bool | getEnableIPv6 () const override |
void | setEnableIPv6 (bool enabled) override |
bool | getForceTCP () const override |
void | setForceTCP (bool enabled) override |
bool | getEnableLanDiscovery () const override |
void | setEnableLanDiscovery (bool enabled) override |
QString | getProxyAddr () const override |
void | setProxyAddr (const QString &address) override |
ICoreSettings::ProxyType | getProxyType () const override |
void | setProxyType (ICoreSettings::ProxyType type) override |
quint16 | getProxyPort () const override |
void | setProxyPort (quint16 port) override |
QNetworkProxy | getProxy () const override |
bool | getEnableLogging () const |
void | setEnableLogging (bool newValue) |
Db::syncType | getDbSyncType () const |
void | setDbSyncType (Db::syncType newValue) |
int | getAutoAwayTime () const |
void | setAutoAwayTime (int newValue) |
Sets how long the user may stay idle, before online status is set to "away". More... | |
bool | getCheckUpdates () const |
void | setCheckUpdates (bool newValue) |
bool | getNotify () const override |
void | setNotify (bool newValue) override |
bool | getShowWindow () const override |
void | setShowWindow (bool newValue) override |
bool | getDesktopNotify () const override |
void | setDesktopNotify (bool enabled) override |
bool | getNotifySound () const override |
void | setNotifySound (bool newValue) override |
bool | getNotifyHide () const override |
void | setNotifyHide (bool newValue) override |
bool | getBusySound () const override |
void | setBusySound (bool newValue) override |
bool | getGroupAlwaysNotify () const override |
void | setGroupAlwaysNotify (bool newValue) override |
QString | getInDev () const override |
void | setInDev (const QString &deviceSpecifier) override |
bool | getAudioInDevEnabled () const override |
void | setAudioInDevEnabled (bool enabled) override |
QString | getOutDev () const override |
void | setOutDev (const QString &deviceSpecifier) override |
bool | getAudioOutDevEnabled () const override |
void | setAudioOutDevEnabled (bool enabled) override |
qreal | getAudioInGainDecibel () const override |
void | setAudioInGainDecibel (qreal dB) override |
qreal | getAudioThreshold () const override |
void | setAudioThreshold (qreal percent) override |
int | getOutVolume () const override |
int | getOutVolumeMin () const override |
int | getOutVolumeMax () const override |
void | setOutVolume (int volume) override |
int | getAudioBitrate () const override |
void | setAudioBitrate (int bitrate) override |
bool | getEnableTestSound () const override |
void | setEnableTestSound (bool newValue) override |
QString | getVideoDev () const override |
void | setVideoDev (const QString &deviceSpecifier) override |
QRect | getScreenRegion () const override |
void | setScreenRegion (const QRect &value) override |
bool | getScreenGrabbed () const override |
void | setScreenGrabbed (bool value) override |
QRect | getCamVideoRes () const override |
void | setCamVideoRes (QRect newValue) override |
float | getCamVideoFPS () const override |
void | setCamVideoFPS (float newValue) override |
bool | isAnimationEnabled () const |
void | setAnimationEnabled (bool newValue) |
QString | getSmileyPack () const |
void | setSmileyPack (const QString &value) |
int | getThemeColor () const |
void | setThemeColor (int value) |
StyleType | getStylePreference () const |
void | setStylePreference (StyleType newValue) |
bool | isCurstomEmojiFont () const |
void | setCurstomEmojiFont (bool value) |
int | getEmojiFontPointSize () const |
void | setEmojiFontPointSize (int value) |
QString | getContactNote (const ToxPk &id) const override |
void | setContactNote (const ToxPk &id, const QString ¬e) override |
QString | getAutoAcceptDir (const ToxPk &id) const override |
void | setAutoAcceptDir (const ToxPk &id, const QString &dir) override |
AutoAcceptCallFlags | getAutoAcceptCall (const ToxPk &id) const override |
void | setAutoAcceptCall (const ToxPk &id, AutoAcceptCallFlags accept) override |
QString | getGlobalAutoAcceptDir () const |
void | setGlobalAutoAcceptDir (const QString &dir) |
size_t | getMaxAutoAcceptSize () const |
void | setMaxAutoAcceptSize (size_t size) |
bool | getAutoGroupInvite (const ToxPk &id) const override |
void | setAutoGroupInvite (const ToxPk &id, bool accept) override |
const QFont & | getChatMessageFont () const |
void | setChatMessageFont (const QFont &font) |
const QString & | getTimestampFormat () const |
void | setTimestampFormat (const QString &format) |
const QString & | getDateFormat () const |
void | setDateFormat (const QString &format) |
bool | getMinimizeOnClose () const |
void | setMinimizeOnClose (bool newValue) |
bool | getStatusChangeNotificationEnabled () const |
void | setStatusChangeNotificationEnabled (bool newValue) |
bool | getSpellCheckingEnabled () const |
void | setSpellCheckingEnabled (bool newValue) |
bool | getTypingNotification () const |
void | setTypingNotification (bool enabled) |
QStringList | getBlackList () const override |
void | setBlackList (const QStringList &blist) override |
bool | getShowGroupJoinLeaveMessages () const override |
void | setShowGroupJoinLeaveMessages (bool newValue) override |
QByteArray | getWindowGeometry () const |
void | setWindowGeometry (const QByteArray &value) |
QByteArray | getWindowState () const |
void | setWindowState (const QByteArray &value) |
QByteArray | getSplitterState () const |
void | setSplitterState (const QByteArray &value) |
QByteArray | getDialogGeometry () const |
void | setDialogGeometry (const QByteArray &value) |
QByteArray | getDialogSplitterState () const |
void | setDialogSplitterState (const QByteArray &value) |
QByteArray | getDialogSettingsGeometry () const |
void | setDialogSettingsGeometry (const QByteArray &value) |
QString | getFriendAddress (const QString &publicKey) const |
void | updateFriendAddress (const QString &newAddr) |
QString | getFriendAlias (const ToxPk &id) const override |
void | setFriendAlias (const ToxPk &id, const QString &alias) override |
int | getFriendCircleID (const ToxPk &id) const override |
void | setFriendCircleID (const ToxPk &id, int circleID) override |
QDateTime | getFriendActivity (const ToxPk &id) const override |
void | setFriendActivity (const ToxPk &id, const QDateTime &date) override |
void | saveFriendSettings (const ToxPk &id) override |
void | removeFriendSettings (const ToxPk &id) override |
SIGNAL_IMPL (Settings, autoAcceptCallChanged, const ToxPk &id, IFriendSettings::AutoAcceptCallFlags accept) bool getCompactLayout() const | |
void | setCompactLayout (bool compact) |
FriendListSortingMode | getFriendSortingMode () const |
void | setFriendSortingMode (FriendListSortingMode mode) |
bool | getSeparateWindow () const |
void | setSeparateWindow (bool value) |
bool | getDontGroupWindows () const |
void | setDontGroupWindows (bool value) |
bool | getGroupchatPosition () const |
void | setGroupchatPosition (bool value) |
bool | getShowIdenticons () const |
void | setShowIdenticons (bool value) |
bool | getAutoLogin () const |
void | setEnableGroupChatsColor (bool state) |
bool | getEnableGroupChatsColor () const |
int | getCircleCount () const |
int | addCircle (const QString &name=QString()) |
int | removeCircle (int id) |
QString | getCircleName (int id) const |
void | setCircleName (int id, const QString &name) |
bool | getCircleExpanded (int id) const |
void | setCircleExpanded (int id, bool expanded) |
bool | addFriendRequest (const QString &friendAddress, const QString &message) |
unsigned int | getUnreadFriendRequests () const |
Request | getFriendRequest (int index) const |
int | getFriendRequestSize () const |
void | clearUnreadFriendRequests () |
void | removeFriendRequest (int index) |
void | readFriendRequest (int index) |
QByteArray | getWidgetData (const QString &uniqueName) const |
void | setWidgetData (const QString &uniqueName, const QByteArray &data) |
template<class T > | |
void | restoreGeometryState (T *widget) const |
template<class T > | |
void | saveGeometryState (const T *widget) |
![]() | |
ICoreSettings ()=default | |
virtual | ~ICoreSettings () |
ICoreSettings (const ICoreSettings &)=default | |
ICoreSettings & | operator= (const ICoreSettings &)=default |
ICoreSettings (ICoreSettings &&)=default | |
ICoreSettings & | operator= (ICoreSettings &&)=default |
DECLARE_SIGNAL (enableIPv6Changed, bool enabled) | |
DECLARE_SIGNAL (forceTCPChanged, bool enabled) | |
DECLARE_SIGNAL (enableLanDiscoveryChanged, bool enabled) | |
DECLARE_SIGNAL (proxyTypeChanged, ICoreSettings::ProxyType type) | |
DECLARE_SIGNAL (proxyAddressChanged, const QString &address) | |
DECLARE_SIGNAL (proxyPortChanged, quint16 port) | |
![]() | |
IFriendSettings ()=default | |
virtual | ~IFriendSettings () |
IFriendSettings (const IFriendSettings &)=default | |
IFriendSettings & | operator= (const IFriendSettings &)=default |
IFriendSettings (IFriendSettings &&)=default | |
IFriendSettings & | operator= (IFriendSettings &&)=default |
![]() | |
IGroupSettings ()=default | |
virtual | ~IGroupSettings () |
IGroupSettings (const IGroupSettings &)=default | |
IGroupSettings & | operator= (const IGroupSettings &)=default |
IGroupSettings (IGroupSettings &&)=default | |
IGroupSettings & | operator= (IGroupSettings &&)=default |
DECLARE_SIGNAL (blackListChanged, QStringList const &blist) | |
DECLARE_SIGNAL (showGroupJoinLeaveMessagesChanged, bool show) | |
![]() | |
IVideoSettings ()=default | |
virtual | ~IVideoSettings () |
IVideoSettings (const IVideoSettings &)=default | |
IVideoSettings & | operator= (const IVideoSettings &)=default |
IVideoSettings (IVideoSettings &&)=default | |
IVideoSettings & | operator= (IVideoSettings &&)=default |
DECLARE_SIGNAL (videoDevChanged, const QString &device) | |
DECLARE_SIGNAL (screenRegionChanged, const QRect ®ion) | |
DECLARE_SIGNAL (screenGrabbedChanged, bool enabled) | |
DECLARE_SIGNAL (camVideoResChanged, const QRect ®ion) | |
DECLARE_SIGNAL (camVideoFPSChanged, unsigned short fps) | |
![]() | |
INotificationSettings ()=default | |
virtual | ~INotificationSettings () |
INotificationSettings (const INotificationSettings &)=default | |
INotificationSettings & | operator= (const INotificationSettings &)=default |
INotificationSettings (INotificationSettings &&)=default | |
INotificationSettings & | operator= (INotificationSettings &&)=default |
Static Public Member Functions | |
static Settings & | getInstance () |
Returns the singleton instance. More... | |
static void | destroyInstance () |
static bool | verifyProxySettings (const QCommandLineParser &parser) |
static uint32_t | makeProfileId (const QString &profile) |
Properties | |
bool | compactLayout |
bool | autorun |
bool | separateWindow |
QString | smileyPack |
int | emojiFontPointSize |
bool | minimizeOnClose |
QByteArray | windowGeometry |
QByteArray | windowState |
QByteArray | splitterState |
QByteArray | dialogGeometry |
QByteArray | dialogSplitterState |
QByteArray | dialogSettingsGeometry |
QString | style |
bool | showSystemTray |
bool | showIdenticons |
bool | groupchatPosition |
QFont | chatMessageFont |
StyleType | stylePreference |
QString | timestampFormat |
QString | dateFormat |
bool | statusChangeNotificationEnabled |
bool | spellCheckingEnabled |
bool | typingNotification |
QStringList | blackList |
QString | inDev |
bool | audioInDevEnabled |
qreal | audioInGainDecibel |
qreal | audioThreshold |
QString | outDev |
bool | audioOutDevEnabled |
int | outVolume |
int | audioBitrate |
QString | videoDev |
QRect | camVideoRes |
QRect | screenRegion |
bool | screenGrabbed |
float | camVideoFPS |
Private Member Functions | |
Settings () | |
~Settings () | |
Settings (Settings &settings)=delete | |
Settings & | operator= (const Settings &)=delete |
void | savePersonal (QString profileName, const ToxEncrypt *passkey) |
friendProp & | getOrInsertFriendPropRef (const ToxPk &id) |
ICoreSettings::ProxyType | fixInvalidProxyType (ICoreSettings::ProxyType proxyType) |
template<typename T > | |
bool | setVal (T &savedVal, T newVal) |
Static Private Attributes | |
static CompatibleRecursiveMutex | bigLock |
static Settings * | settings {nullptr} |
static const QString | globalSettingsFile = "qtox.ini" |
static QThread * | settingsThread {nullptr} |
Definition at line 51 of file settings.h.
|
strong |
Enumerator | |
---|---|
Name | |
Activity |
Definition at line 141 of file settings.h.
|
strong |
Enumerator | |
---|---|
NONE | |
WITH_CHARS | |
WITHOUT_CHARS |
Definition at line 134 of file settings.h.
|
private |
|
private |
|
privatedelete |
int Settings::addCircle | ( | const QString & | name = QString() | ) |
Definition at line 2037 of file settings.cpp.
bool Settings::addFriendRequest | ( | const QString & | friendAddress, |
const QString & | message | ||
) |
Definition at line 2066 of file settings.cpp.
bool Settings::applyCommandLineOptions | ( | const QCommandLineParser & | parser | ) |
Applies command line options on top of loaded settings. Fails without changes if attempting to apply contradicting settings.
parser | QCommandLineParser instance |
Definition at line 373 of file settings.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
void Settings::clearUnreadFriendRequests | ( | ) |
|
signal |
|
signal |
void Settings::createPersonal | ( | const QString & | basename | ) | const |
Write a default personal .ini settings file for a profile.
basename | Filename without extension to save settings. |
Definition at line 2184 of file settings.cpp.
void Settings::createSettingsDir | ( | ) |
Creates a path to the settings dir, if it doesn't already exist.
Definition at line 2205 of file settings.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
|
static |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
private |
|
override |
Definition at line 1793 of file settings.cpp.
|
override |
Definition at line 1702 of file settings.cpp.
|
override |
Definition at line 1715 of file settings.cpp.
|
override |
|
override |
Definition at line 1728 of file settings.cpp.
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1305 of file settings.cpp.
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1276 of file settings.cpp.
int Settings::getAutoAwayTime | ( | ) | const |
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1334 of file settings.cpp.
bool Settings::getAutoLogin | ( | ) | const |
bool Settings::getAutorun | ( | ) | const |
bool Settings::getAutoSaveEnabled | ( | ) | const |
bool Settings::getAutostartInTray | ( | ) | const |
|
overridevirtual |
Implements IGroupSettings.
Definition at line 1676 of file settings.cpp.
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1080 of file settings.cpp.
|
overridevirtual |
Implements IVideoSettings.
Definition at line 1845 of file settings.cpp.
|
overridevirtual |
Implements IVideoSettings.
Definition at line 1832 of file settings.cpp.
const QFont & Settings::getChatMessageFont | ( | ) | const |
bool Settings::getCheckUpdates | ( | ) | const |
int Settings::getCircleCount | ( | ) | const |
bool Settings::getCircleExpanded | ( | int | id | ) | const |
Definition at line 2054 of file settings.cpp.
QString Settings::getCircleName | ( | int | id | ) | const |
bool Settings::getCloseToTray | ( | ) | const |
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1365 of file settings.cpp.
QString Settings::getCurrentProfile | ( | ) | const |
uint32_t Settings::getCurrentProfileId | ( | ) | const |
const QString & Settings::getDateFormat | ( | ) | const |
Db::syncType Settings::getDbSyncType | ( | ) | const |
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1585 of file settings.cpp.
QByteArray Settings::getDialogGeometry | ( | ) | const |
Definition at line 1611 of file settings.cpp.
QByteArray Settings::getDialogSettingsGeometry | ( | ) | const |
QByteArray Settings::getDialogSplitterState | ( | ) | const |
Definition at line 1624 of file settings.cpp.
bool Settings::getDontGroupWindows | ( | ) | const |
int Settings::getEmojiFontPointSize | ( | ) | const |
bool Settings::getEnableGroupChatsColor | ( | ) | const |
|
overridevirtual |
Implements ICoreSettings.
Definition at line 852 of file settings.cpp.
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1132 of file settings.cpp.
bool Settings::getEnableLogging | ( | ) | const |
|
override |
Definition at line 839 of file settings.cpp.
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1119 of file settings.cpp.
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1911 of file settings.cpp.
QString Settings::getFriendAddress | ( | const QString & | publicKey | ) | const |
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1877 of file settings.cpp.
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1894 of file settings.cpp.
Settings::Request Settings::getFriendRequest | ( | int | index | ) | const |
int Settings::getFriendRequestSize | ( | ) | const |
Settings::FriendListSortingMode Settings::getFriendSortingMode | ( | ) | const |
QString Settings::getGlobalAutoAcceptDir | ( | ) | const |
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1093 of file settings.cpp.
bool Settings::getGroupchatPosition | ( | ) | const |
|
override |
Definition at line 1689 of file settings.cpp.
|
static |
Returns the singleton instance.
Definition at line 88 of file settings.cpp.
bool Settings::getLightTrayIcon | ( | ) | const |
bool Settings::getMakeToxPortable | ( | ) | const |
Definition at line 865 of file settings.cpp.
size_t Settings::getMaxAutoAcceptSize | ( | ) | const |
bool Settings::getMinimizeOnClose | ( | ) | const |
Definition at line 1650 of file settings.cpp.
bool Settings::getMinimizeToTray | ( | ) | const |
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1559 of file settings.cpp.
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1067 of file settings.cpp.
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1054 of file settings.cpp.
|
private |
|
override |
Definition at line 1754 of file settings.cpp.
|
override |
Definition at line 1780 of file settings.cpp.
|
inlineoverride |
Definition at line 360 of file settings.h.
|
inlineoverride |
Definition at line 356 of file settings.h.
Paths & Settings::getPaths | ( | ) |
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1145 of file settings.cpp.
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1184 of file settings.cpp.
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1197 of file settings.cpp.
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1171 of file settings.cpp.
|
overridevirtual |
Implements IVideoSettings.
Definition at line 1819 of file settings.cpp.
|
overridevirtual |
Implements IVideoSettings.
Definition at line 1806 of file settings.cpp.
bool Settings::getSeparateWindow | ( | ) | const |
|
overridevirtual |
Implements IGroupSettings.
Definition at line 1028 of file settings.cpp.
bool Settings::getShowIdenticons | ( | ) | const |
bool Settings::getShowSystemTray | ( | ) | const |
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1572 of file settings.cpp.
QString Settings::getSmileyPack | ( | ) | const |
bool Settings::getSpellCheckingEnabled | ( | ) | const |
Definition at line 1041 of file settings.cpp.
QByteArray Settings::getSplitterState | ( | ) | const |
bool Settings::getStatusChangeNotificationEnabled | ( | ) | const |
Definition at line 1015 of file settings.cpp.
QString Settings::getStyle | ( | ) | const |
Settings::StyleType Settings::getStylePreference | ( | ) | const |
int Settings::getThemeColor | ( | ) | const |
const QString & Settings::getTimestampFormat | ( | ) | const |
QString Settings::getTranslation | ( | ) | const |
bool Settings::getTypingNotification | ( | ) | const |
unsigned int Settings::getUnreadFriendRequests | ( | ) | const |
bool Settings::getUseEmoticons | ( | ) | const |
|
overridevirtual |
Implements IVideoSettings.
Definition at line 1741 of file settings.cpp.
QByteArray Settings::getWidgetData | ( | const QString & | uniqueName | ) | const |
QByteArray Settings::getWindowGeometry | ( | ) | const |
QByteArray Settings::getWindowState | ( | ) | const |
|
signal |
|
signal |
|
signal |
bool Settings::isAnimationEnabled | ( | ) | const |
bool Settings::isCurstomEmojiFont | ( | ) | const |
|
signal |
void Settings::loadGlobal | ( | ) |
void Settings::loadPersonal | ( | QString | profileName, |
const ToxEncrypt * | passKey | ||
) |
Definition at line 461 of file settings.cpp.
|
static |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
void Settings::readFriendRequest | ( | int | index | ) |
Definition at line 2124 of file settings.cpp.
int Settings::removeCircle | ( | int | id | ) |
Definition at line 2130 of file settings.cpp.
void Settings::removeFriendRequest | ( | int | index | ) |
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1934 of file settings.cpp.
void Settings::resetToDefault | ( | ) |
Definition at line 565 of file settings.cpp.
|
inline |
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1928 of file settings.cpp.
|
inline |
|
slot |
Asynchronous, saves the global settings.
Definition at line 582 of file settings.cpp.
void Settings::savePersonal | ( | ) |
Asynchronous, saves the current profile.
Definition at line 717 of file settings.cpp.
|
slot |
Asynchronous, saves the profile.
profile | Profile to save. |
Definition at line 726 of file settings.cpp.
|
private |
|
signal |
void Settings::setAnimationEnabled | ( | bool | newValue | ) |
|
override |
|
override |
|
override |
|
override |
|
override |
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1316 of file settings.cpp.
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1287 of file settings.cpp.
void Settings::setAutoAwayTime | ( | int | newValue | ) |
Sets how long the user may stay idle, before online status is set to "away".
[in] | newValue | the user idle duration in minutes |
Definition at line 1265 of file settings.cpp.
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1346 of file settings.cpp.
|
slot |
void Settings::setAutorun | ( | bool | newValue | ) |
void Settings::setAutoSaveEnabled | ( | bool | newValue | ) |
Definition at line 956 of file settings.cpp.
void Settings::setAutostartInTray | ( | bool | newValue | ) |
Definition at line 969 of file settings.cpp.
|
overridevirtual |
Implements IGroupSettings.
Definition at line 1682 of file settings.cpp.
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1086 of file settings.cpp.
|
overridevirtual |
Implements IVideoSettings.
Definition at line 1851 of file settings.cpp.
|
overridevirtual |
Implements IVideoSettings.
Definition at line 1838 of file settings.cpp.
void Settings::setChatMessageFont | ( | const QFont & | font | ) |
Definition at line 1426 of file settings.cpp.
void Settings::setCheckUpdates | ( | bool | newValue | ) |
Definition at line 1552 of file settings.cpp.
void Settings::setCircleExpanded | ( | int | id, |
bool | expanded | ||
) |
void Settings::setCircleName | ( | int | id, |
const QString & | name | ||
) |
Definition at line 2030 of file settings.cpp.
void Settings::setCloseToTray | ( | bool | newValue | ) |
Definition at line 982 of file settings.cpp.
void Settings::setCompactLayout | ( | bool | compact | ) |
Definition at line 1946 of file settings.cpp.
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1376 of file settings.cpp.
void Settings::setCurrentProfile | ( | const QString & | profile | ) |
Definition at line 1222 of file settings.cpp.
void Settings::setCurstomEmojiFont | ( | bool | value | ) |
void Settings::setDateFormat | ( | const QString & | format | ) |
Definition at line 1500 of file settings.cpp.
void Settings::setDbSyncType | ( | Db::syncType | newValue | ) |
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1591 of file settings.cpp.
void Settings::setDialogGeometry | ( | const QByteArray & | value | ) |
Definition at line 1617 of file settings.cpp.
void Settings::setDialogSettingsGeometry | ( | const QByteArray & | value | ) |
Definition at line 1643 of file settings.cpp.
void Settings::setDialogSplitterState | ( | const QByteArray & | value | ) |
Definition at line 1630 of file settings.cpp.
void Settings::setDontGroupWindows | ( | bool | value | ) |
Definition at line 1985 of file settings.cpp.
void Settings::setEmojiFontPointSize | ( | int | value | ) |
Definition at line 1474 of file settings.cpp.
void Settings::setEnableGroupChatsColor | ( | bool | state | ) |
|
overridevirtual |
Implements ICoreSettings.
Definition at line 858 of file settings.cpp.
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1138 of file settings.cpp.
void Settings::setEnableLogging | ( | bool | newValue | ) |
Definition at line 1247 of file settings.cpp.
|
override |
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1125 of file settings.cpp.
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1921 of file settings.cpp.
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1887 of file settings.cpp.
|
overridevirtual |
Implements IFriendSettings.
Definition at line 1904 of file settings.cpp.
void Settings::setFriendSortingMode | ( | FriendListSortingMode | mode | ) |
Definition at line 1959 of file settings.cpp.
void Settings::setGlobalAutoAcceptDir | ( | const QString & | dir | ) |
Definition at line 1400 of file settings.cpp.
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1099 of file settings.cpp.
void Settings::setGroupchatPosition | ( | bool | value | ) |
Definition at line 1998 of file settings.cpp.
|
override |
void Settings::setLightTrayIcon | ( | bool | newValue | ) |
Definition at line 1008 of file settings.cpp.
void Settings::setMakeToxPortable | ( | bool | newValue | ) |
Definition at line 871 of file settings.cpp.
void Settings::setMaxAutoAcceptSize | ( | size_t | size | ) |
Definition at line 1413 of file settings.cpp.
void Settings::setMinimizeOnClose | ( | bool | newValue | ) |
void Settings::setMinimizeToTray | ( | bool | newValue | ) |
Definition at line 995 of file settings.cpp.
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1565 of file settings.cpp.
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1073 of file settings.cpp.
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1060 of file settings.cpp.
|
override |
|
override |
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1190 of file settings.cpp.
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1203 of file settings.cpp.
|
overridevirtual |
Implements ICoreSettings.
Definition at line 1177 of file settings.cpp.
|
overridevirtual |
Implements IVideoSettings.
Definition at line 1825 of file settings.cpp.
|
overridevirtual |
Implements IVideoSettings.
Definition at line 1812 of file settings.cpp.
void Settings::setSeparateWindow | ( | bool | value | ) |
Definition at line 1972 of file settings.cpp.
|
overridevirtual |
Implements IGroupSettings.
Definition at line 1034 of file settings.cpp.
void Settings::setShowIdenticons | ( | bool | value | ) |
Definition at line 2011 of file settings.cpp.
void Settings::setShowSystemTray | ( | bool | newValue | ) |
Definition at line 936 of file settings.cpp.
|
overridevirtual |
Implements INotificationSettings.
Definition at line 1578 of file settings.cpp.
void Settings::setSmileyPack | ( | const QString & | value | ) |
Definition at line 1461 of file settings.cpp.
void Settings::setSpellCheckingEnabled | ( | bool | newValue | ) |
Definition at line 1047 of file settings.cpp.
void Settings::setSplitterState | ( | const QByteArray & | value | ) |
Definition at line 1604 of file settings.cpp.
void Settings::setStatusChangeNotificationEnabled | ( | bool | newValue | ) |
Definition at line 1021 of file settings.cpp.
void Settings::setStyle | ( | const QString & | newValue | ) |
Definition at line 923 of file settings.cpp.
void Settings::setStylePreference | ( | StyleType | newValue | ) |
Definition at line 1513 of file settings.cpp.
void Settings::setThemeColor | ( | int | value | ) |
Definition at line 2146 of file settings.cpp.
void Settings::setTimestampFormat | ( | const QString & | format | ) |
Definition at line 1487 of file settings.cpp.
void Settings::setTranslation | ( | const QString & | newValue | ) |
void Settings::setTypingNotification | ( | bool | enabled | ) |
Definition at line 1669 of file settings.cpp.
void Settings::setUseEmoticons | ( | bool | newValue | ) |
Definition at line 943 of file settings.cpp.
|
private |
Definition at line 2256 of file settings.cpp.
|
overridevirtual |
Implements IVideoSettings.
Definition at line 1747 of file settings.cpp.
void Settings::setWidgetData | ( | const QString & | uniqueName, |
const QByteArray & | data | ||
) |
void Settings::setWindowGeometry | ( | const QByteArray & | value | ) |
Definition at line 1526 of file settings.cpp.
void Settings::setWindowState | ( | const QByteArray & | value | ) |
Definition at line 1539 of file settings.cpp.
|
signal |
|
signal |
|
signal |
Settings::SIGNAL_IMPL | ( | Settings | , |
autoAcceptCallChanged | , | ||
const ToxPk & | id, | ||
IFriendSettings::AutoAcceptCallFlags | accept | ||
) | const |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
slot |
Waits for all asynchronous operations to complete.
Definition at line 2218 of file settings.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
void Settings::updateFriendAddress | ( | const QString & | newAddr | ) |
Definition at line 1869 of file settings.cpp.
|
slot |
Definition at line 262 of file settings.cpp.
|
signal |
|
static |
Verifies that commandline proxy settings are at least reasonable. Does not verify provided IP or hostname addresses are valid. Code duplication with Settings::applyCommandLineOptions, which also verifies arguments, should be removed in a future refactor.
parser | QCommandLineParser instance |
Definition at line 284 of file settings.cpp.
|
signal |
|
signal |
|
signal |
|
private |
Definition at line 633 of file settings.h.
|
private |
Definition at line 636 of file settings.h.
|
private |
Definition at line 630 of file settings.h.
|
private |
Definition at line 594 of file settings.h.
|
private |
Definition at line 634 of file settings.h.
|
private |
Definition at line 603 of file settings.h.
|
staticprivate |
Definition at line 715 of file settings.h.
|
private |
Definition at line 614 of file settings.h.
|
private |
Definition at line 608 of file settings.h.
|
private |
Definition at line 711 of file settings.h.
|
private |
Definition at line 604 of file settings.h.
|
private |
Definition at line 625 of file settings.h.
|
private |
Definition at line 626 of file settings.h.
|
private |
Definition at line 666 of file settings.h.
|
private |
Definition at line 610 of file settings.h.
|
private |
Definition at line 591 of file settings.h.
|
private |
Definition at line 599 of file settings.h.
|
private |
Definition at line 592 of file settings.h.
|
private |
Definition at line 601 of file settings.h.
|
private |
Definition at line 619 of file settings.h.
|
private |
Definition at line 628 of file settings.h.
|
private |
Definition at line 678 of file settings.h.
|
private |
Definition at line 656 of file settings.h.
|
private |
Definition at line 618 of file settings.h.
|
private |
Definition at line 709 of file settings.h.
Definition at line 638 of file settings.h.
|
private |
Definition at line 635 of file settings.h.
|
staticprivate |
Definition at line 717 of file settings.h.
|
private |
Definition at line 615 of file settings.h.
|
private |
Definition at line 606 of file settings.h.
|
private |
Definition at line 588 of file settings.h.
|
private |
Definition at line 605 of file settings.h.
|
private |
Definition at line 616 of file settings.h.
|
private |
Definition at line 609 of file settings.h.
|
private |
Definition at line 613 of file settings.h.
|
private |
Definition at line 612 of file settings.h.
|
private |
Definition at line 719 of file settings.h.
|
private |
Definition at line 622 of file settings.h.
|
private |
Definition at line 623 of file settings.h.
|
private |
Definition at line 621 of file settings.h.
|
private |
Definition at line 657 of file settings.h.
|
staticprivate |
Definition at line 716 of file settings.h.
|
staticprivate |
Definition at line 718 of file settings.h.
|
private |
Definition at line 661 of file settings.h.
|
private |
Definition at line 611 of file settings.h.
|
private |
Definition at line 596 of file settings.h.
|
private |
Definition at line 713 of file settings.h.
|
private |
Definition at line 602 of file settings.h.
|
private |
Definition at line 590 of file settings.h.
|
private |
Definition at line 607 of file settings.h.
|
private |
Assume all widgets have unique names.
Definition at line 632 of file settings.h.
|
readwrite |
Definition at line 124 of file settings.h.
|
readwrite |
Definition at line 115 of file settings.h.
|
readwrite |
Definition at line 117 of file settings.h.
|
readwrite |
Definition at line 122 of file settings.h.
|
readwrite |
Definition at line 119 of file settings.h.
|
readwrite |
Definition at line 65 of file settings.h.
|
readwrite |
Definition at line 110 of file settings.h.
|
readwrite |
Definition at line 131 of file settings.h.
|
readwrite |
Definition at line 128 of file settings.h.
|
readwrite |
Definition at line 96 of file settings.h.
|
readwrite |
Definition at line 64 of file settings.h.
|
readwrite |
Definition at line 101 of file settings.h.
|
readwrite |
Definition at line 81 of file settings.h.
|
readwrite |
Definition at line 85 of file settings.h.
|
readwrite |
Definition at line 83 of file settings.h.
|
readwrite |
Definition at line 72 of file settings.h.
|
readwrite |
Definition at line 94 of file settings.h.
|
readwrite |
Definition at line 113 of file settings.h.
|
readwrite |
Definition at line 74 of file settings.h.
|
readwrite |
Definition at line 120 of file settings.h.
|
readwrite |
Definition at line 123 of file settings.h.
|
readwrite |
Definition at line 130 of file settings.h.
|
readwrite |
Definition at line 129 of file settings.h.
|
readwrite |
Definition at line 69 of file settings.h.
|
readwrite |
Definition at line 90 of file settings.h.
|
readwrite |
Definition at line 88 of file settings.h.
|
readwrite |
Definition at line 70 of file settings.h.
|
readwrite |
Definition at line 105 of file settings.h.
|
readwrite |
Definition at line 79 of file settings.h.
|
readwrite |
Definition at line 103 of file settings.h.
|
readwrite |
Definition at line 86 of file settings.h.
|
readwrite |
Definition at line 98 of file settings.h.
|
readwrite |
Definition at line 100 of file settings.h.
|
readwrite |
Definition at line 109 of file settings.h.
|
readwrite |
Definition at line 127 of file settings.h.
|
readwrite |
Definition at line 76 of file settings.h.
|
readwrite |
Definition at line 77 of file settings.h.