equal
deleted
inserted
replaced
|
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 * Declares document for BVA application. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "BvaDocument.h" |
|
23 #include "BvaAppUi.h" |
|
24 #include "bvalog.h" |
|
25 |
|
26 CBvaDocument::~CBvaDocument() |
|
27 { |
|
28 } |
|
29 |
|
30 CBvaDocument* CBvaDocument::NewL(CEikApplication& aApp) |
|
31 { |
|
32 CBvaDocument* self = new (ELeave) CBvaDocument( aApp ); |
|
33 return self; |
|
34 } |
|
35 |
|
36 void CBvaDocument::OpenFileL(CFileStore*& /*aFileStore*/, RFile& aFile) |
|
37 { |
|
38 LOG("CBvaDocument::OpenFileL begin"); |
|
39 TInt size = 0; |
|
40 TInt err = aFile.Size( size ); |
|
41 |
|
42 if ( err == KErrNone && size != 0) |
|
43 { |
|
44 ((CBvaAppUi*)iAppUi)->LoadBioControlL( aFile ); |
|
45 } |
|
46 |
|
47 aFile.Close(); |
|
48 LOG("CBvaDocument::OpenFileL end"); |
|
49 } |
|
50 |
|
51 CEikAppUi* CBvaDocument::CreateAppUiL() |
|
52 { |
|
53 return new (ELeave) CBvaAppUi; |
|
54 } |
|
55 |
|
56 // End of File |