X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchannellistdlg.h;h=aa0708d53424c1c2af473f4537d49f00b4329fdb;hp=f48d7cc3c40dd0bc96100c5cb7fed38ae415a3d7;hb=00e1a9c29e792ba4d65dba21b7ba04131bcb13bc;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce diff --git a/src/qtui/channellistdlg.h b/src/qtui/channellistdlg.h index f48d7cc3..aa0708d5 100644 --- a/src/qtui/channellistdlg.h +++ b/src/qtui/channellistdlg.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef CHANNELLISTDLG_H @@ -40,8 +40,23 @@ public: void setNetwork(NetworkId netId); -protected slots: + /** + * Set the channel search string, enabling advanced mode if needed + * + * Sets the channel name search text to the specified string, enabling advanced mode. If search + * string is empty, advanced mode will be automatically hidden. + * + * @param channelFilters Partial channel name to search for, or empty to not filter by name + */ + void setChannelFilters(const QString &channelFilters); + +public slots: + /** + * Request a channel listing using any parameters set in the UI + */ void requestSearch(); + +protected slots: void receiveChannelList(const NetworkId &netId, const QStringList &channelFilters, const QList &channelList); void reportFinishedList(); void joinChannel(const QModelIndex &); @@ -56,6 +71,11 @@ private: void enableQuery(bool enable); void setAdvancedMode(bool advanced); + /** + * Update the focus of input widgets according to dialog state + */ + void updateInputFocus(); + Ui::ChannelListDlg ui; bool _listFinished;