mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 15:04:40 -04:00
modified comics and folders information served to remote devices (YACReader for iOS 2.0)
This commit is contained in:
@ -31,7 +31,7 @@ QString ComicDB::toTXT()
|
||||
txt.append(QString("currentPage:%1\r\n").arg(info.currentPage));
|
||||
txt.append(QString("contrast:%1\r\n").arg(info.contrast));
|
||||
|
||||
//Informaci<63>n general
|
||||
//Informaci<63>n general
|
||||
if(!info.coverPage.isNull())
|
||||
txt.append(QString("coverPage:%1\r\n").arg(info.coverPage.toString()));
|
||||
|
||||
@ -80,7 +80,7 @@ QString ComicDB::toTXT()
|
||||
|
||||
if(!info.coverArtist.isNull())
|
||||
txt.append(QString("coverArtist:%1\r\n").arg(info.coverArtist.toString()));
|
||||
//Publicaci<63>n
|
||||
//Publicaci<63>n
|
||||
if(!info.date.isNull())
|
||||
txt.append(QString("date:%1\r\n").arg(info.date.toString()));
|
||||
|
||||
@ -127,7 +127,13 @@ QString ComicDB::getParentFolderName() const
|
||||
if(paths.length()<2)
|
||||
return "";
|
||||
else
|
||||
return paths[paths.length()-2];
|
||||
return paths[paths.length()-2];
|
||||
}
|
||||
|
||||
qulonglong ComicDB::getFileSize() const
|
||||
{
|
||||
//the size is encoded in the hash after the SHA-1
|
||||
return info.hash.right(info.hash.length()-40).toLongLong();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -139,6 +139,9 @@ public:
|
||||
//returns parent folder name
|
||||
QString getParentFolderName() const;
|
||||
|
||||
//return the size of the file in bytes
|
||||
qulonglong getFileSize() const;
|
||||
|
||||
QString toTXT();
|
||||
|
||||
ComicInfo info;
|
||||
|
Reference in New Issue
Block a user