--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/email_plat/nmail_client_api/nmapicommon.h Fri May 14 15:41:10 2010 +0300
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ *
+ */
+
+#ifndef NMAPICOMMON_H_
+#define NMAPICOMMON_H_
+
+#include <QMetaType>
+
+namespace EmailClientApi
+{
+ /*!
+ Enum to describe mailbox events
+ */
+ enum NmApiMailboxEvent
+ {
+ MailboxCreated, MailboxDeleted
+ };
+
+ /*!
+ Enum to describe message events.
+ */
+ enum NmApiMessageEvent
+ {
+ MessageCreated,
+ MessageDeleted,
+ MessageChanged
+ };
+
+ /*!
+ Enum to describe type of email folder
+ */
+ enum NmApiEmailFolderType
+ {
+ Inbox, Drafts, Outbox, Sent, Deleted, EOther
+ };
+
+ /*!
+ Enum to describe error types
+ */
+ enum NmApiError
+ {
+ GeneralError = -1, NotSupportedError
+ };
+
+}
+Q_DECLARE_METATYPE (EmailClientApi::NmApiMailboxEvent)
+Q_DECLARE_METATYPE(EmailClientApi::NmApiMessageEvent)
+Q_DECLARE_METATYPE (EmailClientApi::NmApiEmailFolderType)
+Q_DECLARE_METATYPE (EmailClientApi::NmApiError)
+
+#endif /* NMAPICOMMON_H_ */