Exemple #1
0
QString FileInfo::getDebugInfo() const
{
    const QString str = "\n\tContainer: " + getContainerPath()
            + "\n\tPath: " + getPath()
            + "\n\tImageFileName: " + getImageFileName()
            + "\n\tZipPath: " + getArchiveContainerPath()
            + "\n\tIsInArchive: " + (isInArchive() ? "true" : "false")
            + "\n\tContainer Name: " + getContainerName();
    return str;
}
Exemple #2
0
int fileListGetEntries(FileList *list, char *path) {
	if (isInArchive()) {
		return fileListGetArchiveEntries(list, path);
	}

	if (strcmp(path, HOME_PATH) == 0) {
		return fileListGetMountPointEntries(list);
	}

	return fileListGetDirectoryEntries(list, path);
}
Exemple #3
0
QString FileInfo::getImageFileName() const
{
    if (isInArchive())
    {
        return m_zipImageFileName;
    }
    else
    {
        return m_image.fileName();
    }
}
Exemple #4
0
QString FileInfo::getPath() const
{
    QString path;
    if (isInArchive())
    {
        path = m_container.canonicalFilePath() + "/" + getArchiveImagePath();
    }
    else if (fileExists())
    {
        path = m_image.canonicalFilePath();
    }
    else
    {
        path = m_container.canonicalFilePath();
    }
    return path;
}