smf/smfcredentialmgr/smfcredmgrcommon/inc/smfcredmgrclientglobal.h
changeset 14 a469c0e6e7fb
child 18 013a02bf2bb0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/smf/smfcredentialmgr/smfcredmgrcommon/inc/smfcredmgrclientglobal.h	Wed Jun 23 19:51:49 2010 +0530
@@ -0,0 +1,57 @@
+/**
+ * Copyright (c) 2010 Sasken Communication Technologies Ltd.
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of the "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:
+ * Pritam Roy Biswas, Sasken Communication Technologies Ltd - Initial contribution
+ *
+ * Description:
+ * The header represents the error code, typedefs and export macro declaration for
+ *  CredMgr Server-client
+ *
+ */
+
+#ifndef SMFCREDMGRCLIENTGLOBAL_H
+#define SMFCREDMGRCLIENTGLOBAL_H
+
+#include <QtCore/qglobal.h>
+#include <QByteArray>
+#include <QMap>
+
+typedef QMap<QByteArray, QByteArray> SmfAuthParams;
+
+#if defined(SMFCREDMGRCLIENT_LIBRARY)
+#  define SmfCredMgrClient_EXPORT Q_DECL_EXPORT
+#else
+#  define SmfCredMgrClient_EXPORT Q_DECL_IMPORT
+#endif
+
+/**
+ *Enumeration to represent Error occured during API call
+ *todo- to be used later
+ */
+enum SMFCredMgrErrorCode
+	{
+	/**
+	 *No error has occured
+	 */
+	SmfErrNone = 200,
+	/**
+	 *Plugin not autherised
+	 */
+	SmfErrUnAutherised,
+	/**
+	 *Parameters of API are unexpected/invalid
+	 */
+	SmfErrBadParameter,
+	/**
+	 *Error reason is not known
+	 */
+	SmfErrUnKnown
+	};
+
+#endif // SMFCREDMGRCLIENTGLOBAL_H