Added hasFilePath() and filePath() methods to TitleBlockTemplatesCollection and its derived classes.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2021 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2013-02-03 19:21:13 +00:00
parent 297710ce4f
commit 0796587a63
2 changed files with 37 additions and 0 deletions

View File

@@ -269,6 +269,22 @@ TitleBlockTemplateLocation TitleBlockTemplatesProjectCollection::location(const
return(TitleBlockTemplateLocation(template_name, this));
}
/**
@return always false since a project collection is not stored on any
filesystem.
*/
bool TitleBlockTemplatesProjectCollection::hasFilePath() {
return(false);
}
/**
@return always an empty string since a project collection is not stored on
any filesystem.
*/
QString TitleBlockTemplatesProjectCollection::filePath() {
return(QString());
}
/**
@param template_name Either an empty QString to know whether the collection
itself is read only, or a specific template name.
@@ -453,6 +469,21 @@ TitleBlockTemplateLocation TitleBlockTemplatesFilesCollection::location(const QS
return(TitleBlockTemplateLocation(template_name, this));
}
/**
@return always true since a files collection is always stored on a
filesystem.
*/
bool TitleBlockTemplatesFilesCollection::hasFilePath() {
return(true);
}
/**
@return The filesystem path where this files collection is actually stored.
*/
QString TitleBlockTemplatesFilesCollection::filePath() {
return(dir_.canonicalPath());
}
/**
@param template_name Either an empty QString to know whether the collection
itself is read only, or a specific template name.