|
1 /* |
|
2 * Copyright (c) 2006 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 the License "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 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <apgwgnam.h> |
|
23 #include "IptvProvisioningDocument.h" |
|
24 #include "IptvProvisioningAppUi.h" |
|
25 |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS ============================== |
|
28 |
|
29 // ---------------------------------------------------------------------------- |
|
30 // CIptvProvisioningDocument::~CIptvProvisioningDocument() |
|
31 // ---------------------------------------------------------------------------- |
|
32 |
|
33 CIptvProvisioningDocument::~CIptvProvisioningDocument() |
|
34 { |
|
35 } |
|
36 |
|
37 // ---------------------------------------------------------------------------- |
|
38 // CIptvProvisioningDocument::CreateAppUiL() |
|
39 // Creates CIptvProvisioningAppUi |
|
40 // ---------------------------------------------------------------------------- |
|
41 CEikAppUi* CIptvProvisioningDocument::CreateAppUiL() |
|
42 { |
|
43 // Create new isntance of appui class |
|
44 return new(ELeave) CIptvProvisioningAppUi(); |
|
45 } |
|
46 |
|
47 // ---------------------------------------------------------------------------- |
|
48 // CIptvProvisioningDocument::UpdateTaskNameL( CApaWindowGroupName* aWgName ) |
|
49 // ---------------------------------------------------------------------------- |
|
50 void CIptvProvisioningDocument::UpdateTaskNameL( CApaWindowGroupName* aWgName ) |
|
51 { |
|
52 // Set task name to be hidden from the tasklist |
|
53 CAknDocument::UpdateTaskNameL( aWgName ); |
|
54 aWgName->SetHidden( ETrue ); |
|
55 } |
|
56 |
|
57 // ---------------------------------------------------------------------------- |
|
58 // CIptvProvisioningDocument::OpenFileL |
|
59 // ---------------------------------------------------------------------------- |
|
60 CFileStore* CIptvProvisioningDocument::OpenFileL( |
|
61 TBool aDoOpen, |
|
62 const TDesC& aFilename, |
|
63 RFs& aFs ) |
|
64 { |
|
65 if ( aDoOpen ) |
|
66 { |
|
67 RFile file; |
|
68 TInt error( file.Open( aFs, aFilename, EFileShareAny | EFileRead ) ); |
|
69 if ( error == KErrNone ) |
|
70 { |
|
71 static_cast<CIptvProvisioningAppUi*>( iAppUi )->HandleFileL( file ); |
|
72 file.Close(); |
|
73 } |
|
74 } |
|
75 |
|
76 return NULL; |
|
77 } |
|
78 |
|
79 |
|
80 // ---------------------------------------------------------------------------- |
|
81 // CIptvProvisioningDocument::OpenFileL |
|
82 // ---------------------------------------------------------------------------- |
|
83 void CIptvProvisioningDocument::OpenFileL( |
|
84 CFileStore*& /*aFileStore*/, |
|
85 RFile& aFile ) |
|
86 { |
|
87 // Request appui to handle this file |
|
88 static_cast<CIptvProvisioningAppUi*>( iAppUi )->HandleFileL( aFile ); |
|
89 } |
|
90 |
|
91 |
|
92 // End of File |