textinput/peninputarc/src/peninputserverapp/peninputcrp.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 21:59:06 +0300
branchRCL_3
changeset 22 bd83ceabce89
parent 0 eb1f2e154e89
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 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:
*
*/


#include "peninputcrpmsg.h"
#include "peninputcrp.h"

#define SZ(x) (sizeof(x) / sizeof(TInt))
	
CPenInputCrpServiceClient* CPenInputCrpServiceClient::NewL()	
    {
    CPenInputCrpServiceClient* self = new(ELeave) CPenInputCrpServiceClient();
    CleanupStack::PushL(self);
    self->ConstructL();
    CleanupStack::Pop(self);
    return self;
    }
	
void CPenInputCrpServiceClient::ConstructL()
	{
	const TUid id = {0x2000B5E7};

	BaseConstructL(id, KNullDesC8);
	/*const TInt msg[] = {
				NAknWsServiceMsg::ELastView,
			};
	TPckgC<TInt[SZ(msg)]> buf(msg);
	const TInt handle = SendSynchronMessage(buf);
	iBmp->Duplicate(handle);*/
	}	
															 

TBool CPenInputCrpServiceClient::IsDsaApp(TInt aGrpId)
    {
	const TInt msg[] = {
				NPenInputCRPServiceMsg::EIsDsaApp,
				aGrpId
    			};
	TPckgC<TInt[SZ(msg)]> buf(msg);
	
    return  SendSynchronMessage(buf);
    }
    
    
void CPenInputCrpServiceClient::RemoveDsaApp(TInt aGrpId)
    {
	const TInt msg[] = {
				NPenInputCRPServiceMsg::ERemoveDsaApp,
				aGrpId
    			};
	TPckgC<TInt[SZ(msg)]> buf(msg);
	SendMessage(buf);
	Flush();
    
    }
    
void CPenInputCrpServiceClient::HandleMessage(const TDesC8& /*aData*/)
	{
	
	}
    
void CPenInputCrpServiceClient::OnReplace()
	{
	/*empty*/
	}