1 /***
2 * Ambient - A music player for the Android platform
3 Copyright (C) 2007 Martin Vysny
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 package sk.baka.ambient.library;
19
20
21 /***
22 * Listens for library events.
23 *
24 * @author Martin Vysny
25 */
26 public interface ILibraryListener {
27 /***
28 * Informs that the file rescan is complete and the database is updated.
29 * Invoked in Scanner thread.
30 *
31 * @param updateStarted
32 * if <code>true</code> then the library update just started. If
33 * <code>false</code> then the update finished.
34 * @param interrupted
35 * if <code>true</code> then the scan was interrupted.
36 * @param userNotified
37 * if <code>true</code> then the user is already notified about
38 * the library being updated.
39 */
40 void libraryUpdate(final boolean updateStarted, final boolean interrupted,
41 final boolean userNotified);
42 }