|
1 /* |
|
2 * Copyright (c) 2002-2004 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: This file contains the header file of the CSWDocument class |
|
15 * |
|
16 * This class is a part of the standard application framework. |
|
17 * Declares the document class for this application. |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef SWDOCUMENT_H |
|
23 #define SWDOCUMENT_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <AknDoc.h> |
|
27 |
|
28 namespace SwiUI |
|
29 { |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * This class is a part of the standard application framework. |
|
35 * Declares the document class for this application. |
|
36 */ |
|
37 class CSWInstDocument : public CAknDocument |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 static CSWInstDocument* NewL( CEikApplication& aApp ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CSWInstDocument(); |
|
50 |
|
51 public: // Functions from base classes |
|
52 |
|
53 /** |
|
54 * From CEikDocument, Called by the framework to open a file. |
|
55 * @since 3.0 |
|
56 * @param aDoOpen - Open an existing file if ETrue, otherwise create a |
|
57 * new file. |
|
58 * @param aFilename - The file to open or create. |
|
59 * @param aFs - The file server session to use. |
|
60 * @return File store object referring to the newly-opened file. |
|
61 */ |
|
62 CFileStore* OpenFileL( TBool aDoOpen, const TDesC& aFilename, RFs& aFs ); |
|
63 |
|
64 /** |
|
65 * From CEikDocument, Called by the framework to open a file. |
|
66 * @since 3.0 |
|
67 */ |
|
68 void OpenFileL(CFileStore*& aFileStore, RFile& aFile); |
|
69 |
|
70 /** |
|
71 * From CEikDocument, Creates CSWAppUi object. |
|
72 * @since 3.0 |
|
73 * @return CSWAppUi object |
|
74 */ |
|
75 CEikAppUi* CreateAppUiL(); |
|
76 |
|
77 private: |
|
78 |
|
79 /** |
|
80 * Symbian OS default constructor. |
|
81 */ |
|
82 CSWInstDocument( CEikApplication& aApp ); |
|
83 |
|
84 }; |
|
85 } |
|
86 |
|
87 #endif // SWINSTDOCUMENT_H |
|
88 |
|
89 // End of File |