X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchannellistdlg.h;h=fbdb38feb2aef8391af795b8a281a76294592539;hp=5feac9eec0fba508ee6c35d24c09a9e2d17e51d8;hb=efe1292ee3dffb7fe2f8cee2c4c2767cd53efb34;hpb=0a43227b8cd44625f4881cc1545d42c8c8a4876c diff --git a/src/qtui/channellistdlg.h b/src/qtui/channellistdlg.h index 5feac9ee..fbdb38fe 100644 --- a/src/qtui/channellistdlg.h +++ b/src/qtui/channellistdlg.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 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 * @@ -40,6 +40,16 @@ public: void setNetwork(NetworkId netId); + /** + * 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); + protected slots: void requestSearch(); void receiveChannelList(const NetworkId &netId, const QStringList &channelFilters, const QList &channelList); @@ -56,6 +66,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;