usbmgmt/usbmgr/host/fdf/production/server/inc/fdfserver.h
changeset 0 c9bc50fca66e
child 29 59aa7d6e3e0f
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 2007-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:
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef FDFSERVER_H
       
    24 #define FDFSERVER_H
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 class CFdfSession;
       
    29 class CFdf;
       
    30 
       
    31 NONSHARABLE_CLASS(CFdfServer) : public CServer2
       
    32 	{
       
    33 public:
       
    34 	static void NewLC();
       
    35 	~CFdfServer();
       
    36 
       
    37 public: // called by session objects
       
    38 	void SessionClosed();
       
    39 
       
    40 private:
       
    41 	CFdfServer();
       
    42 	void ConstructL();
       
    43 	
       
    44 private: // from CPolicyServer
       
    45 	/**
       
    46 	Called by the base class to create a new session.
       
    47 	@param aVersion Version of client
       
    48 	@param aMessage Client's IPC message
       
    49 	@return A new session to be used for the client. If this could not be made, 
       
    50 	this function should leave.
       
    51 	*/
       
    52 	CSession2* NewSessionL(const TVersion &aVersion, const RMessage2& aMessage) const;
       
    53 
       
    54 private: // unowned
       
    55 	CFdfSession* iSession;
       
    56 
       
    57 private: // owned
       
    58 	CFdf* iFdf;
       
    59 	};
       
    60 
       
    61 #endif // FDFSERVER_H