aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility/path.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-12-17 23:02:37 +0000
committerVincent Richard <[email protected]>2004-12-17 23:02:37 +0000
commit1d44fdfab55b7879897402dca8a30a2aec7e97d4 (patch)
tree416ebdf912203fdbbcc61ce63b821ec66c74c88d /src/utility/path.cpp
parentFixed bugs with message count notification. (diff)
downloadvmime-1d44fdfab55b7879897402dca8a30a2aec7e97d4.tar.gz
vmime-1d44fdfab55b7879897402dca8a30a2aec7e97d4.zip
Added appendComponent() and getComponentAt() functions.
Diffstat (limited to 'src/utility/path.cpp')
-rw-r--r--src/utility/path.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/utility/path.cpp b/src/utility/path.cpp
index 88ad00e5..76a938e3 100644
--- a/src/utility/path.cpp
+++ b/src/utility/path.cpp
@@ -192,5 +192,23 @@ const bool path::isDirectParentOf(const path& p) const
}
+void path::appendComponent(const path::component& c)
+{
+ m_list.push_back(c);
+}
+
+
+const path::component& path::getComponentAt(const int pos) const
+{
+ return (m_list[pos]);
+}
+
+
+path::component& path::getComponentAt(const int pos)
+{
+ return (m_list[pos]);
+}
+
+
} // utility
} // vmime