swift
|
Value object encapsulating information of audio related settings. More...
Public Member Functions | |
CSettings ()=default | |
Default constructor. | |
bool | isNotificationFlagSet (CNotificationSounds::NotificationFlag notification) const |
Notification flag (play notification?) | |
void | setNotificationFlag (CNotificationSounds::NotificationFlag notification, bool value) |
Notification flag (play notification?) | |
CNotificationSounds::Notification | getNotification () const |
Get notification. | |
void | setNotification (CNotificationSounds::Notification notification) |
Set notification. | |
void | setNotificationSoundDirectory (const QString &dir) |
Directory. | |
const QString & | getNotificationSoundDirectory () const |
Notification directory. | |
const QString & | getNotificationSoundDirectoryOrDefault () const |
get existing notifcation settings directory or default swift directory | |
QString | getNotificationFilePath (const QString &fileName) const |
Get existing file path for the given file path, either in the settings specific or default dir. More... | |
void | setNotificationVolume (int volume) |
Set volume (notifications) | |
int | getNotificationVolume () const |
Get volume (notifications) | |
void | setOutVolume (int volume) |
Set volume (audio) 0..100. | |
int | getOutVolume () const |
Get volume (audio) 0..100. | |
void | setOutVolumeCom1 (int volume) |
Set volume for com1 (audio) 0..100. | |
int | getOutVolumeCom1 () const |
Get volume for com1 (audio) 0..100. | |
void | setOutVolumeCom2 (int volume) |
Set volume for com2 (audio) 0..100. | |
int | getOutVolumeCom2 () const |
Get volume for com2 (audio) 0..100. | |
void | setInVolume (int volume) |
Set mic.volume 0..100. | |
int | getInVolume () const |
Get mic.volume (audio 0..100) | |
bool | isAudioEffectsEnabled () const |
Audio effects enabled? | |
void | setAudioEffectsEnabled (bool enabled) |
Audio effects. | |
QString | convertToQString (bool i18n=false) const |
Cast as QString. More... | |
bool | textMessagePrivate () const |
Simplified functions. | |
bool | textMessageSupervisor () const |
Simplified functions. | |
bool | textCallsignMentioned () const |
Simplified functions. | |
bool | pttClickDown () const |
Simplified functions. | |
bool | pttClickUp () const |
Simplified functions. | |
bool | afvClicked () const |
Simplified functions. | |
bool | afvBlocked () const |
Simplified functions. | |
![]() | |
int | getMetaTypeId () const |
Returns the Qt meta type ID of this object. More... | |
QString | getClassName () const |
Class name. | |
bool | isA (int metaTypeId) const |
Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses. | |
![]() | |
void | marshallToDbus (QDBusArgument &arg, Tags...) const |
Marshall without begin/endStructure, for when composed within another object. | |
void | unmarshallFromDbus (const QDBusArgument &arg, Tags...) |
Unmarshall without begin/endStructure, for when composed within another object. | |
![]() | |
void | marshalToDataStream (QDataStream &stream) const |
Marshal a value to a QDataStream. | |
void | unmarshalFromDataStream (QDataStream &stream) |
Unmarshal a value from a QDataStream. | |
![]() | |
QJsonObject | toJson () const |
Cast to JSON object. | |
QString | toJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Indented) const |
Convenience function JSON as string. | |
void | convertFromJson (const QJsonObject &json) |
Assign from JSON object. | |
void | convertFromJson (const QString &jsonString, bool acceptCacheFormat=false) |
Assign from JSON object string. | |
![]() | |
QString | toQString (bool i18n=false) const |
Cast as QString. | |
std::string | toStdString (bool i18n=false) const |
To std string. | |
QString | stringForStreaming () const |
String for streaming operators. | |
![]() | |
CPropertyIndexList | apply (const CPropertyIndexVariantMap &indexMap, bool skipEqualValues=false) |
Update by variant map. More... | |
void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
Set property by index. | |
QVariant | propertyByIndex (CPropertyIndexRef index) const |
Property by index. | |
int | comparePropertyByIndex (CPropertyIndexRef index, const Derived &compareValue) const |
Compare for index. | |
bool | equalsPropertyByIndex (const QVariant &compareValue, CPropertyIndexRef index) const |
Is given variant equal to value of property index? | |
![]() | |
CIcons::IconIndex | toIcon () const |
As icon, not implemented by all classes. | |
Static Public Member Functions | |
static int | fixOutVolume (int v) |
Make sure the volume is within the range. | |
static int | fixInVolume (int v) |
Make sure the volume is within the range. | |
![]() | |
static void | registerMetadata () |
Register metadata. | |
![]() | |
template<class DerivedObj = Derived> | |
static DerivedObj | fromJson (const QJsonObject &json) |
Get object from QJsonObject. | |
template<class DerivedObj = Derived> | |
static DerivedObj | fromJson (const QString &jsonString, bool acceptCacheJson=false) |
Get object from JSON string. | |
template<class DerivedObj = Derived> | |
static DerivedObj | fromJsonNoThrow (const QString &jsonString, bool acceptCacheJson, bool &success, QString &errMsg) |
Get object from JSON string. | |
Static Public Attributes | |
static constexpr int | InMax = 100 |
Ranges for audio. | |
static constexpr int | InMin = 0 |
Ranges for audio. | |
static constexpr int | OutMax = 100 |
Ranges for audio. | |
static constexpr int | OutMin = 0 |
Ranges for audio. | |
Additional Inherited Members | |
![]() | |
using | base_type = CEmpty |
Base class. | |
![]() | |
using | base_type = CEmpty |
Base class is alias of itself. | |
![]() | |
enum | ColumnIndex { IndexPixmap = 10 , IndexIcon , IndexString } |
Base class enums. | |
![]() | |
CValueObject ()=default | |
Default constructor. | |
CValueObject (const CValueObject &)=default | |
Copy constructor. | |
CValueObject & | operator= (const CValueObject &)=default |
Copy assignment operator. | |
~CValueObject ()=default | |
Destructor. | |
CEmpty ()=default | |
Inheriting constructors. | |
CEmpty (const CEmpty &)=default | |
Inheriting constructors. | |
![]() | |
CEmpty ()=default | |
Protected default constructor. | |
CEmpty (const CEmpty &)=default | |
Protected copy constructor. | |
CEmpty & | operator= (const CEmpty &)=default |
Protected copy assignment operator. | |
~CEmpty ()=default | |
Non-virtual protected destructor. | |
Value object encapsulating information of audio related settings.
Definition at line 24 of file audiosettings.h.
QString swift::misc::audio::CSettings::convertToQString | ( | bool | i18n = false | ) | const |
Cast as QString.
Definition at line 82 of file audiosettings.cpp.
QString swift::misc::audio::CSettings::getNotificationFilePath | ( | const QString & | fileName | ) | const |
Get existing file path for the given file path, either in the settings specific or default dir.
Definition at line 66 of file audiosettings.cpp.