upload tizen1.0 source
[profile/ivi/wrt-plugins-tizen.git] / src / platform / Tizen / Messaging / ScopedMail.h
index 8511ae1..664f019 100755 (executable)
@@ -23,8 +23,8 @@
 
 #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 {
@@ -32,7 +32,7 @@ namespace Messaging {
 
 struct ScopedMailPolicy
 {
-    typedef emf_mail_t* Type;
+    typedef emf_mail_data_t* Type;
 
     static Type NullValue()
     {
@@ -44,8 +44,8 @@ struct ScopedMailPolicy
     {
           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);
             }
@@ -53,7 +53,7 @@ struct ScopedMailPolicy
     }
 };
 
-typedef DPL::ScopedPtr<emf_mail_t, ScopedMailPolicy> ScopedMail;
+typedef DPL::ScopedPtr<emf_mail_data_t, ScopedMailPolicy> ScopedMail;
 }
 }
 }