TTKMusicPlayer  4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Types | Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | List of all members
QKugouWindow Class Reference

The class of the kugou window widget. More...

#include <qkugouwindow.h>

+ Inheritance diagram for QKugouWindow:

Public Types

enum  Module {
  None, KuGouSong, KuGouRadio, KugouMovie,
  KuGouSingle
}
 

Public Slots

void refresh ()
 

Signals

void buttonClicked (int index)
 

Public Member Functions

 QKugouWindow (Module type, QWidget *parent=nullptr)
 
void setUrl (const QString &url)
 

Private Slots

void kugouSongIndexChanged (int index)
 

Private Member Functions

void createWebViewer ()
 
void createWebViewer (Module type)
 
void createKugouSongWidget (bool power)
 

Detailed Description

The class of the kugou window widget.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 30 of file qkugouwindow.h.

Member Enumeration Documentation

Enumerator
None 

KuGou None

KuGouSong 

KuGou Song

KuGouRadio 

KuGou Radio

KugouMovie 

Kugou Movie

KuGouSingle 

KuGou Single

Definition at line 34 of file qkugouwindow.h.

Constructor & Destructor Documentation

QKugouWindow::QKugouWindow ( Module  type,
QWidget *  parent = nullptr 
)
explicit

Object constructor.

Definition at line 55 of file qkugouwindow.cpp.

References createKugouSongWidget(), createWebViewer(), KuGouSong, None, and TTK_INIT_PRIVATE.

Member Function Documentation

void QKugouWindow::buttonClicked ( int  index)
signal

Switch to selected item style.

Referenced by kugouSongIndexChanged().

void QKugouWindow::createKugouSongWidget ( bool  power)
private
void QKugouWindow::createWebViewer ( )
private

Create web view widget.

Definition at line 151 of file qkugouwindow.cpp.

References Miniblink::initialize(), and TTK_D.

Referenced by createKugouSongWidget(), createWebViewer(), and QKugouWindow().

void QKugouWindow::createWebViewer ( Module  type)
private
void QKugouWindow::kugouSongIndexChanged ( int  index)
privateslot

Kugou song index changed.

Definition at line 136 of file qkugouwindow.cpp.

References buttonClicked(), QKugouUrl::makeSongRecommendUrl(), TTK::UI::PushButtonStyle02, setUrl(), and TTK_D.

Referenced by createKugouSongWidget().

void QKugouWindow::refresh ( )
slot

Set web index refresh.

Definition at line 110 of file qkugouwindow.cpp.

References Miniblink::m_webView, Miniblink::reload(), TTK_D, and TTKObjectCast.

void QKugouWindow::setUrl ( const QString &  url)

Set current web viewer url to show.

Definition at line 83 of file qkugouwindow.cpp.

References Miniblink::m_webView, Miniblink::setUrl(), TTK_D, and TTKObjectCast.

Referenced by createWebViewer(), and kugouSongIndexChanged().


The documentation for this class was generated from the following files: