summaryrefslogtreecommitdiffstats
path: root/konversation/src/serversettings.h
diff options
context:
space:
mode:
Diffstat (limited to 'konversation/src/serversettings.h')
-rw-r--r--konversation/src/serversettings.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/konversation/src/serversettings.h b/konversation/src/serversettings.h
new file mode 100644
index 0000000..d1eec69
--- /dev/null
+++ b/konversation/src/serversettings.h
@@ -0,0 +1,52 @@
+/*
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+*/
+
+/*
+ Copyright (C) 2004 Peter Simonsson <psn@linux.se>
+ Copyright (C) 2008 Eike Hein <hein@kde.org>
+*/
+
+#ifndef KONVERSATIONSERVERSETTINGS_H
+#define KONVERSATIONSERVERSETTINGS_H
+
+#include <qstring.h>
+
+namespace Konversation
+{
+
+ class ServerSettings
+ {
+ public:
+ ServerSettings();
+ ServerSettings(const ServerSettings& settings);
+ explicit ServerSettings(const QString& host);
+ ~ServerSettings();
+
+ void setHost(const QString& host);
+ QString host() const { return m_host; }
+
+ void setPort(int port) { m_port = port; }
+ int port() const { return m_port;}
+
+ void setPassword(const QString& password);
+ QString password() const { return m_password; }
+
+ void setSSLEnabled(bool enabled) { m_SSLEnabled = enabled; }
+ bool SSLEnabled() const { return m_SSLEnabled; }
+
+ bool operator== (const ServerSettings& settings) const;
+
+ private:
+ QString m_host;
+ int m_port;
+ QString m_password;
+ bool m_SSLEnabled;
+
+ };
+
+}
+#endif