20 #ifndef TULIPPROJECT_H 21 #define TULIPPROJECT_H 25 #include <QTemporaryDir> 27 #include <tulip/tulipconf.h> 144 void setProjectFile(
const QString &projectFile);
165 QStringList entryList(
const QString &path, QDir::Filters filters = QDir::NoFilter,
166 QDir::SortFlags sort = QDir::NoSort);
175 QStringList entryList(
const QString &path,
const QStringList &nameFilters,
176 QDir::Filters filters = QDir::NoFilter,
177 QDir::SortFlags sort = QDir::NoSort);
185 bool exists(
const QString &path);
193 bool mkpath(
const QString &path);
201 bool isDir(
const QString &path);
210 bool removeFile(
const QString &path);
220 bool removeDir(
const QString &path);
230 bool removeAllDir(
const QString &path);
239 bool copy(
const QString &source,
const QString &destination);
249 bool touch(
const QString &path);
260 std::fstream *stdFileStream(
const QString &path, std::ios_base::openmode = std::fstream::in |
276 QIODevice *fileStream(
const QString &path, QIODevice::OpenMode mode = QIODevice::ReadWrite);
296 QString absoluteRootPath()
const;
303 Q_PROPERTY(QString name READ name WRITE setName)
307 QString name()
const;
312 Q_PROPERTY(QString description READ description WRITE setDescription)
316 QString description()
const;
321 Q_PROPERTY(QString author READ author WRITE setAuthor)
325 QString author()
const;
337 Q_PROPERTY(QString perspective READ perspective WRITE setPerspective)
341 QString perspective()
const;
347 QString version()
const;
354 QString toAbsolutePath(
const QString &relativePath);
357 void projectFileChanged(
const QString &projectFile);
363 void setName(
const QString &);
367 void setDescription(
const QString &);
371 void setAuthor(
const QString &);
375 void setPerspective(
const QString &);
378 bool writeMetaInfo();
382 QTemporaryDir *_rootDir;
383 QString _projectFile;
385 inline const QString rootDir()
const {
386 return _rootDir->path();
392 QString _description;
393 QString _perspective;
396 #endif // TULIPPROJECT_H
QString projectFile() const
Returns the archive file associated with this project.
The TulipProject object handles the content of a Tulip project.
PluginProcess subclasses are meant to notify about the progress state of some process (typically a pl...