#include <tny-camel-imap-store-account.h>
#include <tny-camel-pop-store-account.h>
#include <tny-simple-list.h>
+#include <tny-error.h>
+#include <tny-merge-folder.h>
#include "modest-platform.h"
#include "modest-mail-operation-queue.h"
#include "modest-runtime.h"
gboolean
modest_platform_activate_uri (const gchar *uri)
{
- g_message ("NOT IMPLEMENTED");;
+ g_warning ("NOT IMPLEMENTED");;
return FALSE;
}
gboolean
modest_platform_activate_file (const gchar *path, const gchar *mime_type)
{
- g_message ("NOT IMPLEMENTED");;
+ g_warning ("NOT IMPLEMENTED");;
return FALSE;
}
gboolean
modest_platform_show_uri_popup (const gchar *uri)
{
- g_message ("NOT IMPLEMENTED");;
+ g_warning ("NOT IMPLEMENTED");;
return FALSE;
}
gpointer user_data)
{
TnyAccount *account = NULL;
-
- if (!folder_store) {
+
+ if (!folder_store ||
+ (TNY_IS_MERGE_FOLDER (folder_store) &&
+ (tny_folder_get_folder_type (TNY_FOLDER(folder_store)) == TNY_FOLDER_TYPE_OUTBOX))) {
+
/* We promise to instantly perform the callback, so ... */
if (callback) {
- callback (FALSE, NULL, parent_window, NULL, user_data);
- }
- return;
-
- /* Original comment: Maybe it is something local. */
- /* PVH's comment: maybe we should KNOW this in stead of assuming? */
-
+ GError *error = NULL;
+ g_set_error (&error, TNY_ERROR_DOMAIN, TNY_SERVICE_ERROR_UNKNOWN,
+ "Unable to move or not found folder");
+ callback (FALSE, error, parent_window, NULL, user_data);
+ g_error_free (error);
+ }
+ return;
+
} else if (TNY_IS_FOLDER (folder_store)) {
/* Get the folder's parent account: */
account = tny_folder_get_account(TNY_FOLDER (folder_store));
if (tny_account_get_account_type (account) == TNY_ACCOUNT_TYPE_STORE) {
if (!TNY_IS_CAMEL_POP_STORE_ACCOUNT (account) &&
!TNY_IS_CAMEL_IMAP_STORE_ACCOUNT (account)) {
-
+
/* This IS a local account like a maildir account, which does not require
* a connection. (original comment had a vague assumption in its language
* usage. There's no assuming needed, this IS what it IS: a local account), */
}
void
-modest_platform_on_new_headers_received (TnyList *header_list,
+modest_platform_on_new_headers_received (GList *URI_list,
gboolean show_visual)
{
/* TODO: implement this */
const gchar *icon_name,
const gchar *text)
{
- g_message ("NOT IMPLEMENTED");;
+ g_warning ("NOT IMPLEMENTED");;
+}
+
+void
+modest_platform_system_banner (GtkWidget *widget,
+ const gchar *icon_name,
+ const gchar *text)
+{
+ g_warning ("NOT IMPLEMENTED");;
}
void
const gchar *text,
gint timeout)
{
- g_message ("NOT IMPLEMENTED");;
+ g_warning ("NOT IMPLEMENTED");;
}
GtkWidget *
const gchar *icon_name,
const gchar *text)
{
- g_message ("NOT IMPLEMENTED");
+ g_warning ("NOT IMPLEMENTED");
return NULL;
}
void
modest_platform_show_search_messages (GtkWindow *parent_window)
{
- g_message ("NOT IMPLEMENTED");;
+ g_warning ("NOT IMPLEMENTED");;
}
GtkWidget *
void
modest_platform_remove_new_mail_notifications (gboolean only_visuals)
{
- g_message ("NOT IMPLEMENTED %s", __FUNCTION__);
+ g_warning ("NOT IMPLEMENTED %s", __FUNCTION__);
}
gboolean
modest_platform_check_and_wait_for_account_is_online(TnyAccount *account)
{
- g_message ("NOT IMPLEMENTED %s", __FUNCTION__);
+ g_warning ("NOT IMPLEMENTED %s", __FUNCTION__);
return TRUE;
}
modest_platform_run_certificate_confirmation_dialog (const gchar* server_name,
const gchar *certificate)
{
- g_message ("NOT IMPLEMENTED %s", __FUNCTION__);
+ g_warning ("NOT IMPLEMENTED %s", __FUNCTION__);
return TRUE;
}
const gchar *suggested_name,
gchar **folder_name)
{
- g_message ("NOT IMPLEMENTED %s", __FUNCTION__);
+ g_warning ("NOT IMPLEMENTED %s", __FUNCTION__);
return GTK_RESPONSE_CANCEL;
}
void
modest_platform_show_addressbook (GtkWindow *parent_window)
{
- g_message ("NOT IMPLEMENTED %s", __FUNCTION__);
+ g_warning ("NOT IMPLEMENTED %s", __FUNCTION__);
}
GtkWidget *
void
modest_platform_run_header_details_dialog (GtkWindow *parent_window,
- TnyHeader *header)
+ TnyHeader *header,
+ gboolean async_get_size,
+ TnyMsg *msg)
{
GtkWidget *dialog;
/* Create dialog */
- dialog = modest_details_dialog_new_with_header (parent_window, header);
+ dialog = modest_details_dialog_new_with_header (parent_window, header, TRUE);
/* Run dialog */
modest_window_mgr_set_modal (modest_runtime_get_window_mgr (),