baseport/src/cedar/generic/base/syborg/svpsnapdriver/src/rsvpsnapdriver.cpp
changeset 0 ffa851df0825
equal deleted inserted replaced
-1:000000000000 0:ffa851df0825
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #include <e32std.h>    // for User::
       
    19 #include "rsvpsnapdriver.h"
       
    20 
       
    21 //#define SVPDBG
       
    22 #ifdef SVPDBG
       
    23 #include <e32debug.h>
       
    24 #define DP(format...) RDebug::Printf(format)
       
    25 #else
       
    26 #define DP(format...)
       
    27 #endif
       
    28 
       
    29 TInt RSVPSnapDriver::Open(void)
       
    30 {
       
    31   DP("** RSVPSnapDriver::Open()");
       
    32 
       
    33   const TVersion ver = TVersion(KMajorVersionNumber,KMinorVersionNumber,KBuildVersionNumber);
       
    34 
       
    35   return DoCreate(KSVPSnapDriverName,
       
    36 				  ver,
       
    37 				  KNullUnit,
       
    38 				  NULL,
       
    39 				  NULL);
       
    40 }
       
    41 
       
    42 TInt RSVPSnapDriver::SaveVM(const TDesC8& aData)
       
    43 {
       
    44   DP("** RSVPSnapDriver::SaveVM");
       
    45   
       
    46   //DP("** RSVPSnapDriver::SaveVM: - length of data=%d", length);
       
    47   //DP("** RSVPSnapDriver::SaveVM: - aName= %s", name.Ptr());
       
    48 	
       
    49   return DoSVPRequest(ESaveVM,(TAny*)&aData);
       
    50  }
       
    51 
       
    52 TInt RSVPSnapDriver::LoadVM(const TDesC8& aData)
       
    53 {
       
    54   DP("** RSVPSnapDriver::LoadVM");
       
    55   return DoSVPRequest(ELoadVM,(TAny*)&aData);
       
    56 }