1 /* |
|
2 * Copyright (c) 2002 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "DRMEncryptorDocument.h" |
|
21 #include "DRMEncryptorAppUi.h" |
|
22 #include "DrmKeyStorage.h" |
|
23 |
|
24 extern TUint KeyStorageFromZipL(const TDesC&, RFs&); |
|
25 |
|
26 // ================= MEMBER FUNCTIONS ======================= |
|
27 |
|
28 // constructor |
|
29 CDRMEncryptorDocument::CDRMEncryptorDocument( CEikApplication& aApp ) : CAknDocument( aApp ) |
|
30 { |
|
31 } |
|
32 |
|
33 // destructor |
|
34 CDRMEncryptorDocument::~CDRMEncryptorDocument() |
|
35 { |
|
36 } |
|
37 |
|
38 // Two-phased constructor. |
|
39 CDRMEncryptorDocument* CDRMEncryptorDocument::NewL( CEikApplication& aApp ) |
|
40 { |
|
41 return new( ELeave ) CDRMEncryptorDocument( aApp ); |
|
42 } |
|
43 |
|
44 CFileStore* CDRMEncryptorDocument::OpenFileL(TBool /*aDoOpen*/, const TDesC& aFileName, RFs& aFs) |
|
45 { |
|
46 KeyStorageFromZipL(aFileName, aFs); |
|
47 return NULL; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CDRMEncryptorDocument::CreateAppUiL() |
|
52 // constructs CDRMEncryptorAppUi |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 CEikAppUi* CDRMEncryptorDocument::CreateAppUiL() |
|
56 { |
|
57 return new( ELeave ) CDRMEncryptorAppUi; |
|
58 } |
|
59 |
|
60 // End of File |
|