Ananas Library
0.9.5
Титульная страница
Классы
Файлы
Файлы
src
acmanifest.h
1
/****************************************************************************
2
** $Id: acmanifest.h,v 1.1 2006/09/27 11:17:32 gr Exp $
3
**
4
** manifest.xml function 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) 2006 Grigory Panov <gr1313 at mail.ru>, 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 ACMANIFEST_H
32
#define ACMANIFEST_H
33
34
#include "qdom.h"
35
#include "qstringlist.h"
36
#include "ananas.h"
37
#include <qobject.h>
38
39
40
51
#define mf_invalid 0
52
#define mf_metadata 1
53
#define mf_template 2
54
#define mf_dir 3
55
#define mf_script 4
56
#define mf_form 5
57
#define mf_picture 6
58
#define mf_other 100
59
60
class
ANANAS_EXPORT
aCManifest
:
public
QObject
61
{
62
Q_OBJECT
63
public
:
64
65
aCManifest
();
66
virtual
~aCManifest
();
67
// enum type{ mf_invalid, mf_metadata, mf_template, mf_dir, mf_script, mf_form, mf_picture, mf_other=100 };
68
struct
record
69
{
70
QString name;
71
int
type;
72
};
73
// place your castom types before mf_other
74
75
virtual
void
create();
76
virtual
QString toString();
77
virtual
bool
write(
const
QString& fname);
78
virtual
bool
read(
const
QString& fname);
79
virtual
void
clear();
80
virtual
bool
isValid();
81
82
virtual
aCManifest::record
first();
83
virtual
aCManifest::record
next();
84
85
virtual
bool
isExists(
const
QString &fname );
86
virtual
bool
addEntry(
const
QString &fname,
int
type);
87
virtual
bool
removeEntry(
const
QString &fname,
bool
withChilds );
88
virtual
QString lastError()
const
;
89
90
private
:
91
QString txtError;
92
QDomDocument manifest;
93
QDomElement rootNode, currentNode;
94
95
};
96
97
98
#endif
//ACMANIFEST_H
aCManifest
Definition
acmanifest.h:61
aCManifest::record
Definition
acmanifest.h:69
Создано системой
1.12.0