diff -r 000000000000 -r bde4ae8d615e os/mm/devsoundextensions/drmaudioplayer/DRMPlayServer/inc/DRMPlayServer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/mm/devsoundextensions/drmaudioplayer/DRMPlayServer/inc/DRMPlayServer.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: DRM Play Server +* +*/ + + +#ifndef __CDRMPLAYSERVER_H +#define __CDRMPLAYSERVER_H + +#include +#include "DRMPlayClientServer.h" +#include "DRMPlaySession.h" + + +// reasons for server panic +enum TDRMPlayServPanic + { + EBadRequest, + EBadDescriptor, + EMainSchedulerError, + ESvrCreateServer, + ESvrStartServer, + ECreateTrapCleanup, + ENotImplementedYet + }; + + +class CDRMPlayServer : public CServer2 + { +public: + enum {EPriority=950}; +public: + static CDRMPlayServer* New(); + virtual CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const; + ~CDRMPlayServer(); + TUint iClients; +protected: + CDRMPlayServer(TInt aPriority); +private: + TInt iActive; + }; + + +GLREF_C void PanicServer(TDRMPlayServPanic aPanic); + +#endif + + + +