~ubuntu-branches/ubuntu/saucy/muon/saucy-proposed

« back to all changes in this revision

Viewing changes to exporter/MuonExporter.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Thomas
  • Date: 2012-12-06 15:15:04 UTC
  • mfrom: (1.4.17)
  • Revision ID: package-import@ubuntu.com-20121206151504-dglqm1q19bisu5nj
Tags: 1.9.65-0ubuntu1
New upstream alpha release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *   Copyright (C) 2012 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
 
3
 *
 
4
 *   This program is free software; you can redistribute it and/or modify
 
5
 *   it under the terms of the GNU Library/Lesser General Public License
 
6
 *   version 2, or (at your option) any later version, as published by the
 
7
 *   Free Software Foundation
 
8
 *
 
9
 *   This program is distributed in the hope that it will be useful,
 
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 *   GNU General Public License for more details
 
13
 *
 
14
 *   You should have received a copy of the GNU Library/Lesser General Public
 
15
 *   License along with this program; if not, write to the
 
16
 *   Free Software Foundation, Inc.,
 
17
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
18
 */
 
19
 
 
20
#ifndef MUONEXPORTER_H
 
21
#define MUONEXPORTER_H
 
22
 
 
23
#include "MuonMainWindow.h"
 
24
#include <KUrl>
 
25
#include <QSet>
 
26
 
 
27
class MuonExporter : public QObject
 
28
{
 
29
    Q_OBJECT
 
30
    public:
 
31
        explicit MuonExporter();
 
32
        ~MuonExporter();
 
33
 
 
34
        void initialize();
 
35
        void setExportPath(const KUrl& url);
 
36
 
 
37
    public slots:
 
38
        void backendReady();
 
39
        void exportModel();
 
40
 
 
41
    signals:
 
42
        void exportDone();
 
43
 
 
44
    private:
 
45
        KUrl m_path;
 
46
        int m_backendsToInitialize;
 
47
        QTimer* m_startExportingTimer;
 
48
        QSet<QString> m_exculdedProperties;
 
49
};
 
50
 
 
51
#endif // MUONEXPORTER_H