blob: a8cef6c655e884e237390b9fa45d56f84ae25640 [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2013, Regents of the University of California
* Yingdi Yu
*
* BSD license, See the LICENSE file for more information
*
* Author: Yingdi Yu <yingdi@cs.ucla.edu>
*/
#ifndef CHRONOCHAT_SETTING_DIALOG_HPP
#define CHRONOCHAT_SETTING_DIALOG_HPP
#include <QDialog>
#ifndef Q_MOC_RUN
#endif
namespace Ui {
class SettingDialog;
}
namespace chronochat {
class SettingDialog : public QDialog
{
Q_OBJECT
public:
explicit
SettingDialog(QWidget* parent = 0);
~SettingDialog();
void
setNick(const QString& nick);
signals:
void
identityUpdated(const QString& identity);
void
nickUpdated(const QString& nick);
void
prefixUpdated(const QString& prefix);
public slots:
void
onIdentityUpdated(const QString& identity);
void
onLocalPrefixUpdated(const QString& prefix);
private slots:
void
onSaveClicked();
void
onCancelClicked();
private:
Ui::SettingDialog* ui;
QString m_identity;
QString m_nick;
QString m_prefix;
};
} // namespace chronochat
#endif // CHRONOCHAT_SETTING_DIALOG_HPP