diff -r 2fb8b9db1c86 -r d55eb581a87c baseport/syborg/svpsnapdriver/src/rsvpsnapdriver.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/baseport/syborg/svpsnapdriver/src/rsvpsnapdriver.cpp Tue Aug 04 10:28:23 2009 +0100 @@ -0,0 +1,56 @@ +/* +* 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 the License "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 // for User:: +#include "rsvpsnapdriver.h" + +//#define SVPDBG +#ifdef SVPDBG +#include +#define DP(format...) RDebug::Printf(format) +#else +#define DP(format...) +#endif + +TInt RSVPSnapDriver::Open(void) +{ + DP("** RSVPSnapDriver::Open()"); + + const TVersion ver = TVersion(KMajorVersionNumber,KMinorVersionNumber,KBuildVersionNumber); + + return DoCreate(KSVPSnapDriverName, + ver, + KNullUnit, + NULL, + NULL); +} + +TInt RSVPSnapDriver::SaveVM(const TDesC8& aData) +{ + DP("** RSVPSnapDriver::SaveVM"); + + //DP("** RSVPSnapDriver::SaveVM: - length of data=%d", length); + //DP("** RSVPSnapDriver::SaveVM: - aName= %s", name.Ptr()); + + return DoSVPRequest(ESaveVM,(TAny*)&aData); + } + +TInt RSVPSnapDriver::LoadVM(const TDesC8& aData) +{ + DP("** RSVPSnapDriver::LoadVM"); + return DoSVPRequest(ELoadVM,(TAny*)&aData); +}