MuseScore  3.4
Music composition and notation
audio.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2012 Werner Schweer
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __AUDIO_H__
14 #define __AUDIO_H__
15 
16 namespace Ms {
17 
18 class XmlWriter;
19 class XmlReader;
20 
21 //---------------------------------------------------------
22 // Audio
23 //---------------------------------------------------------
24 
25 class Audio {
26  QString _path;
27  QByteArray _data;
28 
29  public:
30  Audio();
31  const QString& path() const { return _path; }
32  void setPath(const QString& s) { _path = s; }
33  const QByteArray& data() const { return _data; }
34  QByteArray data() { return _data; }
35  void setData(const QByteArray& ba) { _data = ba; }
36 
37  void read(XmlReader&);
38  void write(XmlWriter&) const;
39  };
40 
41 
42 } // namespace Ms
43 #endif
44 
void write(XmlWriter &) const
Definition: audio.cpp:44
Definition: xml.h:67
const QString & path() const
Definition: audio.h:31
void setData(const QByteArray &ba)
Definition: audio.h:35
void read(XmlReader &)
Definition: audio.cpp:30
QByteArray _data
Definition: audio.h:27
QString _path
Definition: audio.h:26
void setPath(const QString &s)
Definition: audio.h:32
Definition: aeolus.cpp:26
Definition: xml.h:218
Definition: xmlwriter.h:26
Audio()
Definition: audio.cpp:22
const QByteArray & data() const
Definition: audio.h:33
Definition: xmlreader.h:28
QByteArray data()
Definition: audio.h:34
Definition: audio.h:25