RestUiPlugin.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef _REST_UI_PLUGIN_HH_
19 #define _REST_UI_PLUGIN_HH_
20 
21 #include <string>
22 #include <vector>
23 
24 #include <gazebo/gazebo.hh>
25 #include <gazebo/gui/qt.h>
26 #include <gazebo/util/system.hh>
27 
28 #include "RestUiWidget.hh"
29 
30 namespace gazebo
31 {
35  {
37  public: RestUiPlugin();
38 
40  public: virtual ~RestUiPlugin() = default;
41 
45  public: virtual void Load(int _argc, char **_argv);
46 
48  private: virtual void Init();
49 
51  private: void OnMainWindowReady();
52 
54  private: void Update();
55 
57  private: std::vector<event::ConnectionPtr> connections;
58 
60  private: std::string menuTitle;
61 
63  private: std::string loginTitle;
64 
66  private: std::string urlLabel;
67 
69  private: std::string defaultUrl;
70 
72  private: RestUiWidget *widget;
73  };
74 }
75 
76 #endif
77 
A plugin loaded within the gzserver on startup.
Definition: Plugin.hh:303
REST user interface plugin.
Definition: RestUiPlugin.hh:34
REST user interface widget.
Definition: RestUiWidget.hh:36
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:66