# HG changeset patch # User William Roberts # Date 1283521786 -3600 # Node ID 149feadf1a1f0f2ed05151fd6c17ca4b076daafb # Parent 613028a7da24ce5495072bfb3042858e858eb024# Parent 8d0236b3668f4a7728a2785d2ad280525c57d9fe Remerge fix for Bug 3648 diff -r 613028a7da24 -r 149feadf1a1f usbmgmt/usbmgr/device/classdrivers/ncm/classimplementation/ncmpktdrv/client/src/ncminternalsrv.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usbmgmt/usbmgr/device/classdrivers/ncm/classimplementation/ncmpktdrv/client/src/ncminternalsrv.cpp Fri Sep 03 14:49:46 2010 +0100 @@ -0,0 +1,80 @@ +/* +* Copyright (c) 2010 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: +* +*/ + +/** +@file +@internalTechnology +*/ + +#include +#include "ncminternalsrv.h" +#include "ncmserverconsts.h" + + +/** Constructor */ +EXPORT_C RNcmInternalSrv::RNcmInternalSrv() + { + } + +/** Destructor */ +EXPORT_C RNcmInternalSrv::~RNcmInternalSrv() + { + } + +EXPORT_C TVersion RNcmInternalSrv::Version() const + { + return TVersion( KNcmSrvMajorVersionNumber, + KNcmSrvMinorVersionNumber, + KNcmSrvBuildNumber + ); + } + +EXPORT_C TInt RNcmInternalSrv::Connect() + { + return CreateSession(KNcmServerName, Version(), 1); + } + +EXPORT_C TInt RNcmInternalSrv::TransferHandle(RHandleBase& aCommHandle, RHandleBase& aCommChunk, RHandleBase& aDataHandle, RHandleBase& aDataChunk) + { + return SendReceive(ENcmTransferHandle, TIpcArgs(aCommHandle, aCommChunk, aDataHandle, aDataChunk)); + } + +EXPORT_C TInt RNcmInternalSrv::SetIapId(TUint aIapId) + { + return SendReceive(ENcmSetIapId, TIpcArgs(aIapId)); + } + +EXPORT_C TInt RNcmInternalSrv::SetDhcpResult(TInt aResult) + { + return SendReceive(ENcmSetDhcpResult, TIpcArgs(aResult)); + } + +EXPORT_C void RNcmInternalSrv::DhcpProvisionNotify(TRequestStatus& aStatus) + { + SendReceive(ENcmDhcpProvisionNotify, aStatus); + } + +EXPORT_C void RNcmInternalSrv::DhcpProvisionNotifyCancel() + { + SendReceive(ENcmDhcpProvisionNotifyCancel); + } + +EXPORT_C TInt RNcmInternalSrv::TransferBufferSize(TUint aSize) + { + return SendReceive(ENcmTransferBufferSize, TIpcArgs(aSize)); + } +