|
1 // Copyright (c) 2001-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 /** |
|
17 @file |
|
18 */ |
|
19 |
|
20 #ifndef __GMXMLCOMMENT_H__ |
|
21 #define __GMXMLCOMMENT_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
25 #include <gmxmldocument.h> |
|
26 #endif |
|
27 |
|
28 class CMDXMLComment : public CMDXMLCharacterData |
|
29 /** A comment section of an XML file. |
|
30 |
|
31 Objects with this interface contain text, but cannot have child nodes. |
|
32 @publishedPartner |
|
33 @released |
|
34 */ |
|
35 { |
|
36 public: |
|
37 /** Allocates and constructs a new CMDXMLComment, leaving the object on the cleanup |
|
38 stack. |
|
39 |
|
40 @param aOwnerDocument Pointer to the document at the root of the DOM tree |
|
41 @return New CMDXMComment |
|
42 @leave KErrNoMemory Out of memory */ |
|
43 IMPORT_C static CMDXMLComment* NewLC( CMDXMLDocument* aOwnerDocument ); |
|
44 |
|
45 /** Allocates and constructs a new CMDXMLComment. |
|
46 |
|
47 @param aOwnerDocument Pointer to the document at the root of the DOM tree |
|
48 @return New CMDXMComment |
|
49 @leave KErrNoMemory Out of memory */ |
|
50 IMPORT_C static CMDXMLComment* NewL( CMDXMLDocument* aOwnerDocument ); |
|
51 |
|
52 /** Destructor. */ |
|
53 IMPORT_C virtual ~CMDXMLComment(); |
|
54 |
|
55 |
|
56 protected: |
|
57 /* |
|
58 * Constructor |
|
59 * @param aOwnerDocument The document at the root of the DOM tree |
|
60 */ |
|
61 CMDXMLComment( CMDXMLDocument* aOwnerDocument ); |
|
62 }; |
|
63 |
|
64 |
|
65 #endif |