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 GAZEBO_PLUGINS_REST_WEB_RESTUIPLUGIN_HH_
19 #define GAZEBO_PLUGINS_REST_WEB_RESTUIPLUGIN_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
Forward declarations for the common classes.
Definition: Animation.hh:33
A plugin loaded within the gzserver on startup.
Definition: Plugin.hh:318
REST user interface plugin.
Definition: RestUiPlugin.hh:34
REST user interface widget.
Definition: RestUiWidget.hh:41
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:58