vpnengine/vpnmanager/inc/requestdispatcher.h
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2003-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 "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: Dispatches requests from clients to CVpnApiServant.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __REQUESTDISPATCHER_H__
       
    19 #define __REQUESTDISPATCHER_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class RFs;
       
    24 class CVpnApiServant;
       
    25 
       
    26 
       
    27 /**
       
    28  * Server-level request dispatcher.
       
    29  * Dispatches the requests received from VPN Manager
       
    30  * client to the actual request servants that operate
       
    31  * at the server level (of which there is only one
       
    32  * instance).
       
    33  */
       
    34 class CRequestDispatcher : public CBase
       
    35     {
       
    36 public:
       
    37     static CRequestDispatcher* NewL(RFs& aFs);
       
    38     ~CRequestDispatcher();
       
    39 
       
    40     TBool ServiceL(const RMessage2& aMessage, CSession2* aSession);
       
    41     
       
    42 private:
       
    43     CRequestDispatcher(RFs& aFs);
       
    44     void ConstructL();
       
    45 
       
    46 public:
       
    47     CVpnApiServant* iVpnApiServant;
       
    48     RFs& iFs;
       
    49     };
       
    50 
       
    51 
       
    52 #endif  // __REQUESTDISPATCHER_H__