| 37 | MusicApplicationModule *MusicApplicationModule::m_instance = nullptr; |
| 38 | |
| 39 | MusicApplicationModule::MusicApplicationModule(QObject *parent) |
| 40 | : QObject(parent), |
| 41 | m_setWindowToTop(false), |
| 42 | m_direction(TTK::Direction::No), |
| 43 | m_mobileDeviceWidget(nullptr), |
| 44 | m_quitContainer(nullptr), |
| 45 | m_screenSaverWidget(nullptr) |
| 46 | { |
| 47 | m_instance = this; |
| 48 | |
| 49 | resetWindowGeometry(); |
| 50 | |
| 51 | m_quitAnimation = new QPropertyAnimation(this); |
| 52 | m_sideAnimation = new QPropertyAnimation(parent, "pos", this); |
| 53 | m_quitAnimation->setTargetObject(parent); |
| 54 | m_sideAnimation->setDuration(TTK_DN_S2MS / 4); |
| 55 | |
| 56 | m_backupModule = new MusicBackupModule; |
| 57 | m_timerAutoModule = new MusicTimerAutoModule(this); |
| 58 | |
| 59 | m_deviceWatcher = new QDeviceWatcher(this); |
| 60 | connect(m_deviceWatcher, SIGNAL(deviceChanged(bool)), SLOT(deviceChanged(bool))); |
| 61 | connect(m_deviceWatcher, SIGNAL(deviceAdded(QString)), SLOT(deviceNameChanged(QString))); |
| 62 | m_deviceWatcher->appendEventReceiver(this); |
| 63 | m_deviceWatcher->start(); |
| 64 | |
| 65 | m_resourceRequest = new MusicResourceRequest(this); |
| 66 | m_counterRequest = new MusicPVCounterRequest(this); |
| 67 | m_sourceUpdateRequest = new MusicSourceUpdateRequest(this); |
| 68 | |
| 69 | executeTimerAutoModule(); |
| 70 | } |
| 71 | |
| 72 | MusicApplicationModule::~MusicApplicationModule() |
| 73 | { |
nothing calls this directly
no test coverage detected