Improved random mode
[someplayer] / src / libraryform.h
index 38cf8cd..60a276f 100644 (file)
@@ -1,3 +1,22 @@
+/*
+ * SomePlayer - An alternate music player for Maemo 5
+ * Copyright (C) 2010 Nikolay (somebody) Tischenko <niktischenko@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
 #ifndef LIBRARYFORM_H
 #define LIBRARYFORM_H
 
@@ -30,11 +49,18 @@ signals:
        void player();
        void busy(QString);
        void done();
+public slots:
+       void search(QString &);
+       void nextItem();
+       void prevItem();
+       void cancelSearch();
+       void refresh();
 private slots:
        void _player();
        void _view_button();
        void _dynamic_button();
        void _playlists_button();
+       void _toggle_select_all_button();
        void _add_button();
        void _delete_button();
        void _back_button();
@@ -50,6 +76,8 @@ private:
        QString _current_album;
        Playlist _current_playlist;
        QList<Track> _current_tracks;
+       QString _search_pattern;
+       int _search_current_id;
 
        void _add_artist(QString artist);
        void _add_album(QString artist, QString album);