|
1 /* |
|
2 * Copyright (c) 2009 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 FILEBROWSERDOCUMENT_H |
|
20 #define FILEBROWSERDOCUMENT_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <AknDoc.h> |
|
24 |
|
25 // CONSTANTS |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CEikAppUi; |
|
29 class CFileBrowserModel; |
|
30 |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CFileBrowserDocument application class. |
|
36 */ |
|
37 class CFileBrowserDocument : public CAknDocument |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CFileBrowserDocument* NewL(CEikApplication& aApp); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~CFileBrowserDocument(); |
|
49 |
|
50 public: // New functions |
|
51 |
|
52 public: // from CEikDocument |
|
53 CFileStore* OpenFileL(TBool aDoOpen,const TDesC& aFilename,RFs& aFs); |
|
54 protected: // New functions |
|
55 |
|
56 protected: // Functions from base classes |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * EPOC default constructor. |
|
62 */ |
|
63 CFileBrowserDocument(CEikApplication& aApp); |
|
64 void ConstructL(); |
|
65 |
|
66 private: |
|
67 |
|
68 /** |
|
69 * From CEikDocument, create CFileBrowserAppUi "App UI" object. |
|
70 */ |
|
71 CEikAppUi* CreateAppUiL(); |
|
72 |
|
73 public: |
|
74 CFileBrowserModel* Model(); |
|
75 |
|
76 private: |
|
77 CFileBrowserModel* iModel; |
|
78 |
|
79 }; |
|
80 |
|
81 #endif |
|
82 |
|
83 // End of File |
|
84 |