TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicpagequeryrequest.cpp
Go to the documentation of this file.
2 
3 #include <qmath.h>
4 
6  : MusicAbstractNetwork(parent),
7  m_pageSize(0),
8  m_totalSize(0),
9  m_pageIndex(0)
10 {
11 
12 }
13 
15 {
16  Q_UNUSED(offset);
17 }
18 
20 {
21  return ceil(totalSize() * 1.0 / pageSize());
22 }
int pageTotalSize() const noexcept
voidpf uLong offset
Definition: ioapi.h:142
virtual void startToPage(int offset)
MusicPageQueryRequest(QObject *parent=nullptr)
The class of the abstract network.
int pageSize() const noexcept
#define const
Definition: zconf.h:233
int totalSize() const noexcept