wmdrm/wmdrmengine/wmdrmpkserver/serverresources/inc/wmdrmpkserverresources.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 21:50:40 +0300
branchRCL_3
changeset 28 00671737faf2
parent 0 95b198f216e5
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2007-2009 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:  Server definitions
*
*/


#ifndef __WMDRMPKSERVERRESOURCES_H
#define __WMDRMPKSERVERRESOURCES_H

#include <e32base.h>
#include <f32file.h>
#include "wmdrmpkserverresources.h"

_LIT( KWmDrmPkServerName, "!wmdrmpkserver.exe" );
_LIT( KWmDrmPkServerImg, "wmdrmpkserver" );

class CWmDrmPkServer : public CServer2
	{
public:
	static CServer2* NewLC();
	void Send( const TDesC& aMessage );
	~CWmDrmPkServer();

private:
	CWmDrmPkServer();
	void ConstructL();
	CSession2* NewSessionL( const TVersion& aVersion, const RMessage2& aMessage ) const;
private:
	};

class CWmDrmPkSession : public CSession2
	{
public:
	CWmDrmPkSession();
	void CreateL();
	
private:
	~CWmDrmPkSession();
	inline CWmDrmPkServer& Server();
	void ServiceL(const RMessage2& aMessage);
	void ServiceError(const RMessage2& aMessage, TInt aError);
	};

#endif