remotemgmt_plat/dcmo_control_api/inc/lawmoclient.h
branchRCL_3
changeset 24 13d7c31c74e0
equal deleted inserted replaced
23:4af31167ea77 24:13d7c31c74e0
       
     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 "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:  header file for lawmo Client
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __LAWMOCLIENT_H__
       
    19 #define __LAWMOCLIENT_H__
       
    20 
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <f32file.h>
       
    24 #include <dcmoconst.h>
       
    25 
       
    26 // needed for creating server thread.
       
    27 
       
    28 class RLawmoClient : public RSessionBase
       
    29     {
       
    30 public:
       
    31 
       
    32 	/**
       
    33 	 * connects to DCMOServer
       
    34 	 * @param None
       
    35 	 * @return KErrNone Symbian error code
       
    36 	 */	
       
    37 	IMPORT_C TInt Connect();  
       
    38 	/**
       
    39 	 * Close server connection
       
    40 	 * @param None
       
    41 	 * @return None
       
    42 	 */
       
    43 	IMPORT_C void Close();
       
    44 	/**
       
    45 	* Wipe the contents of the Device
       
    46 	* @param None
       
    47 	* @return None
       
    48 	*/
       
    49 	IMPORT_C TLawMoStatus DeviceWipe();
       
    50 
       
    51 	/**
       
    52 	* Wipe All the contents in the Device
       
    53 	* @param None
       
    54 	* @return None
       
    55 	*/
       
    56 	IMPORT_C TLawMoStatus DeviceWipeAll( );
       
    57 
       
    58 	/**
       
    59 	/*Fetches the ListItemName of the lawmo node
       
    60 	* @param ItemName - Node on which this fetch is initiated
       
    61 	* @param NodeValue- List Item name value
       
    62 	* @return Symbian error code
       
    63 	*/
       
    64 	IMPORT_C TInt GetListItemName( TDes& aItemName, TDes& aNodeValue);
       
    65 
       
    66 	/**
       
    67 	/*Fetches the tobewiped of the lawmo node
       
    68 	* @param ItemName - Node on which this fetch is initiated
       
    69 	* @param NodeValue- List Item name value
       
    70 	* @return Symbian error code
       
    71 	*/
       
    72 	IMPORT_C TInt GetToBeWipedValue( TDes& aItemName, TBool& aWipeVal);
       
    73 
       
    74 	/**
       
    75 	/*Sets the wipe value for the lawmo node	
       
    76 	* @param ItemName - Node on which this operation is initiated
       
    77 	* @param NodeValue- wipe value
       
    78 	* @return Symbian error code
       
    79 	*/	
       
    80 	IMPORT_C TInt SetToBeWipedValue( TDes& aItemName, TInt aWipeVal );
       
    81 
       
    82 private:
       
    83 
       
    84     };
       
    85 
       
    86 #endif // __LAWMOCLIENT_H__