TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musiclrcdefines.cpp
Go to the documentation of this file.
1 #include "musiclrcdefines.h"
2 
4 {
5  m_interiorLrcSize << "14" << "16" << "18" << "20" << "22" << "24" << "26" << "28" << "36" << "48" << "72";
6  m_desktopLrcSize << "24" << "25" << "26" << "27" << "28" << "29" << "30" << "31" << "32" << "33" << "34" << "35" << "36";
7 }
8 
10 {
11  return m_interiorLrcSize;
12 }
13 
15 {
16  return m_desktopLrcSize;
17 }
18 
20 {
21  return m_interiorLrcSize.indexOf(QString::number(size));
22 }
23 
25 {
26  if(index == -1 || index == 0)
27  {
28  return m_interiorLrcSize.front().toInt();
29  }
30 
31  return m_interiorLrcSize[index - 1].toInt();
32 }
33 
35 {
36  if(index == -1 || index == m_interiorLrcSize.count() - 1)
37  {
38  return m_interiorLrcSize.back().toInt();
39  }
40 
41  return m_interiorLrcSize[index + 1].toInt();
42 }
43 
45 {
46  return m_interiorLrcSize.front().toInt();
47 }
48 
50 {
51  return m_interiorLrcSize.back().toInt();
52 }
53 
55 {
56  return m_desktopLrcSize.indexOf(QString::number(size));
57 }
58 
60 {
61  if(index == -1 || index == 0)
62  {
63  return m_desktopLrcSize.front().toInt();
64  }
65 
66  return m_desktopLrcSize[index - 1].toInt();
67 }
68 
70 {
71  if(index == -1 || index == m_desktopLrcSize.count() - 1)
72  {
73  return m_desktopLrcSize.back().toInt();
74  }
75 
76  return m_desktopLrcSize[index + 1].toInt();
77 }
78 
80 {
81  return m_desktopLrcSize.front().toInt();
82 }
83 
85 {
86  return m_desktopLrcSize.back().toInt();
87 }
int findInteriorFirstSize() const
int findDesktopPreSize(int index) const
QStringList desktopLrcSize() const
voidpf void uLong size
Definition: ioapi.h:136
int findDesktopLastSize() const
int findInteriorLrcIndex(int size) const
QStringList interiorLrcSize() const
int findInteriorNextSize(int index) const
int findDesktopFirstSize() const
QStringList m_desktopLrcSize
int findInteriorLastSize() const
int findDesktopLrcIndex(int size) const
int findInteriorPreSize(int index) const
QStringList m_interiorLrcSize
int findDesktopNextSize(int index) const