|
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 "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 #ifndef C_NCDFILESTORAGEFILEHANDLER_H |
|
20 #define C_NCDFILESTORAGEFILEHANDLER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "ncdfilehandler.h" |
|
24 |
|
25 class MNcdStorageClient; |
|
26 class MNcdStorage; |
|
27 |
|
28 /** |
|
29 * File handler that uses File storage |
|
30 */ |
|
31 class CNcdFileStorageFileHandler : CBase, public MNcdFileHandler |
|
32 { |
|
33 public: |
|
34 |
|
35 /** |
|
36 * Creates a new file handler |
|
37 */ |
|
38 static CNcdFileStorageFileHandler* NewL( |
|
39 MNcdStorageClient& aStorageClient ); |
|
40 |
|
41 ~CNcdFileStorageFileHandler(); |
|
42 |
|
43 public: // MNcdFileHandler |
|
44 |
|
45 /** |
|
46 * Parameter aIdOrName is not used |
|
47 * |
|
48 * @see MNcdFileHandler::MoveFileL() |
|
49 */ |
|
50 void MoveFileL( const TDesC& aSourceFile, |
|
51 const TDesC& aNamespaceOrDir, const TDesC& aIdOrName, |
|
52 TBool aOverwrite ); |
|
53 |
|
54 private: |
|
55 |
|
56 CNcdFileStorageFileHandler( MNcdStorageClient& aStorageClient ); |
|
57 void ConstructL(); |
|
58 |
|
59 private: |
|
60 |
|
61 // Gets the storage. Creates it if necessary |
|
62 MNcdStorage& StorageL( const TDesC& aNamespace ); |
|
63 |
|
64 private: |
|
65 |
|
66 MNcdStorageClient& iStorageClient; |
|
67 |
|
68 }; |
|
69 |
|
70 #endif // C_NCDFILESTORAGEFILEHANDLER_H |