##

RestUiLoginDialog.hh
Go to the documentation of this file.
/*
* copyright (C) 2015 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_PLUGINS_REST_WEB_RESTUILOGINDIALOG_HH_
#define GAZEBO_PLUGINS_REST_WEB_RESTUILOGINDIALOG_HH_
#include <string>
#include <gazebo/gui/qt.h>
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
class RestUiWidget;
class GAZEBO_VISIBLE RestUiLoginDialog : public QDialog
{
Q_OBJECT
public: RestUiLoginDialog(QWidget *_parent,
const std::string &_title,
const std::string &_urlLabel,
const std::string &_defautlUrl);
signals: void AcceptLogin(QString &_url,
QString &_username,
QString &_password);
public: std::string GetUsername() const;
public: std::string GetPassword() const;
public: std::string GetUrl() const;
public slots: void SlotAcceptLogin();
private: QLabel *labelUrl;
private: QLabel *labelUsername;
private: QLabel *labelPassword;
private: QLineEdit *editUrl;
private: QLineEdit *editUsername;
private: QLineEdit *editPassword;
private: QLabel *labelInfo;
private: QDialogButtonBox *buttons;
private: std::string username;
private: std::string password;
private: std::string url;
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::RestUiLoginDialog
Provides a means to login to a webservice.
Definition: RestUiLoginDialog.hh:34
system.hh
gui
gui
Definition: KeyEventHandler.hh:29
GAZEBO_VISIBLE
#define GAZEBO_VISIBLE
Definition: system.hh:59