#include <dpl/log/log.h>
#include <dpl/scoped_ptr.h>
-#include <emf-types.h>
-#include <Emf_Mapi_Message.h>
+#include <email-types.h>
+#include <email-api-mail.h>
namespace TizenApis {
namespace Platform {
struct ScopedMailPolicy
{
- typedef emf_mail_t* Type;
+ typedef emf_mail_data_t* Type;
static Type NullValue()
{
{
LogDebug("Destroy");
if (NullValue() != mail) {
- LogDebug("email_free_mail");
- int error = email_free_mail(&mail, 1);
+ LogDebug("email_free_mail_data");
+ int error = email_free_mail_data(&mail, 1);
if (EMF_ERROR_NONE != error) {
LogError("Failed to destroy mail: " << error);
}
}
};
-typedef DPL::ScopedPtr<emf_mail_t, ScopedMailPolicy> ScopedMail;
+typedef DPL::ScopedPtr<emf_mail_data_t, ScopedMailPolicy> ScopedMail;
}
}
}