|
1 /* |
|
2 * Copyright (c) 2002 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: Declarations for Notepad Viewer Document class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NOTEPADVIEWERDOCUMENT_H |
|
20 #define NOTEPADVIEWERDOCUMENT_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <eikdoc.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CEikAppUi; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 * Notepad Viewer Document class. |
|
31 * Notepad Viewer is not file-based. |
|
32 * |
|
33 */ |
|
34 class CNotepadViewerDocument : public CEikDocument |
|
35 { |
|
36 public: // Constructor |
|
37 |
|
38 /** |
|
39 * Constructor. (no need for two-phased construction) |
|
40 * |
|
41 * @param aApp reference to an application object. |
|
42 */ |
|
43 CNotepadViewerDocument(CEikApplication& aApp); |
|
44 |
|
45 private: // Functions from base classes |
|
46 |
|
47 /** |
|
48 * From CEikDocument. |
|
49 * Create CNotepadViewerAppUi "App UI" object. |
|
50 */ |
|
51 CEikAppUi* CreateAppUiL(); |
|
52 |
|
53 /** |
|
54 * From CEikDocument. |
|
55 * Always return NULL, so as not to create a INI file. |
|
56 * |
|
57 * @param aDoOpen ETrue if file exists. (ignored) |
|
58 * @param aFilename file to view. |
|
59 * @param aFs FileServerSession. (ignored) |
|
60 * @return file store. (always NULL) |
|
61 */ |
|
62 CFileStore* OpenFileL(TBool aDoOpen, const TDesC& aFilename,RFs& aFs); |
|
63 |
|
64 /** |
|
65 * From CEikDocument. |
|
66 * |
|
67 * @param aFileStore. (ignored) |
|
68 * @param aFile. |
|
69 */ |
|
70 void OpenFileL(CFileStore*& aFileStore, RFile& aFile); |
|
71 |
|
72 }; |
|
73 |
|
74 #endif // NOTEPADVIEWERDOCUMENT_H |
|
75 |
|
76 // End of File |
|
77 |