smf/smfcredentialmgr/smfcredmgrcommon/inc/smfcredmgrclientglobal.h
changeset 14 a469c0e6e7fb
child 18 013a02bf2bb0
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
       
     1 /**
       
     2  * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the "Eclipse Public License v1.0"
       
     6  * which accompanies  this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html"
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Pritam Roy Biswas, Sasken Communication Technologies Ltd - Initial contribution
       
    11  *
       
    12  * Description:
       
    13  * The header represents the error code, typedefs and export macro declaration for
       
    14  *  CredMgr Server-client
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef SMFCREDMGRCLIENTGLOBAL_H
       
    19 #define SMFCREDMGRCLIENTGLOBAL_H
       
    20 
       
    21 #include <QtCore/qglobal.h>
       
    22 #include <QByteArray>
       
    23 #include <QMap>
       
    24 
       
    25 typedef QMap<QByteArray, QByteArray> SmfAuthParams;
       
    26 
       
    27 #if defined(SMFCREDMGRCLIENT_LIBRARY)
       
    28 #  define SmfCredMgrClient_EXPORT Q_DECL_EXPORT
       
    29 #else
       
    30 #  define SmfCredMgrClient_EXPORT Q_DECL_IMPORT
       
    31 #endif
       
    32 
       
    33 /**
       
    34  *Enumeration to represent Error occured during API call
       
    35  *todo- to be used later
       
    36  */
       
    37 enum SMFCredMgrErrorCode
       
    38 	{
       
    39 	/**
       
    40 	 *No error has occured
       
    41 	 */
       
    42 	SmfErrNone = 200,
       
    43 	/**
       
    44 	 *Plugin not autherised
       
    45 	 */
       
    46 	SmfErrUnAutherised,
       
    47 	/**
       
    48 	 *Parameters of API are unexpected/invalid
       
    49 	 */
       
    50 	SmfErrBadParameter,
       
    51 	/**
       
    52 	 *Error reason is not known
       
    53 	 */
       
    54 	SmfErrUnKnown
       
    55 	};
       
    56 
       
    57 #endif // SMFCREDMGRCLIENTGLOBAL_H