|
1 /** |
|
2 * Copyright (c) 2004-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: |
|
15 * Declaration of CSecureBURKeySourceImpl |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 */ |
|
25 #ifndef __SBENCRYPTIMPL_H__ |
|
26 #define __SBENCRYPTIMPL_H__ |
|
27 #include <e32base.h> |
|
28 #include <f32file.h> |
|
29 |
|
30 namespace conn |
|
31 { |
|
32 class CSecureBURKeySourceImpl : public CBase |
|
33 /** |
|
34 Implementation for the CSecureBURKeySourceImpl |
|
35 |
|
36 @internalTechnology |
|
37 */ |
|
38 { |
|
39 public: |
|
40 // Construction |
|
41 static CSecureBURKeySourceImpl* NewL(); |
|
42 virtual ~CSecureBURKeySourceImpl(); |
|
43 |
|
44 // Methods |
|
45 void GetDefaultBufferForBackupL(TDriveNumber aDrive, TBool& aGotBuffer, TDes& aBuffer); |
|
46 void GetBackupKeyL(TDriveNumber aDrive, TSecureId aSID, |
|
47 TBool& aDoEncrypt, TDes8& aKey, |
|
48 TBool& aGotBuffer, TDes& aBuffer); |
|
49 void GetRestoreKeyL(TDriveNumber aDrive, TSecureId aSID, |
|
50 TBool aGotBuffer, TDes& aBuffer, |
|
51 TBool &aGotKey, TDes8& aKey); |
|
52 |
|
53 private: |
|
54 CSecureBURKeySourceImpl(); |
|
55 }; |
|
56 } |
|
57 #endif __SBENCRYPTIMPL_H__ |