aboutsummaryrefslogtreecommitdiff
path: root/src/core/kemailsettings.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2021-02-22 17:38:09 +0200
committerAhmad Samir <a.samirh78@gmail.com>2021-02-22 17:38:09 +0200
commit8bed00ab34e31f2b9c70026d418d923913325798 (patch)
treef289c15575415a36bc19c047a2037998e9b11ce8 /src/core/kemailsettings.h
parent186755fd56b58dc97250846c5305ef89f9487f86 (diff)
downloadkconfig-8bed00ab34e31f2b9c70026d418d923913325798.tar.gz
kconfig-8bed00ab34e31f2b9c70026d418d923913325798.tar.bz2
Run clang-format on all cpp/h files
NO_CHANGELOG
Diffstat (limited to 'src/core/kemailsettings.h')
-rw-r--r--src/core/kemailsettings.h98
1 files changed, 49 insertions, 49 deletions
diff --git a/src/core/kemailsettings.h b/src/core/kemailsettings.h
index 30f9942c..eb701f8c 100644
--- a/src/core/kemailsettings.h
+++ b/src/core/kemailsettings.h
@@ -15,29 +15,29 @@
class KEMailSettingsPrivate;
/**
- * \class KEMailSettings kemailsettings.h <KEMailSettings>
- *
- * This is just a small class to facilitate accessing e-mail settings in
- * a sane way, and allowing any program to manage multiple e-mail
- * profiles effortlessly
- *
- * The default profile is automatically selected in the constructor.
- *
- * @author Alex Zepeda zipzippy@sonic.net
- **/
+ * \class KEMailSettings kemailsettings.h <KEMailSettings>
+ *
+ * This is just a small class to facilitate accessing e-mail settings in
+ * a sane way, and allowing any program to manage multiple e-mail
+ * profiles effortlessly
+ *
+ * The default profile is automatically selected in the constructor.
+ *
+ * @author Alex Zepeda zipzippy@sonic.net
+ **/
class KCONFIGCORE_EXPORT KEMailSettings
{
Q_DECLARE_TR_FUNCTIONS(KEMailSettings)
public:
/**
- * The list of settings that I thought of when I wrote this
- * class. Any extra settings thought of later can be accessed
- * easily with getExtendedSetting and setExtendedSetting.
- * @see getSetting()
- * @see setSetting()
- * @see getExtendedSetting()
- * @see setExtendedSetting()
- **/
+ * The list of settings that I thought of when I wrote this
+ * class. Any extra settings thought of later can be accessed
+ * easily with getExtendedSetting and setExtendedSetting.
+ * @see getSetting()
+ * @see setSetting()
+ * @see getExtendedSetting()
+ * @see setExtendedSetting()
+ **/
enum Setting {
ClientProgram,
ClientTerminal,
@@ -86,8 +86,8 @@ public:
};
/**
- * The various extensions allowed.
- **/
+ * The various extensions allowed.
+ **/
enum Extension {
POP3,
SMTP,
@@ -95,40 +95,40 @@ public:
};
/**
- * Default constructor, just sets things up and sets the default profile
- * as the current profile
- **/
+ * Default constructor, just sets things up and sets the default profile
+ * as the current profile
+ **/
KEMailSettings();
KEMailSettings(const KEMailSettings &) = delete;
- KEMailSettings& operator=(const KEMailSettings &) = delete;
+ KEMailSettings &operator=(const KEMailSettings &) = delete;
/**
- * Default destructor, nothing to see here.
- **/
+ * Default destructor, nothing to see here.
+ **/
~KEMailSettings();
/**
- * List of profiles available.
- * @return the list of profiles
- **/
+ * List of profiles available.
+ * @return the list of profiles
+ **/
QStringList profiles() const;
#if KCONFIGCORE_ENABLE_DEPRECATED_SINCE(5, 0)
/**
- * Returns the name of the current profile.
- * @returns what profile we're currently using
- * @deprecated Since 5.0
- **/
+ * Returns the name of the current profile.
+ * @returns what profile we're currently using
+ * @deprecated Since 5.0
+ **/
KCONFIGCORE_DEPRECATED_VERSION(5, 0, "API planned to be changed")
QString currentProfileName() const;
// see https://git.reviewboard.kde.org/r/111910/
#endif
/**
- * Change the current profile.
- * @param s the name of the new profile
- **/
+ * Change the current profile.
+ * @param s the name of the new profile
+ **/
void setProfile(const QString &s);
/**
@@ -138,25 +138,25 @@ public:
QString defaultProfileName() const;
/**
- * Sets a new default.
- * @param def the new default
- **/
+ * Sets a new default.
+ * @param def the new default
+ **/
void setDefault(const QString &def);
/**
- * Get one of the predefined "basic" settings.
- * @param s the setting to get
- * @return the value of the setting, or QString() if not
- * set
- **/
+ * Get one of the predefined "basic" settings.
+ * @param s the setting to get
+ * @return the value of the setting, or QString() if not
+ * set
+ **/
QString getSetting(KEMailSettings::Setting s) const;
/**
- * Set one of the predefined "basic" settings.
- * @param s the setting to set
- * @param v the new value of the setting, or QString() to
- * unset
- **/
+ * Set one of the predefined "basic" settings.
+ * @param s the setting to set
+ * @param v the new value of the setting, or QString() to
+ * unset
+ **/
void setSetting(KEMailSettings::Setting s, const QString &v);
private: