libodsstream
tsv2ods.h
Go to the documentation of this file.
1 
8 /*******************************************************************************
9  * Copyright (c) 2018 Olivier Langella <Olivier.Langella@u-psud.fr>.
10  *
11  * This file is part of the libodsstream library.
12  *
13  * libodsstream is a library to read and write ODS documents as streams
14  * Copyright (C) 2018 Olivier Langella <Olivier.Langella@u-psud.fr>
15  *
16  * This program is free software: you can redistribute it and/or modify
17  * it under the terms of the GNU Lesser General Public License as published
18  *by the Free Software Foundation, either version 3 of the License, or (at your
19  *option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public License
27  * along with this program. If not, see <http://www.gnu.org/licenses/>.
28  *
29  * Contributors:
30  * Olivier Langella <Olivier.Langella@u-psud.fr> - initial API and
31  *implementation
32  ******************************************************************************/
33 
34 #pragma once
35 
36 #include <QObject>
37 #include <QCoreApplication>
38 #include "config.h"
39 
40 class Tsv2Ods: public QObject
41 {
42  Q_OBJECT
43 
44  private:
45  QCoreApplication *app;
46 
47  public:
48  explicit Tsv2Ods(QObject *parent = 0);
52  void quit();
53 
54  signals:
58  void finished();
59 
60  public slots:
65  void run();
66 
70  void aboutToQuitApp();
71 };
72 
void quit()
Call this to quit application.
Definition: tsv2ods.cpp:259
void finished()
Signal to finish, this is connected to Application Quit.
void aboutToQuitApp()
slot that get signal when that application is about to quit
Definition: tsv2ods.cpp:270
void run()
Definition: tsv2ods.cpp:161
Definition: tsv2ods.h:40