diff -r 000000000000 -r eb1f2e154e89 textinput/peninputarc/src/peninputserverapp/peninputcrp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/textinput/peninputarc/src/peninputserverapp/peninputcrp.cpp Tue Feb 02 01:02:04 2010 +0200 @@ -0,0 +1,80 @@ +/* +* 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 buf(msg); + const TInt handle = SendSynchronMessage(buf); + iBmp->Duplicate(handle);*/ + } + + +TBool CPenInputCrpServiceClient::IsDsaApp(TInt aGrpId) + { + const TInt msg[] = { + NPenInputCRPServiceMsg::EIsDsaApp, + aGrpId + }; + TPckgC buf(msg); + + return SendSynchronMessage(buf); + } + + +void CPenInputCrpServiceClient::RemoveDsaApp(TInt aGrpId) + { + const TInt msg[] = { + NPenInputCRPServiceMsg::ERemoveDsaApp, + aGrpId + }; + TPckgC buf(msg); + SendMessage(buf); + Flush(); + + } + +void CPenInputCrpServiceClient::HandleMessage(const TDesC8& /*aData*/) + { + + } + +void CPenInputCrpServiceClient::OnReplace() + { + /*empty*/ + } +