35 static constexpr
const char *
SYNC_HOST_URL =
"VDVnYUdYMW9xNnVWSnd6L0J6NHI2MFZ5d0R3R2NiRVF4VW5WckpNcUhnUT0=";
41 m_setWindowToTop(false),
43 m_mobileDeviceWidget(nullptr),
44 m_quitContainer(nullptr),
45 m_screenSaverWidget(nullptr)
73 const int version = manager.windowsIEVersion();
74 if(version == -1 || version < 8)
76 MusicToastLabel::popup(version == -1 ? QObject::tr(
"No ie core version detected") : QObject::tr(
"IE core version less than 8"));
110 w->move((rect.width() - w->width()) / 2, w->y());
123 TTK_INFO_STREAM(
"Application network support ssl:" << (QSslSocket::supportsSsl() ?
"true" :
"false"));
141 w->setMinimumSize(0, 0);
147 m_quitAnimation->setEndValue(QRect(w->x(), w->geometry().center().y(), w->width(), 0));
154 v = TTK::Image::reRenderValue<float>(1, 0.35,
TTK_RN_MAX - v);
180 if(w->isFullScreen() || w->isMaximized())
185 const int lpx = w->x();
186 const int rpx = w->x() + w->width();
187 const int tpy = w->y();
188 const int bpy = w->y() + w->height();
190 constexpr
int gap = 2;
191 #elif defined Q_OS_UNIX
252 m_sideAnimation->setEndValue(QPoint((rect.width() - w->width()) / 2, w->y()));
262 m_sideAnimation->setEndValue(QPoint(w->x(), (rect.height() - w->height()) / 2));
285 TTKFileAssociation association;
286 const QStringList &keys = association.keys();
290 const bool exist = keys.contains(format) && association.exist(format);
293 association.remove(format);
299 const bool exist = keys.contains(format) && association.exist(format);
304 association.remove(format);
306 else if(!exist && enable)
308 association.append(format);
336 m_quitContainer->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::Tool);
345 const QPoint ¢er = w->geometry().center();
402 if(w->isMaximized() || w->isMinimized() || w->isFullScreen())
462 for(
const QString &effect :
qAsConst(effects))
473 message.
setText(tr(
"We are opening the magic sound, if you want to close?"));
#define QtSkipEmptyParts
String skip empty parts.
static constexpr const char * SYNC_HOST_URL
QPropertyAnimation * m_quitAnimation
The class of the app object widget.
static MusicApplication * instance()
MusicTimerAutoModule * m_timerAutoModule
void enhancedMusicChanged(int type)
void setText(const QString &text) const
void sideAnimationByOff()
MusicScreenSaverBackgroundWidget * m_screenSaverWidget
void deviceChanged(bool state)
MusicSourceUpdateRequest * m_sourceUpdateRequest
QPropertyAnimation * m_sideAnimation
bool isLastedVersion() const
The class of the time auto run.
The class of the app main widget.
The class of the pv counter.
void loadNetWorkSetting()
The class of the messagebox widget.
The class of the device watcher.
#define TTKGenerateSingleWidget(...)
The class of the music player.
MusicResourceRequest * m_resourceRequest
TTK::Direction m_direction
static void popup(const QString &text)
QDeviceWatcher * m_deviceWatcher
void runTimerAutoModule()
TTK_MODULE_EXPORT QStringList supportAssociations()
~MusicApplicationModule()
The class of the source data query update request.
MusicApplicationModule(QObject *parent=nullptr)
bool isLastedVersion() const
#define TTK_INFO_STREAM(msg)
The namespace of the process utils.
#define TTK_SIGNLE_SHOT(...)
void soundEffectChanged()
void showSpectrumWidget()
The class of the equalizer widget.
void currentPlaylist(QStringList &list)
TTK_MODULE_EXPORT QStringList unsupportAssociations()
static QRect screenGeometry(int index=0)
static constexpr int MARGIN_SIDE
TTK_MODULE_EXPORT bool openUrl(const QString &path, bool local=true)
The class of the resource data request.
void appendEventReceiver(QObject *receiver)
void deviceNameChanged(const QString &name)
#define TTKConcurrent(...)
void resetWindowGeometry()
The class of the application backup module.
The class of the about application info dialog.
MusicPVCounterRequest * m_counterRequest
MusicMobileDevicesWidget * m_mobileDeviceWidget
void windowCloseAnimationFinished()
static TaskbarInfo screenTaskbar(int index=0)
static MusicApplicationModule * instance()
QWidget * m_quitContainer
MusicBackupModule * m_backupModule
void showSoundEffectWidget()
void windowCloseAnimation()
TTK::Direction m_direction
bool closeCurrentEqualizer()
static MusicApplicationModule * m_instance
TTK_MODULE_EXPORT QString mdII(const QString &data, bool encode)
void showEqualizerWidget()
TTK_MODULE_EXPORT void enabledEffectPlugin(bool enabled, const QString &name={})
#define WINDOW_HEIGHT_MIN