20 #ifndef TULIPPROJECT_H 21 #define TULIPPROJECT_H 25 #include <QStringList> 30 #include <tulip/tulipconf.h> 75 TulipProject(
const QString &);
78 virtual ~TulipProject();
86 static TulipProject *newProject();
117 static TulipProject *restoreProject(
const QString &path);
133 void setProjectFile(
const QString &projectFile);
153 QStringList entryList(
const QString &path, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort);
162 QStringList entryList(
const QString &path,
const QStringList &nameFilters, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort);
170 bool exists(
const QString &path);
178 bool mkpath(
const QString &path);
186 bool isDir(
const QString &path);
194 bool removeFile(
const QString &path);
203 bool removeDir(
const QString &path);
212 bool removeAllDir(
const QString &path);
221 bool copy(
const QString& source,
const QString& destination);
230 bool touch(
const QString& path);
240 std::fstream *stdFileStream(
const QString &path, std::ios_base::openmode=std::fstream::in | std::fstream::out | std::fstream::app);
252 QIODevice *fileStream(
const QString &path, QIODevice::OpenMode mode=QIODevice::ReadWrite);
288 QString absoluteRootPath()
const;
294 Q_PROPERTY(QString name READ name WRITE setName)
298 QString name()
const;
303 Q_PROPERTY(QString description READ description WRITE setDescription)
307 QString description()
const;
312 Q_PROPERTY(QString author READ author WRITE setAuthor)
316 QString author()
const;
326 Q_PROPERTY(QString perspective READ perspective WRITE setPerspective)
330 QString perspective()
const;
336 QString version()
const;
342 QString toAbsolutePath(
const QString &relativePath);
345 void projectFileChanged(
const QString& projectFile);
351 void setName(
const QString &);
355 void setDescription(
const QString &);
359 void setAuthor(
const QString &);
363 void setPerspective(
const QString &);
366 static QString temporaryPath();
368 bool writeMetaInfo();
371 bool removeAllDirPrivate(
const QString &path,
bool removeRootDir =
true);
376 QString _projectFile;
381 QString _description;
382 QString _perspective;
390 #endif // TULIPPROJECT_H
The TulipProject object handles the content of a Tulip project.
QString lastError() const
Returns the last error raised.
PluginProcess subclasses are meant to notify about the progress state of some process (typically a pl...
QString projectFile() const
Returns the archive file associated with this project.
bool isValid() const
Checks if the object is a valid TulipProject.