aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mad/mpegmetadatamodel.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-06-25 18:53:41 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-06-25 18:53:41 +0000
commit33317ad580fd2f5981f53e866b8d1795132f32bb (patch)
tree52f862c45fbd58b79912a555dbfaca73b22c2ee2 /src/plugins/Input/mad/mpegmetadatamodel.cpp
parentaf4b2444f18a4902d380313f9fc10b91e060692c (diff)
downloadqmmp-33317ad580fd2f5981f53e866b8d1795132f32bb.tar.gz
qmmp-33317ad580fd2f5981f53e866b8d1795132f32bb.tar.bz2
qmmp-33317ad580fd2f5981f53e866b8d1795132f32bb.zip
formatter: added track number field
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5184 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/mad/mpegmetadatamodel.cpp')
0 files changed, 0 insertions, 0 deletions
1e8-e032-0410-971d-27865f9a5e38> 2009-03-12 16:43:53 +0000 committer trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> 2009-03-12 16:43:53 +0000 playlist format api documentation' href='/qmmp/commit/src/qmmpui/fileloader.h?h=main&id=ae33fdc0a3898d45896d4670f64e140deb78e35c'>ae33fdc0a
765b3a9ba
45117f6d2
2d622fd9b
0ded49767
2d622fd9b
765b3a9ba

2d622fd9b

45117f6d2
2d622fd9b
765b3a9ba



2d622fd9b
765b3a9ba


2d622fd9b
45117f6d2
24af8da3f
45117f6d2

45117f6d2
24af8da3f
45117f6d2
24af8da3f
45117f6d2
24af8da3f
45117f6d2
24af8da3f





2d622fd9b
765b3a9ba
683a9a9f7
765b3a9ba



2d622fd9b
765b3a9ba
24af8da3f

765b3a9ba
2d622fd9b
c9cb0def7

24af8da3f

d797b6af7
c9cb0def7
45117f6d2
2d622fd9b


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
                                                                            
                                                                            





















                                                                             
                 
                    

                  
                   
                     
 

                            
  
                                               
                                                   
                                                           
                      

                                             

                                 
            
       



                                    
                                    


                         
                  
       
                         

                  
       
                        
       
                                       
       
                         
       





                                             
        
       
                                                   



                                                          
          
                       

                                        
 
        

                                                     

                                   
                          
                               
                    


      
/***************************************************************************
 *   Copyright (C) 2006-2012 by Ilya Kotov                                 *
 *   forkotov02@hotmail.ru                                                 *
 *                                                                         *
 *   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.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef FILELOADER_H
#define FILELOADER_H

#include <QObject>
#include <QDir>
#include <QQueue>
#include <QFileInfo>
#include <QThread>

class PlayListItem;
class QmmpUiSettings;

/*! @internal
 * @brief File loader class.
 *
 * This class represents fileloader object that
 * processes file list in separate thread and emits
 * \b newPlayListItem(PlayListItem*) signal for every newly
 * created media file.
 * @author Ilya Kotov <forkotov02@hotmail.ru>
 */
class FileLoader : public QThread
{
    Q_OBJECT
public:
    /*!
     * Constructs FileLoader object.
     * @param parent QObject parent
     */
    FileLoader(QObject *parent = 0);
    /*!
     * Object destructor.
     */
    ~FileLoader();
    /*!
     * Sets files to load
     */
    void finish();
    /*!
     * Sets file to load
     */
    void loadFile(const QString &path);
    /*!
     * Sets files to load
     */
    void loadFiles(const QStringList &paths);
    /*!
     * Sets directory to load
     */
    void loadDirectory(const QString &path);

signals:
    /*!
     * Emitted when new playlist item is available.
     * @param item Pointer of the new PlayListItem object.
     */
    void newPlayListItem(PlayListItem *item);

protected:
    virtual void run();
    void addFile(const QString &path);
    void addDirectory(const QString &s);

private:
    bool checkRestrictFilters(const QFileInfo &info);
    bool checkExcludeFilters(const QFileInfo &info);
    QQueue <QString> m_files;
    QQueue <QString> m_directories;
    QStringList m_filters;
    QmmpUiSettings *m_settings;
    bool m_finished;
};

#endif