os/mm/devsoundextensions/drmaudioplayer/DRMPlayServer/inc/DRMPlayServer.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2005-2006 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:
    13 *
    14 * Description:   DRM Play Server
    15 *
    16 */
    17 
    18 
    19 #ifndef __CDRMPLAYSERVER_H
    20 #define __CDRMPLAYSERVER_H
    21 
    22 #include <e32base.h>
    23 #include "DRMPlayClientServer.h"
    24 #include "DRMPlaySession.h"
    25 
    26 
    27 // reasons for server panic
    28 enum TDRMPlayServPanic
    29 	{
    30 	EBadRequest,
    31 	EBadDescriptor,
    32 	EMainSchedulerError,
    33 	ESvrCreateServer,
    34 	ESvrStartServer,
    35 	ECreateTrapCleanup,
    36 	ENotImplementedYet
    37 	};
    38 
    39 
    40 class CDRMPlayServer : public CServer2
    41 	{
    42 public:
    43 	enum {EPriority=950}; 
    44 public:
    45 	static CDRMPlayServer* New();
    46 	virtual CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
    47     ~CDRMPlayServer();
    48     TUint	iClients;
    49 protected:
    50 	CDRMPlayServer(TInt aPriority);
    51 private:
    52 	TInt				iActive;
    53 	};
    54 	
    55 
    56 GLREF_C void PanicServer(TDRMPlayServPanic aPanic);
    57 	
    58 #endif
    59 	
    60 	
    61 	
    62