sl@0: /* sl@0: * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: DRM Play Server sl@0: * sl@0: */ sl@0: sl@0: sl@0: #ifndef __CDRMPLAYSERVER_H sl@0: #define __CDRMPLAYSERVER_H sl@0: sl@0: #include sl@0: #include "DRMPlayClientServer.h" sl@0: #include "DRMPlaySession.h" sl@0: sl@0: sl@0: // reasons for server panic sl@0: enum TDRMPlayServPanic sl@0: { sl@0: EBadRequest, sl@0: EBadDescriptor, sl@0: EMainSchedulerError, sl@0: ESvrCreateServer, sl@0: ESvrStartServer, sl@0: ECreateTrapCleanup, sl@0: ENotImplementedYet sl@0: }; sl@0: sl@0: sl@0: class CDRMPlayServer : public CServer2 sl@0: { sl@0: public: sl@0: enum {EPriority=950}; sl@0: public: sl@0: static CDRMPlayServer* New(); sl@0: virtual CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const; sl@0: ~CDRMPlayServer(); sl@0: TUint iClients; sl@0: protected: sl@0: CDRMPlayServer(TInt aPriority); sl@0: private: sl@0: TInt iActive; sl@0: }; sl@0: sl@0: sl@0: GLREF_C void PanicServer(TDRMPlayServPanic aPanic); sl@0: sl@0: #endif sl@0: sl@0: sl@0: sl@0: