mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Format code using clang-format
This commit is contained in:
@ -5,8 +5,6 @@
|
||||
|
||||
#include "comic.h"
|
||||
|
||||
|
||||
|
||||
class YACReaderHttpSession : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -14,41 +12,41 @@ public:
|
||||
explicit YACReaderHttpSession(QObject *parent = 0);
|
||||
~YACReaderHttpSession();
|
||||
|
||||
void setComicsOnDevice(const QSet<QString> & set);
|
||||
void setComicOnDevice(const QString & hash);
|
||||
void setDownloadedComic(const QString & hash);
|
||||
bool isComicOnDevice(const QString & hash);
|
||||
bool isComicDownloaded(const QString & hash);
|
||||
void setComicsOnDevice(const QSet<QString> &set);
|
||||
void setComicOnDevice(const QString &hash);
|
||||
void setDownloadedComic(const QString &hash);
|
||||
bool isComicOnDevice(const QString &hash);
|
||||
bool isComicDownloaded(const QString &hash);
|
||||
QSet<QString> getComicsOnDevice();
|
||||
QSet<QString> getDownloadedComics();
|
||||
void clearComics();
|
||||
|
||||
//current comic (import)
|
||||
qulonglong getCurrentComicId();
|
||||
Comic * getCurrentComic();
|
||||
Comic *getCurrentComic();
|
||||
void dismissCurrentComic();
|
||||
void setCurrentComic(qulonglong id, Comic * comic);
|
||||
void setCurrentComic(qulonglong id, Comic *comic);
|
||||
|
||||
//current comic (read)
|
||||
qulonglong getCurrentRemoteComicId();
|
||||
Comic * getCurrentRemoteComic();
|
||||
Comic *getCurrentRemoteComic();
|
||||
void dismissCurrentRemoteComic();
|
||||
void setCurrentRemoteComic(qulonglong id, Comic * comic);
|
||||
void setCurrentRemoteComic(qulonglong id, Comic *comic);
|
||||
|
||||
//device identification
|
||||
QString getDeviceType();
|
||||
QString getDisplayType();
|
||||
void setDeviceType(const QString & device);
|
||||
void setDisplayType(const QString & display);
|
||||
void setDeviceType(const QString &device);
|
||||
void setDisplayType(const QString &display);
|
||||
|
||||
void clearNavigationPath();
|
||||
QPair<qulonglong, quint32> popNavigationItem();
|
||||
QPair<qulonglong, quint32> topNavigationItem();
|
||||
void pushNavigationItem(const QPair<qulonglong, quint32> & item);
|
||||
void updateTopItem(const QPair<qulonglong, quint32> & item);
|
||||
void pushNavigationItem(const QPair<qulonglong, quint32> &item);
|
||||
void updateTopItem(const QPair<qulonglong, quint32> &item);
|
||||
|
||||
//TODO replace QPair by a custom class for storing folderId, page and folderName(save some DB accesses)
|
||||
QStack<QPair<qulonglong, quint32> > getNavigationPath();
|
||||
QStack<QPair<qulonglong, quint32>> getNavigationPath();
|
||||
|
||||
signals:
|
||||
|
||||
@ -63,10 +61,10 @@ private:
|
||||
|
||||
qulonglong comicId;
|
||||
qulonglong remoteComicId;
|
||||
Comic * comic;
|
||||
Comic * remoteComic;
|
||||
Comic *comic;
|
||||
Comic *remoteComic;
|
||||
|
||||
QStack<QPair<qulonglong, quint32> > navigationPath; /* folder_id, page_number */
|
||||
QStack<QPair<qulonglong, quint32>> navigationPath; /* folder_id, page_number */
|
||||
};
|
||||
|
||||
#endif // YACREADERHTTPSESSION_H
|
||||
|
Reference in New Issue
Block a user