comparison data/fileio/AudioSourceInfoReader.h @ 15:11e298cdb9e7

add - EasaierSessionManager - Easaier menus - Interval model
author lbajardsilogic
date Mon, 14 May 2007 13:10:49 +0000
parents
children 87495ac7710a
comparison
equal deleted inserted replaced
14:819ad579459f 15:11e298cdb9e7
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /* Sound Access
4 EASAIER client application.
5 Silogic 2007. Laure Bajard.
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version. See the file
11 COPYING included with this distribution for more information.
12 */
13
14 #ifndef _AUDIO_SOURCE_INFO_READER_H_
15 #define _AUDIO_SOURCE_INFO_READER_H_
16
17 #include <QXmlDefaultHandler>
18
19 #include "data/model/AudioSourceInfoModel.h"
20
21 class AudioSourceInfoReader
22 {
23 public:
24 AudioSourceInfoReader(AudioSourceInfoModel* model);
25 virtual ~AudioSourceInfoReader(){}
26
27 bool parse(const QString & filename);
28
29 private:
30 AudioSourceInfoModel *m_model;
31
32 };
33
34 class AudioSourceInfoHandler : public QXmlDefaultHandler
35 {
36 public:
37 AudioSourceInfoHandler(AudioSourceInfoModel *model);
38
39 bool startElement(const QString &namespaceURI, const QString &localName,
40 const QString &qName, const QXmlAttributes &attributes);
41 bool endElement(const QString &namespaceURI, const QString &localName,
42 const QString &qName);
43 bool characters(const QString &str);
44 bool error(const QXmlParseException &exception);
45 bool fatalError(const QXmlParseException &exception);
46
47 private:
48
49 AudioSourceInfoModel *m_model;
50
51 };
52
53 #endif