/[qspeakers]/importexport.h
ViewVC logotype

Contents of /importexport.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 138 - (show annotations)
Wed Oct 19 06:26:13 2016 UTC (8 months, 1 week ago) by (unknown author)
File MIME type: text/plain
File size: 1226 byte(s)
set filename in window decoration / fix menu and update translation
1 #ifndef IMPORTEXPORT_H
2 #define IMPORTEXPORT_H
3
4 #include <QFile>
5
6 #include "speaker.h"
7 #include "sealedbox.h"
8 #include "portedbox.h"
9 #include "bandpassbox.h"
10
11 class ImportExport
12 {
13 public:
14 /* save the project state into a unique dotfile */
15 static void saveProject(const Speaker& speaker, const SealedBox& sbox, const PortedBox& pbox, const BandPassBox& bpbox, int number = 1, int tab = 0);
16
17 /* restore the saved project from the dotfile */
18 static void restoreProject(Speaker& speaker, SealedBox& sbox, PortedBox& pbox, BandPassBox& bpbox, int *number, int *tab);
19
20 /* in: speaker, sbox, pbox, bpbox, number, tab
21 * out: file
22 */
23 static void exportProject(QFile& file, const Speaker& speaker, const SealedBox& sbox, const PortedBox& pbox, const BandPassBox& bpbox, int number = 1, int tab = 0);
24
25 /* in: file
26 * out: speaker, sbox, pbox, bpbox
27 */
28 static void importProject(Speaker& speaker, SealedBox& sbox, PortedBox& pbox, BandPassBox& bpbox, int *number, int *tab, QFile &file);
29
30 static void setSavePath(const QString& path);
31 static QString getSavePath(void);
32
33 private:
34 static QString savePath;
35 #define SAVE_FILENAME "qspeakers_save.xml"
36 };
37
38 #endif // IMPORTEXPORT_H

  ViewVC Help
Powered by ViewVC 1.1.26