remotemgmt_plat/terminal_security_device_lock_api/inc/dmencryptionutil.h
branchRCL_3
changeset 19 86979fe66c4c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/remotemgmt_plat/terminal_security_device_lock_api/inc/dmencryptionutil.h	Wed Mar 31 23:00:03 2010 +0300
@@ -0,0 +1,55 @@
+/*
+* 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:  implementation of MDMEncryptionUtilInterface. 
+*
+*/
+
+#ifndef DMENCRYPTIONUTIL_H_
+#define DMENCRYPTIONUTIL_H_
+
+#include <dmencryptionutilinterface.h>
+
+class CDMEncryptionUtil : public CBase, public MDMEncryptionUtilInterface
+    {
+public:
+    // Instantiates an object of this type  
+    /**
+   * Create instance of CDMEncryptionUtil, this NewL always loads only the secenv hardware encryption plugin.
+   * @param Nil
+   * @return Instance of CDMEncryptionUtil
+   */
+    static CDMEncryptionUtil* NewL();
+    /**
+    * Create instance of CDMEncryptionUtil, this NewL always loads the plugin which matches with the default_data.
+    * @param aData is the value of default_data.
+    * @return Instance of CDMEncryptionUtil
+    *       Leaves with KErrBadName: if the default_data exists more than 1.                  
+    */
+    static CDMEncryptionUtil* CDMEncryptionUtil::NewL(const TDesC8& aData);
+    
+    /**
+   * C++ Destructor
+   */
+    virtual ~CDMEncryptionUtil();    
+    
+private:
+    // Unique instance identifier key
+    TUid iDtor_ID_Key;
+
+    };
+    
+#include "dmencryptionutil.inl"
+
+
+#endif /* DMENCRYPTIONUTIL_H_ */