Mercurial > hg > svcore
comparison data/fileio/FileSource.cpp @ 504:3376dc26dece
* Add FeatureWriter method to set basic track metadata; write it out from
RDFFeatureWriter if present
author | Chris Cannam |
---|---|
date | Fri, 05 Dec 2008 11:09:44 +0000 |
parents | bd7c46636bd0 |
children | e340b2fb9471 |
comparison
equal
deleted
inserted
replaced
503:3176aade1a03 | 504:3376dc26dece |
---|---|
108 if (!isRemote()) { | 108 if (!isRemote()) { |
109 emit statusAvailable(); | 109 emit statusAvailable(); |
110 emit ready(); | 110 emit ready(); |
111 } | 111 } |
112 | 112 |
113 #ifdef DEBUG_FILE_SOURCE | |
113 std::cerr << "FileSource::FileSource(string) exiting" << std::endl; | 114 std::cerr << "FileSource::FileSource(string) exiting" << std::endl; |
115 #endif | |
114 } | 116 } |
115 | 117 |
116 FileSource::FileSource(QUrl url, ProgressReporter *reporter) : | 118 FileSource::FileSource(QUrl url, ProgressReporter *reporter) : |
117 m_url(url), | 119 m_url(url), |
118 m_ftp(0), | 120 m_ftp(0), |
136 return; | 138 return; |
137 } | 139 } |
138 | 140 |
139 init(); | 141 init(); |
140 | 142 |
143 #ifdef DEBUG_FILE_SOURCE | |
141 std::cerr << "FileSource::FileSource(url) exiting" << std::endl; | 144 std::cerr << "FileSource::FileSource(url) exiting" << std::endl; |
145 #endif | |
142 } | 146 } |
143 | 147 |
144 FileSource::FileSource(const FileSource &rf) : | 148 FileSource::FileSource(const FileSource &rf) : |
145 QObject(), | 149 QObject(), |
146 m_url(rf.m_url), | 150 m_url(rf.m_url), |
186 } | 190 } |
187 } | 191 } |
188 | 192 |
189 m_done = true; | 193 m_done = true; |
190 | 194 |
195 #ifdef DEBUG_FILE_SOURCE | |
191 std::cerr << "FileSource::FileSource(copy ctor) exiting" << std::endl; | 196 std::cerr << "FileSource::FileSource(copy ctor) exiting" << std::endl; |
197 #endif | |
192 } | 198 } |
193 | 199 |
194 FileSource::~FileSource() | 200 FileSource::~FileSource() |
195 { | 201 { |
196 #ifdef DEBUG_FILE_SOURCE | 202 #ifdef DEBUG_FILE_SOURCE |