Ananas Library 0.9.5
aexttext.h
1/****************************************************************************
2** $Id: aexttext.h,v 1.3 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 AEXTTEXT_H
32#define AEXTTEXT_H
33
34#include "aextension.h"
35#include <qfile.h>
36
37
45class ANANAS_EXPORT AExtText : public AExtension
46{
47 Q_OBJECT
48 Q_PROPERTY( QString codec READ getCodec WRITE setCodec )
49
50public:
51
52 AExtText();
53 ~AExtText();
54public:
55
56 QString getCodec() const ;
57 void setCodec( const QString &codecname );
58
59public slots:
60 int open( const QString &filename, const QString &mode );
61 void close();
62 bool atEnd();
63
64 QString readLine();
65 void writeLine( const QString &l );
66
67private:
68 QFile file;
69 QTextStream *text;
70};
71
72#endif //AEXTTEXT_H
void setCodec(const QString &codecname)
Определения aexttext.cpp:192
void writeLine(const QString &l)
Определения aexttext.cpp:145
void close()
Определения aexttext.cpp:116
int open(const QString &filename, const QString &mode)
Определения aexttext.cpp:95
QString getCodec() const
Определения aexttext.cpp:175
bool atEnd()
Определения aexttext.cpp:160
QString readLine()
Определения aexttext.cpp:130
AExtText()
Определения aexttext.cpp:65