mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
39 lines
715 B
C
39 lines
715 B
C
|
#ifndef CHATTABWIDGET_H
|
||
|
#define CHATTABWIDGET_H
|
||
|
|
||
|
#include <QTabWidget>
|
||
|
|
||
|
namespace Ui {
|
||
|
class ChatTabWidget;
|
||
|
}
|
||
|
|
||
|
class PopupChatDialog;
|
||
|
|
||
|
class ChatTabWidget : public QTabWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit ChatTabWidget(QWidget *parent = 0);
|
||
|
~ChatTabWidget();
|
||
|
|
||
|
void addDialog(PopupChatDialog *dialog);
|
||
|
void removeDialog(PopupChatDialog *dialog);
|
||
|
|
||
|
void getInfo(bool &isTyping, bool &hasNewMessage, QIcon *icon);
|
||
|
|
||
|
signals:
|
||
|
void tabChanged(PopupChatDialog *dialog);
|
||
|
void infoChanged();
|
||
|
|
||
|
private slots:
|
||
|
void tabClose(int tab);
|
||
|
void tabChanged(int tab);
|
||
|
void tabInfoChanged(PopupChatDialog *dialog);
|
||
|
|
||
|
private:
|
||
|
Ui::ChatTabWidget *ui;
|
||
|
};
|
||
|
|
||
|
#endif // CHATTABWIDGET_H
|