Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/channellist/channellistwidget.h
Show All 35 Lines | 35 | public: | |||
---|---|---|---|---|---|
36 | explicit ChannelListWidget(QWidget *parent = nullptr); | 36 | explicit ChannelListWidget(QWidget *parent = nullptr); | ||
37 | ~ChannelListWidget() override; | 37 | ~ChannelListWidget() override; | ||
38 | 38 | | |||
39 | ChannelListView *channelListView() const; | 39 | ChannelListView *channelListView() const; | ||
40 | 40 | | |||
41 | void setCurrentRocketChatAccount(RocketChatAccount *account); | 41 | void setCurrentRocketChatAccount(RocketChatAccount *account); | ||
42 | 42 | | |||
43 | Q_SIGNALS: | 43 | Q_SIGNALS: | ||
44 | void roomSelected(const QString &roomId, const QString &roomType); | 44 | void channelActivated(const QString &acct, const QString &roomId, const QString &roomType); | ||
45 | 45 | | |||
46 | protected: | 46 | protected: | ||
47 | bool eventFilter(QObject *object, QEvent *event) override; | 47 | bool eventFilter(QObject *object, QEvent *event) override; | ||
48 | 48 | | |||
49 | private: | 49 | private: | ||
50 | void slotAccountInitialized(); | 50 | void slotAccountInitialized(); | ||
51 | void setUserStatusUpdated(User::PresenceStatus status, const QString &accountName); | 51 | void setUserStatusUpdated(User::PresenceStatus status, const QString &accountName); | ||
52 | void slotStatusChanged(); | 52 | void slotStatusChanged(); | ||
53 | void slotSearchRoomTextChanged(); | 53 | void slotSearchRoomTextChanged(); | ||
54 | void clearFilterChannel(); | | |||
55 | void slotOpenLinkRequested(const QString &link); | 54 | void slotOpenLinkRequested(const QString &link); | ||
56 | 55 | | |||
57 | StatusCombobox *mStatusComboBox = nullptr; | 56 | StatusCombobox *mStatusComboBox = nullptr; | ||
58 | ChannelListView *mChannelView = nullptr; | 57 | ChannelListView *mChannelView = nullptr; | ||
59 | QLineEdit *mSearchRoom = nullptr; | 58 | QLineEdit *mSearchRoom = nullptr; | ||
60 | QPointer<RocketChatAccount> mCurrentRocketChatAccount; | 59 | QPointer<RocketChatAccount> mCurrentRocketChatAccount; | ||
61 | }; | 60 | }; | ||
62 | 61 | | |||
63 | #endif // CHANNELLISTWIDGET_H | 62 | #endif // CHANNELLISTWIDGET_H |