Changeset View
Changeset View
Standalone View
Standalone View
src/elisaapplication.h
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 43 | { | |||
|---|---|---|---|---|---|
| 68 | Q_PROPERTY(ManageMediaPlayerControl *playerControl | 68 | Q_PROPERTY(ManageMediaPlayerControl *playerControl | ||
| 69 | READ playerControl | 69 | READ playerControl | ||
| 70 | NOTIFY playerControlChanged) | 70 | NOTIFY playerControlChanged) | ||
| 71 | 71 | | |||
| 72 | Q_PROPERTY(ManageHeaderBar *manageHeaderBar | 72 | Q_PROPERTY(ManageHeaderBar *manageHeaderBar | ||
| 73 | READ manageHeaderBar | 73 | READ manageHeaderBar | ||
| 74 | NOTIFY manageHeaderBarChanged) | 74 | NOTIFY manageHeaderBarChanged) | ||
| 75 | 75 | | |||
| 76 | Q_PROPERTY(bool showProgressOnTaskBar | ||||
| 77 | READ showProgressOnTaskBar | ||||
| 78 | NOTIFY showProgressOnTaskBarChanged) | ||||
| 79 | | ||||
| 76 | public: | 80 | public: | ||
| 77 | explicit ElisaApplication(QObject *parent = nullptr); | 81 | explicit ElisaApplication(QObject *parent = nullptr); | ||
| 78 | 82 | | |||
| 79 | ~ElisaApplication() override; | 83 | ~ElisaApplication() override; | ||
| 80 | 84 | | |||
| 81 | Q_INVOKABLE QAction* action(const QString& name); | 85 | Q_INVOKABLE QAction* action(const QString& name); | ||
| 82 | 86 | | |||
| 83 | Q_INVOKABLE QString iconName(const QIcon& icon); | 87 | Q_INVOKABLE QString iconName(const QIcon& icon); | ||
| Show All 11 Lines | |||||
| 95 | AudioWrapper *audioPlayer() const; | 99 | AudioWrapper *audioPlayer() const; | ||
| 96 | 100 | | |||
| 97 | ManageAudioPlayer *audioControl() const; | 101 | ManageAudioPlayer *audioControl() const; | ||
| 98 | 102 | | |||
| 99 | ManageMediaPlayerControl *playerControl() const; | 103 | ManageMediaPlayerControl *playerControl() const; | ||
| 100 | 104 | | |||
| 101 | ManageHeaderBar *manageHeaderBar() const; | 105 | ManageHeaderBar *manageHeaderBar() const; | ||
| 102 | 106 | | |||
| 107 | bool showProgressOnTaskBar() const; | ||||
| 108 | | ||||
| 103 | Q_SIGNALS: | 109 | Q_SIGNALS: | ||
| 104 | 110 | | |||
| 105 | void argumentsChanged(); | 111 | void argumentsChanged(); | ||
| 106 | 112 | | |||
| 107 | void musicManagerChanged(); | 113 | void musicManagerChanged(); | ||
| 108 | 114 | | |||
| 109 | void mediaPlayListChanged(); | 115 | void mediaPlayListChanged(); | ||
| 110 | 116 | | |||
| 111 | void audioPlayerChanged(); | 117 | void audioPlayerChanged(); | ||
| 112 | 118 | | |||
| 113 | void audioControlChanged(); | 119 | void audioControlChanged(); | ||
| 114 | 120 | | |||
| 115 | void playerControlChanged(); | 121 | void playerControlChanged(); | ||
| 116 | 122 | | |||
| 117 | void manageHeaderBarChanged(); | 123 | void manageHeaderBarChanged(); | ||
| 118 | 124 | | |||
| 119 | void enqueue(const ElisaUtils::EntryDataList &newEntries, | 125 | void enqueue(const ElisaUtils::EntryDataList &newEntries, | ||
| 120 | ElisaUtils::PlayListEntryType databaseIdType, | 126 | ElisaUtils::PlayListEntryType databaseIdType, | ||
| 121 | ElisaUtils::PlayListEnqueueMode enqueueMode, | 127 | ElisaUtils::PlayListEnqueueMode enqueueMode, | ||
| 122 | ElisaUtils::PlayListEnqueueTriggerPlay triggerPlay); | 128 | ElisaUtils::PlayListEnqueueTriggerPlay triggerPlay); | ||
| 123 | 129 | | |||
| 124 | void initializationDone(); | 130 | void initializationDone(); | ||
| 125 | 131 | | |||
| 132 | void showProgressOnTaskBarChanged(); | ||||
| 133 | | ||||
| 126 | public Q_SLOTS: | 134 | public Q_SLOTS: | ||
| 127 | 135 | | |||
| 128 | void appHelpActivated(); | 136 | void appHelpActivated(); | ||
| 129 | 137 | | |||
| 130 | void aboutApplication(); | 138 | void aboutApplication(); | ||
| 131 | 139 | | |||
| 132 | void reportBug(); | 140 | void reportBug(); | ||
| 133 | 141 | | |||
| Show All 20 Lines | 156 | private Q_SLOTS: | |||
| 154 | void togglePlaylist(); | 162 | void togglePlaylist(); | ||
| 155 | 163 | | |||
| 156 | void seek(); | 164 | void seek(); | ||
| 157 | 165 | | |||
| 158 | void scrub(); | 166 | void scrub(); | ||
| 159 | 167 | | |||
| 160 | void playPause(); | 168 | void playPause(); | ||
| 161 | 169 | | |||
| 170 | void configChanged(); | ||||
| 171 | | ||||
| 162 | private: | 172 | private: | ||
| 163 | 173 | | |||
| 164 | void initializeModels(); | 174 | void initializeModels(); | ||
| 165 | 175 | | |||
| 166 | void initializePlayer(); | 176 | void initializePlayer(); | ||
| 167 | 177 | | |||
| 168 | void setupActions(const QString &actionName); | 178 | void setupActions(const QString &actionName); | ||
| 169 | 179 | | |||
| 170 | ElisaUtils::EntryDataList checkFileListAndMakeAbsolute(const ElisaUtils::EntryDataList &filesList, | 180 | ElisaUtils::EntryDataList checkFileListAndMakeAbsolute(const ElisaUtils::EntryDataList &filesList, | ||
| 171 | const QString &workingDirectory) const; | 181 | const QString &workingDirectory) const; | ||
| 172 | 182 | | |||
| 173 | std::unique_ptr<ElisaApplicationPrivate> d; | 183 | std::unique_ptr<ElisaApplicationPrivate> d; | ||
| 174 | 184 | | |||
| 175 | }; | 185 | }; | ||
| 176 | 186 | | |||
| 177 | #endif // ELISAAPPLICATION_H | 187 | #endif // ELISAAPPLICATION_H | ||