Ananas Library
0.9.5
Титульная страница
Классы
Файлы
Файлы
src
acontainer.h
1
/****************************************************************************
2
** $Id: acontainer.h,v 1.4 2007/11/11 13:18:38 gr Exp $
3
**
4
** Data container functions 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-2006 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 ACONTAINER_H
32
#define ACONTAINER_H
33
34
#include "qdom.h"
35
#include "qstringlist.h"
36
#include "ananas.h"
37
#include "acmanifest.h"
38
#include <qobject.h>
39
40
41
//class aDatabase;
42
53
class
ANANAS_EXPORT
aContainer
:
public
QObject
54
{
55
Q_OBJECT
56
public
:
57
58
aContainer
();
59
aContainer
(
const
QString& name);
60
virtual
~aContainer
();
61
62
virtual
bool
open();
63
virtual
bool
open(
const
QString &name);
64
virtual
void
create();
65
virtual
void
close();
66
67
virtual
bool
save();
68
virtual
bool
save(
const
QString& name);
69
virtual
bool
addFile(
const
QString& filename,
const
QString &newname,
int
type);
70
virtual
QString realPath(
const
QString &fname)
const
;
71
72
virtual
QString lastError()
const
;
73
void
setLastError(
const
QString& errorText);
74
QString getFileContent(
const
QString& fileName)
const
;
75
//signals:
76
//void progress(int,int);
77
78
protected
:
79
void
generateName4TmpDir();
80
bool
createTmpDir();
81
bool
extractManifest(
const
QString& archName,
aCManifest
*mf);
82
bool
extractData(
const
QString& archName);
83
bool
compressFile(
const
QString& fileName);
84
void
cleanupTmpFiles();
85
86
private
:
87
QString txtError;
88
aCManifest
*manifest;
89
QString tmpDirName;
90
91
};
92
93
#endif
//ACONTAINER_H
aCManifest
Definition
acmanifest.h:61
aContainer
Класс предназначен для работы с контейнерами данных. Наследует QObject.
Definition
acontainer.h:54
Создано системой
1.12.0