authenticationservices/authenticationserver/inc/authserver/authmgrclient.h
changeset 29 ece3df019add
equal deleted inserted replaced
19:cd501b96611d 29:ece3df019add
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "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 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * RAuthMgrClient - external authentication client session interface
       
    16 * The defined fuctionality is used by clients to access the authentication
       
    17 * server for the purpose of managing identities.
       
    18 * The access to a specific functionality is dependant on the client 
       
    19 * capabilities and may be restricted.             
       
    20 *
       
    21 */
       
    22 
       
    23 
       
    24 /**
       
    25  @file 
       
    26  @publishedAll
       
    27  @released
       
    28 */
       
    29 
       
    30 #ifndef AUTHMGRCLIENT_H
       
    31 #define AUTHMGRCLIENT_H
       
    32 
       
    33 #include "authserver/authclient.h"
       
    34 
       
    35 namespace AuthServer
       
    36 {
       
    37 
       
    38 /**
       
    39  * Client side interface to the authentication server providing identity
       
    40  * management services.
       
    41  */	
       
    42 class RAuthMgrClient : public RAuthClient
       
    43 	{
       
    44 public:
       
    45 
       
    46 	IMPORT_C void RegisterIdentityL(CIdentity*& aIdentity,
       
    47 								   const TDesC& aDescription,  
       
    48 								   TRequestStatus& aRequest);
       
    49 
       
    50 	IMPORT_C void RemoveIdentityL(TIdentityId aId);
       
    51 
       
    52 
       
    53 	IMPORT_C void TrainPlugin(TIdentityId aId,
       
    54 							  TPluginId aPlugin,
       
    55 							  TRequestStatus& aRequest);
       
    56 
       
    57 	IMPORT_C void ForgetPluginL(TIdentityId aId,
       
    58 					  TPluginId aPlugin);
       
    59 
       
    60 	IMPORT_C void SetPreferredTypePluginL(TAuthPluginType aPluginType,
       
    61 										  TPluginId aPluginId);
       
    62 
       
    63 	IMPORT_C void ResetIdentityL(TIdentityId aId,
       
    64 								const TDesC& aRegistrationInformation);
       
    65 
       
    66 	IMPORT_C void ResetIdentityL(TIdentityId aId,
       
    67 								TAuthPluginType aPluginType,
       
    68 								const TDesC& aRegistrationInformation);
       
    69 
       
    70 	IMPORT_C void ResetIdentityL(TIdentityId aId,
       
    71 								RArray<TPluginId>& aPluginIdList,
       
    72 								RPointerArray<const HBufC>& aRegistrationInformation);
       
    73 	};
       
    74 } // namespace
       
    75 #endif