X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmediascanner.h;h=d5c8a97c1b50526d99b58f66a4ec6801b808c4c9;hb=88045e5948b6451a1135281fa3d152b7302e4a27;hp=c350f3ac2067224b448d66e116cd24c3267628fe;hpb=7b2a40e92ca217556f2ea5dbb95248b2800909a1;p=someplayer diff --git a/src/mediascanner.h b/src/mediascanner.h index c350f3a..d5c8a97 100644 --- a/src/mediascanner.h +++ b/src/mediascanner.h @@ -1,3 +1,22 @@ +/* + * SomePlayer - An alternate music player for Maemo 5 + * Copyright (C) 2010 Nikolay (somebody) Tischenko + * + * 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 MEDIASCANNER_H #define MEDIASCANNER_H @@ -17,6 +36,8 @@ namespace SomePlayer { public: explicit MediaScanner(QObject *parent = 0); void run(); + QStringList singleScan(QString); + QStringList scanForPlaylists(QString); signals: void scanFinish(QStringList); @@ -24,11 +45,13 @@ namespace SomePlayer { void stop(); void init(QString); private: - QDirIterator *_iterator; + QDir _dir; bool _stopped; bool _initialized; QStringList REGISTERED_FILE_EXTENSIONS; QStringList _foundMedia; + + QStringList _scan_directory(QDir); }; };