devsoundextensions/drmaudioplayer/DRMPlayServer/inc/DRMPlayServer.h
changeset 0 b8ed18f6c07b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/devsoundextensions/drmaudioplayer/DRMPlayServer/inc/DRMPlayServer.h	Thu Oct 07 22:34:12 2010 +0100
@@ -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 <e32base.h>
+#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
+	
+	
+	
+