aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/sndfile/decodersndfilefactory.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-09-03 15:42:07 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-09-03 15:42:07 +0000
commitbf7533f0b7bc4fa2b6e4890a98b3cfbae1dd90bb (patch)
treebac0b02823dcc482bf53f7b3fdd61790604c1ef6 /src/plugins/Input/sndfile/decodersndfilefactory.cpp
parent80623d0ad43b8a8c312c48823c8179a2bfcb39a1 (diff)
downloadqmmp-bf7533f0b7bc4fa2b6e4890a98b3cfbae1dd90bb.tar.gz
qmmp-bf7533f0b7bc4fa2b6e4890a98b3cfbae1dd90bb.tar.bz2
qmmp-bf7533f0b7bc4fa2b6e4890a98b3cfbae1dd90bb.zip
fixed documentation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5525 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/sndfile/decodersndfilefactory.cpp')
0 files changed, 0 insertions, 0 deletions
81e8-e032-0410-971d-27865f9a5e38> 2007-08-21 19:13:47 +0000 added shoutcast title update' href='/qmmp/commit/lib/streamreader.h?h=main&id=ed3828f0df1bcef66b036ce1831a0aed87ed5482'>ed3828f0d
136f634c6
e25633e95
8d949130a
b3b639824
ffef94917
136f634c6
6eead1622
136f634c6



ed3828f0d
136f634c6


013ee07b5
136f634c6
e25633e95
136f634c6



e25633e95
7c3a5146c




ac690c6ef
dcac31a0d


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
                                                                            
                                                                            














                                                                            
                                                                            
                                                                             
 
                             
                            
 
                                                                                               
 
                                               
                                                       
                                                       
 
 



                                      
 


                                  
                
 
 



                               
 




                                                               
                                            


                                   
/***************************************************************************
 *   Copyright (C) 2009-2013 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.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
 ***************************************************************************/

#include "httpstreamreader.h"
#include "httpinputsource.h"

HTTPInputSource::HTTPInputSource(const QString &url, QObject *parent) : InputSource(url,parent)
{
    m_reader = new HttpStreamReader(url, this);
    connect(m_reader, SIGNAL(ready()),SIGNAL(ready()));
    connect(m_reader, SIGNAL(error()),SIGNAL(error()));
}

QIODevice *HTTPInputSource::ioDevice()
{
    return m_reader;
}

bool HTTPInputSource::initialize()
{
    m_reader->downloadFile();
    return true;
}

bool HTTPInputSource::isReady()
{
    return m_reader->isOpen();
}

bool HTTPInputSource::isWaiting()
{
    return (!m_reader->bytesAvailable() && m_reader->isOpen());
}

QString HTTPInputSource::contentType() const
{
    return m_reader->contentType();
}