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);
138 QStringList entryList(
const QString &path, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort);
147 QStringList entryList(
const QString &path,
const QStringList &nameFilters, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort);
155 bool exists(
const QString &path);
163 bool mkpath(
const QString &path);
171 bool isDir(
const QString &path);
179 bool removeFile(
const QString &path);
188 bool removeDir(
const QString &path);
197 bool removeAllDir(
const QString &path);
206 bool copy(
const QString& source,
const QString& destination);
215 bool touch(
const QString& path);
225 std::fstream *stdFileStream(
const QString &path, std::ios_base::openmode=std::fstream::in | std::fstream::out | std::fstream::app);
237 QIODevice *fileStream(
const QString &path, QIODevice::OpenMode mode=QIODevice::ReadWrite);
273 QString absoluteRootPath()
const;
279 Q_PROPERTY(QString name READ name WRITE setName)
283 QString name()
const;
288 Q_PROPERTY(QString description READ description WRITE setDescription)
292 QString description()
const;
297 Q_PROPERTY(QString author READ author WRITE setAuthor)
301 QString author()
const;
311 Q_PROPERTY(QString perspective READ perspective WRITE setPerspective)
315 QString perspective()
const;
321 QString version()
const;
327 QString toAbsolutePath(
const QString &relativePath);
330 void projectFileChanged(
const QString& projectFile);
336 void setName(
const QString &);
340 void setDescription(
const QString &);
344 void setAuthor(
const QString &);
348 void setPerspective(
const QString &);
351 static QString temporaryPath();
353 bool writeMetaInfos();
354 bool readMetaInfos();
356 bool removeAllDirPrivate(
const QString &path);
361 QString _projectFile;
366 QString _description;
367 QString _perspective;
375 #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
Return the archive file associated with this project.
bool isValid() const
Check if the object is a valid TulipProject.