pkiutilities/DeviceToken/Inc/DevandTruSrvCertStoreConduit.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2006 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:   The header file of DevandTruSrvCertStoreConduit
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __DEVANDTRUSRVCERTSTORECONDUIT_H__
       
    21 #define __DEVANDTRUSRVCERTSTORECONDUIT_H__
       
    22 
       
    23 #include "DevTokenCliServ.h"
       
    24 #include "DevTokenMarshaller.h"
       
    25 #include "DevTokenDataTypes.h"
       
    26 #include <ccertattributefilter.h>
       
    27 
       
    28 class CDevandTruSrvCertStoreServer;
       
    29 
       
    30 /**
       
    31  *  class CDevandTruSrvCertStoreConduit
       
    32  *
       
    33  * Unmarshalls incoming client request data and uses it to execute certstore
       
    34  * operations.  Marshalls the return data into a suitable format to pass back to
       
    35  * to the client
       
    36  *
       
    37  *  @lib 
       
    38  *  @since S60 v3.2
       
    39  */
       
    40 class CDevandTruSrvCertStoreConduit : public CBase
       
    41     {
       
    42     public:
       
    43         
       
    44         static CDevandTruSrvCertStoreConduit* NewL(CDevandTruSrvCertStoreServer& aServer);
       
    45         
       
    46         virtual ~CDevandTruSrvCertStoreConduit();
       
    47         
       
    48         void ServiceCertStoreRequestL(const RMessage2& aMessage);
       
    49 
       
    50     private:
       
    51         
       
    52         // For MCTCertStore
       
    53         void ListCertsL(const RMessage2& aMessage);
       
    54         
       
    55         void GetCertL(const RMessage2& aMessage);
       
    56         
       
    57         void ApplicationsL(const RMessage2& aMessage);
       
    58         
       
    59         TInt IsApplicableL(const RMessage2& aMessage);
       
    60         
       
    61         TInt TrustedL(const RMessage2& aMessage);
       
    62         
       
    63         void RetrieveL(const RMessage2& aMessage);
       
    64 
       
    65         // For MCTWritableCertStore
       
    66         void AddCertL(const RMessage2& aMessage);
       
    67         
       
    68         void RemoveCertL(const RMessage2& aMessage);
       
    69         
       
    70         void SetApplicabilityL(const RMessage2& aMessage);
       
    71         
       
    72         void SetTrustL(const RMessage2& aMessage);
       
    73 
       
    74     private:
       
    75         
       
    76         CDevandTruSrvCertStoreConduit(CDevandTruSrvCertStoreServer& aServer);
       
    77         
       
    78         HBufC8* AllocResponseBufferLC(TInt aSize, const RMessage2& aMessage);
       
    79         
       
    80         CDevandTruSrvCertStoreConduit(const CDevandTruSrvCertStoreConduit&);      //  No copying
       
    81         
       
    82         CDevandTruSrvCertStoreConduit& operator=(const CDevandTruSrvCertStoreConduit&); //  No copying
       
    83 
       
    84     private:
       
    85         
       
    86         // The cert store server used to fulfill client requests
       
    87         CDevandTruSrvCertStoreServer& iServer;
       
    88     };
       
    89 
       
    90 #endif  //  __DEVANDTRUSRVCERTSTORECONDUIT_H__
       
    91 
       
    92 //EOF
       
    93