TreeFrogFramework  1.18
tfileaiowriter.h
Go to the documentation of this file.
1 #ifndef TFILEAIOWRITER_H
2 #define TFILEAIOWRITER_H
3 
4 #include <QString>
5 #include <TGlobal>
6 
7 class TFileAioWriterData;
8 
9 
11 {
12 public:
13  TFileAioWriter(const QString &name = QString());
14  ~TFileAioWriter();
15 
16  bool open();
17  void close();
18  bool isOpen() const;
19  int write(const char *data, int length);
20  void flush();
21  void setFileName(const QString &name);
22  QString fileName() const;
23 
24 private:
25  TFileAioWriterData *d;
26 
29 };
30 
31 #endif // TFILEAIOWRITER_H
#define T_CORE_EXPORT
Definition: tglobal.h:81
#define T_DISABLE_COPY(Class)
Definition: tglobal.h:137
#define T_DISABLE_MOVE(Class)
Definition: tglobal.h:141
The TFileAioWriter class provides asynchronous writing functionality to a file.
Definition: tfileaiowriter.h:10