36 static constexpr
const char *
SYNC_HOST_URL =
"VDVnYUdYMW9xNnVWSnd6L0J6NHI2MFZ5d0R3R2NiRVF4VW5WckpNcUhnUT0=";
42 m_setWindowToTop(false),
44 m_mobileDeviceWidget(nullptr),
45 m_quitContainer(nullptr),
46 m_screenSaverWidget(nullptr)
75 Q_CLEANUP_RESOURCE(TTKModule);
104 w->move((rect.width() - w->width()) / 2, w->y());
117 TTK_INFO_STREAM(
"Application network support ssl:" << (QSslSocket::supportsSsl() ?
"true" :
"false"));
135 w->setMinimumSize(0, 0);
141 m_quitAnimation->setEndValue(QRect(w->x(), w->geometry().center().y(), w->width(), 0));
148 v = TTK::Image::boundValue<float>(1.0f, 0.35f,
TTK_RN_MAX - v);
175 if(w->isFullScreen() || w->isMaximized())
180 const int lpx = w->x();
181 const int rpx = w->x() + w->width();
182 const int tpy = w->y();
183 const int bpy = w->y() + w->height();
185 constexpr
int gap = 2;
186 #elif defined Q_OS_UNIX
247 m_sideAnimation->setEndValue(QPoint((rect.width() - w->width()) / 2, w->y()));
257 m_sideAnimation->setEndValue(QPoint(w->x(), (rect.height() - w->height()) / 2));
276 for(
const QString &effect :
qAsConst(effects))
286 if(file.open(QIODevice::ReadWrite))
300 TTKFileAssociation association;
301 const QStringList &keys = association.keys();
305 const bool exist = keys.contains(format) && association.exist(format);
308 association.remove(format);
314 const bool exist = keys.contains(format) && association.exist(format);
319 association.remove(format);
321 else if(!exist && enable)
323 association.append(format);
354 m_quitContainer->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::Tool);
363 const QPoint ¢er = w->geometry().center();
420 if(w->isMaximized() || w->isMinimized() || w->isFullScreen())
481 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
TTK::Direction m_direction
The class of the app object module.
static MusicApplication * instance()
MusicTimerAutoModule * m_timerAutoModule
void setText(const QString &text) const
void sideAnimationByOff()
MusicScreenSaverBackgroundWidget * m_screenSaverWidget
void deviceChanged(bool state)
MusicSourceUpdateRequest * m_sourceUpdateRequest
QPropertyAnimation * m_sideAnimation
TTK_MODULE_EXPORT void initiailizeLog(const QString &module)
The class of the time auto run.
void enhancedSongChanged(int type)
The class of the app main widget.
The class of the pv counter.
TTK_MODULE_EXPORT void installLogHandler()
void loadNetWorkSetting()
The class of the messagebox widget.
The class of the device watcher.
#define TTKGenerateSingleWidget(...)
MusicResourceRequest * m_resourceRequest
static TaskbarInfo screenTaskbar(int index=0)
QDeviceWatcher * m_deviceWatcher
void runTimerAutoModule()
TTK_MODULE_EXPORT QStringList supportAssociations()
~MusicApplicationModule()
TTK_MODULE_EXPORT void removeLogHandler()
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 application object.
#define TTK_SIGNLE_SHOT(...)
void soundEffectChanged()
void showSpectrumWidget()
The class of the equalizer widget.
void currentPlaylist(QStringList &list)
TTK_MODULE_EXPORT QStringList unsupportAssociations()
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 MusicApplicationModule * instance()
static QString applicationPath()
bool isLastedVersion() const noexcept
QWidget * m_quitContainer
static QRect screenGeometry(int index=0)
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