IEBgps/inc/IEBgpServer.h
changeset 3 93fff7023be8
equal deleted inserted replaced
2:e1e28b0273b0 3:93fff7023be8
       
     1 /*
       
     2 * Copyright (c) 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: Juha Kauppinen, Mika Hokkanen
       
    13 * 
       
    14 * Description: Photo Browser
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __IEBGPSERVER_H__
       
    19 #define __IEBGPSERVER_H__
       
    20 
       
    21 // Include files
       
    22 #include <e32base.h>
       
    23 #include <f32file.h>
       
    24 #include "debug.h"
       
    25 
       
    26 enum TIDLServerPanic
       
    27 {
       
    28 	EBadRequest = 1,
       
    29 	EBadDescriptor,
       
    30 	EMainSchedulerError,
       
    31 	ESrvCreateError,
       
    32 	ESvrStartError,
       
    33 	ETrapCleanupError,
       
    34 	EGeneralError
       
    35 };
       
    36 
       
    37 class CIEBgpServer : public CServer2
       
    38 {
       
    39 public:
       
    40 	static 	CIEBgpServer* NewL();
       
    41 	~CIEBgpServer();
       
    42 
       
    43 private:
       
    44 	void ConstructL();
       
    45 	CIEBgpServer();
       
    46 
       
    47 public: // From CServer2
       
    48 	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
       
    49 	
       
    50 public: // New functions
       
    51 	static TInt ThreadFunction(TAny* aParam);
       
    52 	static void PanicServer(TIDLServerPanic aPanic);
       
    53 	
       
    54 private: // other private functions
       
    55 	static void StartServerL();	
       
    56 	
       
    57 private: // Data members
       
    58     RFs    iFileServer;
       
    59 		
       
    60 };
       
    61 
       
    62 #endif // __IEBGPSERVER_H__