installationservices/swcomponentregistry/scrhelper/inc/scrhelperserver.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
       
     2 * Copyright (c) 2008-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 the License "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 /**
       
    20  @file
       
    21  @internalComponent
       
    22  @released
       
    23 */
       
    24 
       
    25 #ifndef SCRHELPERSERVER_H
       
    26 #define SCRHELPERSERVER_H
       
    27 
       
    28 #include <scs/scsserver.h>
       
    29 #include <e32cmn.h>
       
    30 #include <f32file.h> 
       
    31 
       
    32 namespace Usif
       
    33 	{
       
    34 	class CScrHelperServer : public CScsServer
       
    35 		{
       
    36 	public:
       
    37 		static CScrHelperServer* NewLC();
       
    38 		~CScrHelperServer();
       
    39 		
       
    40 		inline RFs& FileServer();
       
    41 		
       
    42 		//Implement from CScsServer
       
    43 		CScsSession* DoNewSessionL(const RMessage2& aMessage);
       
    44 		
       
    45 	private:
       
    46 		CScrHelperServer();
       
    47 		void ConstructL();
       
    48 	
       
    49 	private:
       
    50 		RFs iFs; ///< File server session handle.
       
    51 		};	
       
    52 	
       
    53 	
       
    54 	class CScrHelperSession : public CScsSession
       
    55 		{
       
    56 	public:
       
    57 		static CScrHelperSession* NewL(CScrHelperServer &aServer, const RMessage2& aMessage);
       
    58 		~CScrHelperSession();
       
    59 		
       
    60 		// implement CScsSession
       
    61 		TBool DoServiceL(TInt aFunction, const RMessage2& aMessage);	
       
    62 		
       
    63 	private:
       
    64 		CScrHelperSession(CScrHelperServer &aServer);
       
    65 		void GetFileHandleL(RFs& aFs, const RMessage2& aMessage, const TDesC& aFileName);
       
    66 		};
       
    67 	
       
    68 	} // namespace Usif
       
    69 
       
    70 #endif /* SCRHELPERSERVER_H */