mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
35 lines
572 B
C
35 lines
572 B
C
|
#ifndef DELETEFRIENDDIALOG_H
|
||
|
#define DELETEFRIENDDIALOG_H
|
||
|
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include "ui_removefrienddialog.h"
|
||
|
#include "src/friend.h"
|
||
|
|
||
|
|
||
|
class RemoveFriendDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit RemoveFriendDialog(QWidget *parent, const Friend* f);
|
||
|
|
||
|
inline bool removeHistory()
|
||
|
{
|
||
|
return ui.removeHistory->isChecked();
|
||
|
}
|
||
|
|
||
|
inline bool accepted()
|
||
|
{
|
||
|
return _accepted;
|
||
|
}
|
||
|
|
||
|
public slots:
|
||
|
void onAccepted();
|
||
|
|
||
|
protected:
|
||
|
Ui_RemoveFriendDialog ui;
|
||
|
bool _accepted = false;
|
||
|
};
|
||
|
|
||
|
#endif // DELETEFRIENDDIALOG_H
|