libodsstream
ods2csv.h
Go to the documentation of this file.
1 /*
2  libodsstream is a library to read and write ODS documents as streams
3  Copyright (C) 2017 Olivier Langella <Olivier.Langella@moulon.inra.fr>
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18 */
27 #ifndef ODS2CSV_H
28 #define ODS2CSV_H
29 
30 #include <QDebug>
31 
32 #include <QObject>
33 #include <QCoreApplication>
34 
35 class Ods2Csv: public QObject
36 {
37  Q_OBJECT
38 
39 private:
40  QCoreApplication *app;
41 
42 public:
43 
44  explicit Ods2Csv(QObject *parent = 0);
48  void quit();
49 
50 signals:
54  void finished();
55 
56 public slots:
61  void run();
62 
66  void aboutToQuitApp();
67 };
68 
69 #endif // ODS2CSV_H
void aboutToQuitApp()
slot that get signal when that application is about to quit
Definition: ods2csv.cpp:200
void run()
Definition: ods2csv.cpp:125
void quit()
Call this to quit application.
Definition: ods2csv.cpp:190
void finished()
Signal to finish, this is connected to Application Quit.
Definition: ods2csv.h:35