projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing the creating of new buffers in the client. bye bye Client::buffer(BufferId)
[quassel.git]
/
src
/
qtopia
/
mainwidget.h
diff --git
a/src/qtopia/mainwidget.h
b/src/qtopia/mainwidget.h
index
affa544
..
0c83ea0
100644
(file)
--- a/
src/qtopia/mainwidget.h
+++ b/
src/qtopia/mainwidget.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
7 by the Quassel IRC Team
*
+ * Copyright (C) 2005-0
8 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-23,28
+23,36
@@
#include "ui_mainwidget.h"
#include "ui_mainwidget.h"
+#include "abstractbuffercontainer.h"
+#include "bufferinfo.h"
+
class Buffer;
class ChatWidget;
class Buffer;
class ChatWidget;
-class MainWidget : public
QWidget
{
+class MainWidget : public
AbstractBufferContainer
{
Q_OBJECT
public:
Q_OBJECT
public:
- MainWidget(QWidget *parent
= 0
);
+ MainWidget(QWidget *parent);
~MainWidget();
~MainWidget();
- public slots:
- void setTopic(QString topic);
- void setBuffer(Buffer *);
+ signals:
+ void userInput(const BufferInfo &, const QString &);
+
+ protected:
+ virtual AbstractChatView *createChatView(BufferId);
+ virtual void removeChatView(BufferId);
+
+ protected slots:
+ virtual void showChatView(BufferId);
private slots:
private slots:
- void
enterPressed(
);
+ void
userInput(const QString &
);
private:
Ui::MainWidget ui;
private:
Ui::MainWidget ui;
- QHash<Buffer *, ChatWidget *> chatWidgets;
-
- Buffer *currentBuffer;
+ QHash<BufferId, ChatWidget *> _chatViews;
+ BufferInfo currentBufferInfo;
};
};