change: change code style to Linux style except indent.
This commit is contained in:
@@ -25,38 +25,38 @@
|
||||
#include <QFile>
|
||||
#include <QObject>
|
||||
|
||||
namespace olive {
|
||||
namespace olive
|
||||
{
|
||||
|
||||
using namespace core;
|
||||
|
||||
class PlanarFileDevice : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
class PlanarFileDevice : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
PlanarFileDevice(QObject *parent = nullptr);
|
||||
PlanarFileDevice(QObject *parent = nullptr);
|
||||
|
||||
virtual ~PlanarFileDevice() override;
|
||||
virtual ~PlanarFileDevice() override;
|
||||
|
||||
bool isOpen() const
|
||||
{
|
||||
return !files_.isEmpty();
|
||||
}
|
||||
bool isOpen() const
|
||||
{
|
||||
return !files_.isEmpty();
|
||||
}
|
||||
|
||||
bool open(const QVector<QString> &filenames, QIODevice::OpenMode mode);
|
||||
bool open(const QVector<QString> &filenames, QIODevice::OpenMode mode);
|
||||
|
||||
qint64 read(char **data, qint64 bytes_per_channel, qint64 offset = 0);
|
||||
qint64 read(char **data, qint64 bytes_per_channel, qint64 offset = 0);
|
||||
|
||||
qint64 write(const char **data, qint64 bytes_per_channel, qint64 offset = 0);
|
||||
qint64 write(const char **data, qint64 bytes_per_channel,
|
||||
qint64 offset = 0);
|
||||
|
||||
qint64 size() const;
|
||||
qint64 size() const;
|
||||
|
||||
bool seek(qint64 pos);
|
||||
bool seek(qint64 pos);
|
||||
|
||||
void close();
|
||||
void close();
|
||||
|
||||
private:
|
||||
QVector<QFile*> files_;
|
||||
|
||||
QVector<QFile *> files_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user