mirror of
https://github.com/YACReader/yacreader
synced 2025-07-15 03:24:36 -04:00
updated web library with new style and features
added remote reading from iOS
This commit is contained in:
@ -307,3 +307,36 @@ int HttpSession::topPage()
|
||||
return dataPtr->yacreaderSessionData.navigationPath.top();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void HttpSession::clearFoldersPath()
|
||||
{
|
||||
if(dataPtr)
|
||||
dataPtr->yacreaderSessionData.foldersPath.clear();
|
||||
}
|
||||
|
||||
int HttpSession::popFolder()
|
||||
{
|
||||
if(dataPtr && !(dataPtr->yacreaderSessionData.foldersPath.isEmpty()))
|
||||
return dataPtr->yacreaderSessionData.foldersPath.pop();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void HttpSession::pushFolder(int page)
|
||||
{
|
||||
if(dataPtr)
|
||||
dataPtr->yacreaderSessionData.foldersPath.push(page);
|
||||
}
|
||||
|
||||
int HttpSession::topFolder()
|
||||
{
|
||||
if(dataPtr)
|
||||
return dataPtr->yacreaderSessionData.foldersPath.top();
|
||||
return 0;
|
||||
}
|
||||
|
||||
QStack<int> HttpSession::getFoldersPath()
|
||||
{
|
||||
if(dataPtr)
|
||||
return dataPtr->yacreaderSessionData.foldersPath;
|
||||
return QStack<int>();
|
||||
}
|
||||
|
Reference in New Issue
Block a user