Ananas Library
0.9.5
Титульная страница
Классы
Файлы
Файлы
src
aextxml.h
1
/****************************************************************************
2
** $Id: aextxml.h,v 1.4 2006/08/20 11:28:32 leader Exp $
3
**
4
** Extension object header file of
5
** Ananas application library
6
**
7
** Created : 20031201
8
**
9
** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved.
10
** Copyright (C) 2003-2005 Grigory Panov, Yoshkar-Ola.
11
**
12
** This file is part of the Designer application of the Ananas
13
** automation accounting system.
14
**
15
** This file may be distributed and/or modified under the terms of the
16
** GNU General Public License version 2 as published by the Free Software
17
** Foundation and appearing in the file LICENSE.GPL included in the
18
** packaging of this file.
19
**
20
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
21
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22
**
23
** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru
24
** See http://www.leaderit.ru/gpl/ for GPL licensing information.
25
**
26
** Contact org@leaderit.ru if any conditions of this licensing are
27
** not clear to you.
28
**
29
**********************************************************************/
30
31
#ifndef AEXTXML_H
32
#define AEXTXML_H
33
34
#include <qdom.h>
35
#include "aextension.h"
36
44
class
ANANAS_EXPORT
AExtXML
:
public
AExtension
45
{
46
Q_OBJECT
47
48
public
:
49
50
AExtXML
();
51
~AExtXML
();
52
public
:
53
54
public
slots:
55
bool
read(
const
QString &fname);
56
bool
write(
const
QString &fname);
57
void
createNew(
const
QString &rootnodename );
58
59
bool
isRoot();
60
bool
parent();
61
bool
newChild(
const
QString &childname );
62
QString nodeName();
63
bool
setText(
const
QString &text );
64
QString text()
const
;
65
66
bool
setAttr(
const
QString &name,
const
QString &value );
67
QString attr(
const
QString &name )
const
;
68
bool
removeAttr(
const
QString &name );
69
70
bool
firstChild();
71
bool
lastChild();
72
bool
next();
73
bool
prev();
74
bool
childExists();
75
76
private
:
77
QDomDocument xml;
78
QDomElement rootnode, current;
79
80
81
};
82
83
#endif
//AEXTTEXT_H
AExtXML
Класс расширения Ананас AExtXML предназначен для работы с XML файлами. .
Definition
aextxml.h:45
AExtension
Definition
aextension.h:46
Создано системой
1.12.0