dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
coreplugin.h
Go to the documentation of this file.
1 
14 /*
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful, but
21  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  * for more details.
24  *
25  * You should have received a copy of the GNU General Public License along
26  * with this program; if not, see <http://www.gnu.org/licenses/>
27  */
28 
29 #ifndef COREPLUGIN_H
30 #define COREPLUGIN_H
31 
33 
34 class QTimer;
35 
36 namespace Core {
37 namespace Internal {
38 
39  class MainWindow;
40 
42  {
43  Q_OBJECT
44  Q_PLUGIN_METADATA(IID "org.dronin.plugins.Core")
45 
46  public:
47  CorePlugin();
48  ~CorePlugin();
49 
50  virtual bool initialize(const QStringList &arguments, QString *errorMessage = nullptr);
51  virtual void extensionsInitialized();
52  virtual void shutdown();
53 
54  public slots:
55  void remoteArgument(const QString & = QString());
56  signals:
57  void splashMessages(QString);
58  void hideSplash();
59  void showSplash();
60 
61  private:
62  MainWindow *m_mainWindow;
63  quint64 m_secondaryAttempts;
64  QTimer *m_secondaryTimer;
65  };
66 
67 } // namespace Internal
68 } // namespace Core
69 
70 #endif // COREPLUGIN_H
void splashMessages(QString)
Base class for all plugins.
Definition: iplugin.h:45
void remoteArgument(const QString &=QString())
Definition: coreplugin.cpp:90