#include "buffermodel.h"
#include "bufferinfo.h"
-
-class Network;
+#include "identity.h"
+#include "network.h"
class InputWidget : public QWidget {
Q_OBJECT
// virtual void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint);
// virtual void commitData(QWidget *editor);
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
-// virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
+ virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
// virtual void editorDestroyed(QObject *editor);
// virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
// virtual void rowsInserted(const QModelIndex &parent, int start, int end);
// virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
private slots:
- void enterPressed();
+ void sendText(QString text);
void changeNick(const QString &newNick) const;
+ void setNetwork(const Network *network);
+ void setIdentity(const IdentityId &identityId);
void updateNickSelector() const;
signals:
QPointer<BufferModel> _bufferModel;
QPointer<QItemSelectionModel> _selectionModel;
+ NetworkId _networkId;
+ IdentityId _identityId;
};