aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppConfiguration.h
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-03-04 17:50:58 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-03-04 17:50:58 +0000
commit91f28d00487db9d68299a54d9e5f0f2b2ed75088 (patch)
tree89c750d5e4b4725e67b342d133730a48a9ae141d /source/QXmppConfiguration.h
parentd62111c56e911eb4e2dc2960d6589added32cfbe (diff)
downloadqxmpp-91f28d00487db9d68299a54d9e5f0f2b2ed75088.tar.gz
API cleanup: accessors naming
Diffstat (limited to 'source/QXmppConfiguration.h')
-rw-r--r--source/QXmppConfiguration.h48
1 files changed, 32 insertions, 16 deletions
diff --git a/source/QXmppConfiguration.h b/source/QXmppConfiguration.h
index 291af31b..97773456 100644
--- a/source/QXmppConfiguration.h
+++ b/source/QXmppConfiguration.h
@@ -74,6 +74,24 @@ public:
QXmppConfiguration();
~QXmppConfiguration();
+ QString host() const;
+ QString domain() const;
+ int port() const;
+ QString user() const;
+ QString passwd() const;
+ QString resource() const;
+ QString jid() const;
+ QString jidBare() const;
+
+ bool autoAcceptSubscriptions() const;
+ bool autoReconnectionEnabled() const;
+ bool useSASLAuthentication() const;
+ bool ignoreSslErrors() const;
+ QXmppConfiguration::StreamSecurityMode streamSecurityMode() const;
+ QXmppConfiguration::NonSASLAuthMechanism nonSASLAuthMechanism() const;
+ QXmppConfiguration::SASLAuthMechanism sASLAuthMechanism() const;
+ QNetworkProxy networkProxy() const;
+
void setHost(const QString&);
void setDomain(const QString&);
void setPort(int);
@@ -81,39 +99,37 @@ public:
void setPasswd(const QString&);
void setResource(const QString&);
+ void setAutoAcceptSubscriptions(bool);
+ void setAutoReconnectionEnabled(bool);
+ void setUseSASLAuthentication(bool);
+ void setIgnoreSslErrors(bool);
+
+ void setStreamSecurityMode(QXmppConfiguration::StreamSecurityMode mode);
+ void setNonSASLAuthMechanism(QXmppConfiguration::NonSASLAuthMechanism);
+ void setSASLAuthMechanism(QXmppConfiguration::SASLAuthMechanism);
+
+ void setNetworkProxy(const QNetworkProxy& proxy);
+
+// deprecated accessors, use the form without "get" instead
+// obsolete start
QString getHost() const;
QString getDomain() const;
int getPort() const;
QString getUser() const;
QString getPasswd() const;
- QString getStatus() const;
QString getResource() const;
QString getJid() const;
QString getJidBare() const;
bool getAutoAcceptSubscriptions() const;
- void setAutoAcceptSubscriptions(bool);
-
bool getAutoReconnectionEnabled() const;
- void setAutoReconnectionEnabled(bool);
-
bool getUseSASLAuthentication() const;
- void setUseSASLAuthentication(bool);
-
bool getIgnoreSslErrors() const;
- void setIgnoreSslErrors(bool);
-
QXmppConfiguration::StreamSecurityMode getStreamSecurityMode() const;
- void setStreamSecurityMode(QXmppConfiguration::StreamSecurityMode mode);
-
QXmppConfiguration::NonSASLAuthMechanism getNonSASLAuthMechanism() const;
- void setNonSASLAuthMechanism(QXmppConfiguration::NonSASLAuthMechanism);
-
QXmppConfiguration::SASLAuthMechanism getSASLAuthMechanism() const;
- void setSASLAuthMechanism(QXmppConfiguration::SASLAuthMechanism);
-
- void setNetworkProxy(const QNetworkProxy& proxy);
QNetworkProxy getNetworkProxy() const;
+// obsolete end
private:
QString m_host;