aboutsummaryrefslogtreecommitdiffstats
path: root/src/messaging/url.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/messaging/url.cpp')
-rw-r--r--src/messaging/url.cpp74
1 files changed, 73 insertions, 1 deletions
diff --git a/src/messaging/url.cpp b/src/messaging/url.cpp
index cd38c656..9bedb150 100644
--- a/src/messaging/url.cpp
+++ b/src/messaging/url.cpp
@@ -131,7 +131,7 @@ void url::parse(const string& str)
if (protoEnd == string::npos) throw exceptions::malformed_url("No protocol separator");
const string proto =
- toLower(string(str.begin(), str.begin() + protoEnd));
+ stringUtils::toLower(string(str.begin(), str.begin() + protoEnd));
// Username/password
string::size_type slashPos = str.find('/', protoEnd + 3);
@@ -222,5 +222,77 @@ void url::parse(const string& str)
}
+const string& url::getProtocol() const
+{
+ return (m_protocol);
+}
+
+
+void url::setProtocol(const string& protocol)
+{
+ m_protocol = protocol;
+}
+
+
+const string& url::getUsername() const
+{
+ return (m_username);
+}
+
+
+void url::setUsername(const string& username)
+{
+ m_username = username;
+}
+
+
+const string& url::getPassword() const
+{
+ return (m_password);
+}
+
+
+void url::setPassword(const string& password)
+{
+ m_password = password;
+}
+
+
+const string& url::getHost() const
+{
+ return (m_host);
+}
+
+
+void url::setHost(const string& host)
+{
+ m_host = host;
+}
+
+
+const port_t url::getPort() const
+{
+ return (m_port);
+}
+
+
+void url::setPort(const port_t port)
+{
+ m_port = port;
+}
+
+
+const string& url::getPath() const
+{
+ return (m_path);
+}
+
+
+void url::setPath(const string& path)
+{
+ m_path = path;
+}
+
+
} // messaging
} // vmime