pkiutilities/DeviceToken/Inc/TrustedSitesConduit.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 TrustedSiteConduit
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __TRUSTEDSITESCONDUIT_H__
       
    21 #define __TRUSTEDSITESCONDUIT_H__
       
    22 
       
    23 #include "DevTokenCliServ.h"
       
    24 #include "DevTokenMarshaller.h"
       
    25 #include "DevTokenDataTypes.h"
       
    26 
       
    27 class CTrustedSitesServer;
       
    28 
       
    29 /**
       
    30 * Trust sites store implementation in server side
       
    31 * 
       
    32  *  @lib 
       
    33  *  @since S60 v3.2
       
    34 */
       
    35 class CTrustedSitesConduit : public CBase
       
    36     {
       
    37     public:
       
    38     
       
    39         static CTrustedSitesConduit* NewL(CTrustedSitesServer& aServer);
       
    40     
       
    41         virtual ~CTrustedSitesConduit();
       
    42     
       
    43         void ServiceTrustedSitesRequestL(const RMessage2& aMessage);
       
    44 
       
    45     private:
       
    46     
       
    47         void AddL( const RMessage2& aMessage );
       
    48     
       
    49         TInt IsTrustedSiteL( const RMessage2& aMessage );   
       
    50     
       
    51         void GetTrustedSitesL( const RMessage2& aMessage ); 
       
    52 
       
    53         void AddForgivenSiteL(const RMessage2& aMessage );
       
    54         
       
    55         void RemoveForgivenSiteL( const RMessage2& aMessage );
       
    56         
       
    57         TInt IsOutOfDateAllowedL(const RMessage2& aMessage); 
       
    58     private:
       
    59      
       
    60         CTrustedSitesConduit(CTrustedSitesServer& aServer);
       
    61      
       
    62         HBufC8* AllocResponseBufferLC(TInt aSize, const RMessage2& aMessage);
       
    63      
       
    64         //  No copying
       
    65         CTrustedSitesConduit(const CTrustedSitesConduit&);      
       
    66      
       
    67         //  No copying
       
    68         CTrustedSitesConduit& operator=(const CTrustedSitesConduit&); 
       
    69 
       
    70     private:
       
    71       
       
    72         CTrustedSitesServer& iServer;
       
    73     };
       
    74 
       
    75 #endif  //__TRUSTEDSITESCONDUIT_H__
       
    76 
       
    77 //EOF
       
    78