File indexing completed on 2024-11-10 05:11:09

0001 /*
0002  * Copyright 2018 by Aditya Mehra <aix.m@outlook.com>
0003  *
0004  * Licensed under the Apache License, Version 2.0 (the "License");
0005  * you may not use this file except in compliance with the License.
0006  * You may obtain a copy of the License at
0007  *
0008  *    http://www.apache.org/licenses/LICENSE-2.0
0009  *
0010  * Unless required by applicable law or agreed to in writing, software
0011  * distributed under the License is distributed on an "AS IS" BASIS,
0012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013  * See the License for the specific language governing permissions and
0014  * limitations under the License.
0015  *
0016  */
0017 
0018 #ifndef FILEREADER_H
0019 #define FILEREADER_H
0020 
0021 #include <QObject>
0022 #include <QStringList>
0023 #include <QDir>
0024 #include <QTextStream>
0025 #include <QDataStream>
0026 
0027 class FileReader : public QObject
0028 {
0029     Q_OBJECT
0030 
0031 public:
0032     explicit FileReader(QObject *parent = Q_NULLPTR);
0033     
0034 public Q_SLOTS:
0035     QByteArray read(const QString &filename);
0036     bool file_exists_local(const QString &filename);
0037     QStringList checkForMeta(const QString &rootDir, const QString &findFile);
0038 };
0039 
0040 #endif // FILEREADER_H