summaryrefslogtreecommitdiff
path: root/bouncer/core.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-01-27 05:01:34 +0100
committerTreeki <treeki@gmail.com>2014-01-27 05:01:34 +0100
commit1417c14821024bde33552573665973165613fa2a (patch)
treed4ccf63d1f2812813a6fe9119be5230470f5fc9b /bouncer/core.h
parent6248214f5aa6c6f73c248f4239c66fef01cbbbfa (diff)
downloadbounce4-1417c14821024bde33552573665973165613fa2a.tar.gz
bounce4-1417c14821024bde33552573665973165613fa2a.zip
add window closing for queries
Diffstat (limited to 'bouncer/core.h')
-rw-r--r--bouncer/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bouncer/core.h b/bouncer/core.h
index a0b9cfe..d7d54f3 100644
--- a/bouncer/core.h
+++ b/bouncer/core.h
@@ -64,6 +64,7 @@ public:
virtual int getType() const = 0;
virtual void syncStateForClient(Buffer &output);
virtual void handleUserInput(const char *str) { }
+ virtual void handleUserClosed();
void pushMessage(const char *str);
};
@@ -122,6 +123,7 @@ public:
virtual const char *getTitle() const;
virtual int getType() const;
virtual void handleUserInput(const char *str);
+ virtual void handleUserClosed();
void handleQuit(const char *message);
void handlePrivmsg(const char *str);
@@ -190,6 +192,7 @@ struct Packet {
B2C_WINDOW_MESSAGE = 0x102,
B2C_WINDOW_RENAME = 0x103,
+ C2B_WINDOW_CLOSE = 0x101,
C2B_WINDOW_INPUT = 0x102,
B2C_CHANNEL_USER_ADD = 0x120,
@@ -348,6 +351,10 @@ private:
Channel *findChannel(const char *name, bool createIfNeeded);
Query *findQuery(const char *name, bool createIfNeeded);
+
+public:
+ // This probably *shouldn't* be public... ><
+ void deleteQuery(Query *query);
};