equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
59 } |
59 } |
60 |
60 |
61 return ETrue; |
61 return ETrue; |
62 } |
62 } |
63 |
63 |
64 void ParseRegFileL(RFs& aFs, const TDesC& aFileName, RPointerArray<CSoftwareTypeRegInfo>& aInfoArray) |
64 void ParseRegFileL(RFs& aFs, const TDesC& aFileName, RPointerArray<Usif::CSoftwareTypeRegInfo>& aInfoArray) |
65 { |
65 { |
66 // Open the file for reading |
66 // Open the file for reading |
67 RFile file; |
67 RFile file; |
68 TInt err = file.Open(aFs, aFileName, EFileShareReadersOnly); |
68 TInt err = file.Open(aFs, aFileName, EFileShareReadersOnly); |
69 if (err != KErrNone) |
69 if (err != KErrNone) |
110 } |
110 } |
111 |
111 |
112 CleanupStack::PopAndDestroy(2, &file); // launcher |
112 CleanupStack::PopAndDestroy(2, &file); // launcher |
113 } |
113 } |
114 |
114 |
115 void RegisterMimeTypesL(const RPointerArray<CSoftwareTypeRegInfo>& aInfoArray) |
115 void RegisterMimeTypesL(const RPointerArray<Usif::CSoftwareTypeRegInfo>& aInfoArray) |
116 { |
116 { |
117 const TInt numElems = aInfoArray.Count(); |
117 const TInt numElems = aInfoArray.Count(); |
118 if (numElems == 0) |
118 if (numElems == 0) |
119 { |
119 { |
120 return; |
120 return; |