javamanager/javacaptain/systemams/src/systemamstrader.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 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:  CSystemAMSTrader
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SYSTEMAMSTRADER_H
       
    19 #define SYSTEMAMSTRADER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 #include "legacyserver.h"
       
    24 #include "certificatesmanager.h"
       
    25 
       
    26 NONSHARABLE_CLASS(CSystemAMSTrader): public CBase,
       
    27         public MLegacyServerHandler
       
    28 {
       
    29 public:
       
    30     CSystemAMSTrader(TBool aIadStart);
       
    31     virtual ~CSystemAMSTrader();
       
    32 
       
    33     static void StartL(TBool aIadStart);
       
    34     void ConstructL(void);
       
    35 
       
    36     void HandleMessageL(const int serverId, const RMessage2& aMessage) const;
       
    37 
       
    38 private:
       
    39     void handlePublicServerRequests(const RMessage2& aMessage) const;
       
    40     void handleSecurityAdminRequestsL(const RMessage2& aMessage) const;
       
    41 
       
    42     CLegacyServer*  mPublicServer;
       
    43     CLegacyServer*  mSecurityAdminServer;
       
    44     java::security::legacysupport::CertificatesManager* mCertificatesManager;
       
    45     TBool mIadStart;
       
    46 };
       
    47 
       
    48 #endif // SYSTEMAMSTRADER_H