MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
fifffilesharer.h
Go to the documentation of this file.
1//=============================================================================================================
35#ifndef FIFFFILESHARER_H
36#define FIFFFILESHARER_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "fiff_io.h"
43
44//=============================================================================================================
45// QT INCLUDES
46//=============================================================================================================
47
48#include <QFileSystemWatcher>
49
50//=============================================================================================================
51// DEFINE NAMESPACE FIFFLIB
52//=============================================================================================================
53
54namespace FIFFLIB
55{
56
57//=============================================================================================================
61class FIFFSHARED_EXPORT FiffFileSharer : public QObject
62{
63 Q_OBJECT
64public:
65
66 //=========================================================================================================
71
72 //=========================================================================================================
78 FiffFileSharer(const QString& sDirName);
79
80 //=========================================================================================================
86 void copyRealtimeFile(const QString &sSourcePath);
87
88 //=========================================================================================================
92 void initWatcher();
93
94private:
95
96 //=========================================================================================================
102 bool initSharedDirectory();
103
104 //=========================================================================================================
108 void clearSharedDirectory();
109
110 //=========================================================================================================
117 void onDirectoryChanged(const QString &sPath);
118
119 //=========================================================================================================
126 void onFileChanged(const QString &sPath);
127
128 QFileSystemWatcher m_fileWatcher;
130 QString m_sDirectory;
131 int m_iFileIndex;
133signals:
134
135 //=========================================================================================================
141 void newFileAtPath(const QString& sPath);
142
143};
144} //namespace
145
146#endif // FIFFFILESHARER_H
#define FIFFSHARED_EXPORT
Definition fiff_global.h:56
Definition of a generic Fiff IO interface.
void newFileAtPath(const QString &sPath)