summaryrefslogtreecommitdiffabout
path: root/libmu_cpp/folder.cc
authorWojciech Polak <polak@gnu.org>2009-03-05 19:39:24 (GMT)
committer Wojciech Polak <polak@gnu.org>2009-03-05 19:39:24 (GMT)
commitb4b7a4a68868d9943b9a4c946c1e0b21b2c3d49f (patch) (side-by-side diff)
tree72bbbb9c370e897053d8c27ed8b65a4e027e5a54 /libmu_cpp/folder.cc
parent29b072f730bbe6b96d8518987ed125a6020fb5d4 (diff)
downloadmailutils-b4b7a4a68868d9943b9a4c946c1e0b21b2c3d49f.tar.gz
mailutils-b4b7a4a68868d9943b9a4c946c1e0b21b2c3d49f.tar.bz2
Add Envelope class to libmu_cpp. Add new methods.
* include/mailutils/cpp/envelope.h, libmu_cpp/envelope.cc: New files.
Diffstat (limited to 'libmu_cpp/folder.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--libmu_cpp/folder.cc17
1 files changed, 14 insertions, 3 deletions
diff --git a/libmu_cpp/folder.cc b/libmu_cpp/folder.cc
index d4dc2af..8d3155c 100644
--- a/libmu_cpp/folder.cc
+++ b/libmu_cpp/folder.cc
@@ -19,8 +19,6 @@
*/
#include <mailutils/cpp/folder.h>
-#include <mailutils/cpp/error.h>
-#include <errno.h>
using namespace mailutils;
@@ -86,7 +84,8 @@ Folder :: close ()
}
List&
-Folder :: list (const std::string& dirname, void* pattern, size_t max_level)
+Folder :: list (const std::string& dirname, void* pattern,
+ size_t max_level = 0)
{
mu_list_t c_list;
@@ -134,3 +133,15 @@ Folder :: set_stream (const Stream& stream)
throw Exception ("Folder::set_stream", status);
}
+Url&
+Folder :: get_url ()
+{
+ mu_url_t c_url;
+
+ int status = mu_folder_get_url (folder, &c_url);
+ if (status)
+ throw Exception ("Folder::get_url", status);
+
+ return *new Url (c_url);
+}
+

Return to:

Send suggestions and report system problems to the System administrator.