equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "MmfBtFileDependencyUtil.h" |
|
17 |
|
18 |
|
19 void FileDependencyUtil::CheckFileDependencyL() |
|
20 { |
|
21 RFs fsSession; |
|
22 RFile file; |
|
23 |
|
24 CleanupClosePushL(fsSession); |
|
25 User::LeaveIfError(fsSession.Connect()); |
|
26 |
|
27 TInt err = file.Open(fsSession, KSoundDevBtFileName, EFileRead); |
|
28 |
|
29 file.Close(); |
|
30 |
|
31 if(err != KErrNone) |
|
32 { |
|
33 User::LeaveIfError(KErrNotSupported); |
|
34 } |
|
35 CleanupStack::PopAndDestroy(); //fsSession |
|
36 } |