PECengine/ListLibrary2/AuthSrc/MPEngAuthorizationManagerSet.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2005 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 "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:  Authorization Manager Set abstract interface
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MPENGAUTHORIZATIONMANAGERSET_H__
       
    19 #define __MPENGAUTHORIZATIONMANAGERSET_H__
       
    20 
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class   CPEngAuthorizationResponse;
       
    28 
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32  * Authorization Manager Set abstract interface
       
    33  */
       
    34 class MPEngAuthorizationManagerSet
       
    35     {
       
    36 
       
    37     public: // New functions
       
    38 
       
    39         /**
       
    40          * Set authorization response
       
    41          *
       
    42          * @since 3.0
       
    43          * @param aUserid user Id
       
    44          * @param aAttributes attributes to be authorized
       
    45          * @param aKeepOldAuthorization already authorized attributes
       
    46          *        are kept authorized
       
    47          */
       
    48         virtual void SetAuthorizedAttributesL(
       
    49             const CPEngAuthorizationRequest& aAuthRequest,
       
    50             TArray<TUint32>& aAttributes,
       
    51             TBool aKeepOldAuthorization ) = 0;
       
    52 
       
    53         virtual void DenyAuthorizationL( const TDesC& aUserId ) = 0;
       
    54 
       
    55         virtual void CancelAuthorizationL( const TDesC& aUserId ) = 0;
       
    56 
       
    57 
       
    58         /**
       
    59          * Removes buffered authorization response
       
    60          * If this was last buffered authorization request
       
    61          * also lock for editing of authorization responses
       
    62          * is released.
       
    63          *
       
    64          * @since 3.0
       
    65          * @param aUserid user Id
       
    66          */
       
    67         virtual void RemoveAuthorizationResponse( const TDesC& aUserId ) = 0;
       
    68 
       
    69 
       
    70     protected:  //Destructor
       
    71 
       
    72         /**
       
    73          * Virtual inline destructor.
       
    74          * Protected to prohibite deletion through interface.
       
    75          */
       
    76         virtual ~MPEngAuthorizationManagerSet() {};
       
    77 
       
    78     };
       
    79 
       
    80 #endif      //  __MPENGAUTHORIZATIONMANAGERSET_H__
       
    81 
       
    82 //  End of File
       
    83