dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
kmlexportplugin.h
Go to the documentation of this file.
1 
11 /*
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  * for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, see <http://www.gnu.org/licenses/>
24  */
25 
26 #ifndef KMLEXPORTPLUGING_
27 #define KMLEXPORTPLUGING_
28 
29 #include <coreplugin/icore.h>
32 #include <coreplugin/iconnection.h>
34 #include "kmlexport.h"
35 
36 #include <QQueue>
37 #include <QReadWriteLock>
38 
39 class KmlExportPlugin;
40 
42 {
43  Q_OBJECT
44  Q_PLUGIN_METADATA(IID "org.dronin.plugins.KmlExportPlugin")
45 
46 public:
48 
49  void extensionsInitialized();
50  bool initialize(const QStringList &arguments, QString *errorString);
51  void shutdown();
52 
53 private slots:
54  void exportToKML();
55 
56 private:
57  Core::Command *exportToKmlCmd;
58 };
59 #endif /* KMLEXPORTPLUGING_ */
60 
virtual void extensionsInitialized()=0
The class Command represents an action like a menu item, tool button, or shortcut. You don't create Command objects directly, instead use {ActionManager::registerAction()} to register an action and retrieve a Command. The Command object represents the user visible action and its properties. If multiple actions are registered with the same ID (but different contexts) the returned Command is the shared one between these actions.
Definition: command.h:43
Base class for all plugins.
Definition: iplugin.h:45