Changeset View
Changeset View
Standalone View
Standalone View
src/elisaapplication.h
Show All 34 Lines | |||||
35 | class AllAlbumsProxyModel; | 35 | class AllAlbumsProxyModel; | ||
36 | class AllArtistsProxyModel; | 36 | class AllArtistsProxyModel; | ||
37 | class AllTracksProxyModel; | 37 | class AllTracksProxyModel; | ||
38 | class SingleArtistProxyModel; | 38 | class SingleArtistProxyModel; | ||
39 | class SingleAlbumProxyModel; | 39 | class SingleAlbumProxyModel; | ||
40 | class MediaPlayList; | 40 | class MediaPlayList; | ||
41 | class AudioWrapper; | 41 | class AudioWrapper; | ||
42 | class ManageAudioPlayer; | 42 | class ManageAudioPlayer; | ||
43 | class ManageMediaPlayerControl; | ||||
44 | class ManageHeaderBar; | ||||
43 | class ElisaApplicationPrivate; | 45 | class ElisaApplicationPrivate; | ||
44 | 46 | | |||
45 | class ELISALIB_EXPORT ElisaApplication : public QObject | 47 | class ELISALIB_EXPORT ElisaApplication : public QObject | ||
46 | { | 48 | { | ||
47 | 49 | | |||
48 | Q_OBJECT | 50 | Q_OBJECT | ||
49 | 51 | | |||
50 | Q_PROPERTY(QStringList arguments | 52 | Q_PROPERTY(QStringList arguments | ||
Show All 32 Lines | |||||
83 | Q_PROPERTY(AudioWrapper *audioPlayer | 85 | Q_PROPERTY(AudioWrapper *audioPlayer | ||
84 | READ audioPlayer | 86 | READ audioPlayer | ||
85 | NOTIFY audioPlayerChanged) | 87 | NOTIFY audioPlayerChanged) | ||
86 | 88 | | |||
87 | Q_PROPERTY(ManageAudioPlayer *audioControl | 89 | Q_PROPERTY(ManageAudioPlayer *audioControl | ||
88 | READ audioControl | 90 | READ audioControl | ||
89 | NOTIFY audioControlChanged) | 91 | NOTIFY audioControlChanged) | ||
90 | 92 | | |||
93 | Q_PROPERTY(ManageMediaPlayerControl *playerControl | ||||
94 | READ playerControl | ||||
95 | NOTIFY playerControlChanged) | ||||
96 | | ||||
97 | Q_PROPERTY(ManageHeaderBar *manageHeaderBar | ||||
98 | READ manageHeaderBar | ||||
99 | NOTIFY manageHeaderBarChanged) | ||||
100 | | ||||
91 | public: | 101 | public: | ||
92 | explicit ElisaApplication(QObject *parent = nullptr); | 102 | explicit ElisaApplication(QObject *parent = nullptr); | ||
93 | 103 | | |||
94 | ~ElisaApplication() override; | 104 | ~ElisaApplication() override; | ||
95 | 105 | | |||
96 | Q_INVOKABLE QAction* action(const QString& name); | 106 | Q_INVOKABLE QAction* action(const QString& name); | ||
97 | 107 | | |||
98 | Q_INVOKABLE QString iconName(const QIcon& icon); | 108 | Q_INVOKABLE QString iconName(const QIcon& icon); | ||
Show All 13 Lines | |||||
112 | SingleAlbumProxyModel *singleAlbumProxyModel() const; | 122 | SingleAlbumProxyModel *singleAlbumProxyModel() const; | ||
113 | 123 | | |||
114 | MediaPlayList *mediaPlayList() const; | 124 | MediaPlayList *mediaPlayList() const; | ||
115 | 125 | | |||
116 | AudioWrapper *audioPlayer() const; | 126 | AudioWrapper *audioPlayer() const; | ||
117 | 127 | | |||
118 | ManageAudioPlayer *audioControl() const; | 128 | ManageAudioPlayer *audioControl() const; | ||
119 | 129 | | |||
130 | ManageMediaPlayerControl *playerControl() const; | ||||
131 | | ||||
132 | ManageHeaderBar *manageHeaderBar() const; | ||||
133 | | ||||
120 | Q_SIGNALS: | 134 | Q_SIGNALS: | ||
121 | 135 | | |||
122 | void argumentsChanged(); | 136 | void argumentsChanged(); | ||
123 | 137 | | |||
124 | void musicManagerChanged(); | 138 | void musicManagerChanged(); | ||
125 | 139 | | |||
126 | void allAlbumsProxyModelChanged(); | 140 | void allAlbumsProxyModelChanged(); | ||
127 | 141 | | |||
128 | void allArtistsProxyModelChanged(); | 142 | void allArtistsProxyModelChanged(); | ||
129 | 143 | | |||
130 | void allTracksProxyModelChanged(); | 144 | void allTracksProxyModelChanged(); | ||
131 | 145 | | |||
132 | void singleArtistProxyModelChanged(); | 146 | void singleArtistProxyModelChanged(); | ||
133 | 147 | | |||
134 | void singleAlbumProxyModelChanged(); | 148 | void singleAlbumProxyModelChanged(); | ||
135 | 149 | | |||
136 | void mediaPlayListChanged(); | 150 | void mediaPlayListChanged(); | ||
137 | 151 | | |||
138 | void audioPlayerChanged(); | 152 | void audioPlayerChanged(); | ||
139 | 153 | | |||
140 | void audioControlChanged(); | 154 | void audioControlChanged(); | ||
141 | 155 | | |||
156 | void playerControlChanged(); | ||||
157 | | ||||
158 | void manageHeaderBarChanged(); | ||||
159 | | ||||
142 | void enqueue(const QStringList &files); | 160 | void enqueue(const QStringList &files); | ||
143 | 161 | | |||
144 | public Q_SLOTS: | 162 | public Q_SLOTS: | ||
145 | 163 | | |||
146 | void appHelpActivated(); | 164 | void appHelpActivated(); | ||
147 | 165 | | |||
148 | void aboutApplication(); | 166 | void aboutApplication(); | ||
149 | 167 | | |||
Show All 16 Lines | |||||
166 | private Q_SLOTS: | 184 | private Q_SLOTS: | ||
167 | 185 | | |||
168 | void goBack(); | 186 | void goBack(); | ||
169 | 187 | | |||
170 | void find(); | 188 | void find(); | ||
171 | 189 | | |||
172 | private: | 190 | private: | ||
173 | 191 | | |||
192 | void initializeModels(); | ||||
193 | | ||||
194 | void initializePlayer(); | ||||
195 | | ||||
174 | void setupActions(const QString &actionName); | 196 | void setupActions(const QString &actionName); | ||
175 | 197 | | |||
176 | QStringList checkFileListAndMakeAbsolute(const QStringList &filesList, const QString &workingDirectory) const; | 198 | QStringList checkFileListAndMakeAbsolute(const QStringList &filesList, const QString &workingDirectory) const; | ||
177 | 199 | | |||
178 | std::unique_ptr<ElisaApplicationPrivate> d; | 200 | std::unique_ptr<ElisaApplicationPrivate> d; | ||
179 | 201 | | |||
180 | }; | 202 | }; | ||
181 | 203 | | |||
182 | #endif // ELISAAPPLICATION_H | 204 | #endif // ELISAAPPLICATION_H |