/***************************************************************************
- * 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 *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef CLIENT_H_
-#define CLIENT_H_
+#pragma once
#include <QList>
#include <QPointer>
#include "bufferinfo.h"
#include "coreaccount.h"
#include "coreconnection.h"
+#include "highlightrulemanager.h"
#include "quassel.h"
#include "types.h"
static inline ClientUserInputHandler *inputHandler() { return instance()->_inputHandler; }
static inline NetworkConfig *networkConfig() { return instance()->_networkConfig; }
static inline ClientIgnoreListManager *ignoreListManager() { return instance()->_ignoreListManager; }
+ static inline HighlightRuleManager *highlightRuleManager() { return instance()->_highlightRuleManager; }
static inline ClientTransferManager *transferManager() { return instance()->_transferManager; }
static inline TransferModel *transferModel() { return instance()->_transferModel; }
static inline CoreAccountModel *coreAccountModel() { return instance()->_coreAccountModel; }
static inline CoreConnection *coreConnection() { return instance()->_coreConnection; }
static inline CoreAccount currentCoreAccount() { return coreConnection()->currentAccount(); }
- static inline Quassel::Features coreFeatures() { return _coreFeatures; }
-
- static void setCoreFeatures(Quassel::Features features);
+ static bool isCoreFeatureEnabled(Quassel::Feature feature);
static bool isConnected();
static bool internalCore();
static void changePassword(const QString &oldPassword, const QString &newPassword);
static void kickClient(int peerId);
+ void displayIgnoreList(QString ignoreRule) {
+ emit showIgnoreList(ignoreRule);
+ }
+
#if QT_VERSION < 0x050000
static void logMessage(QtMsgType type, const char *msg);
#else
#endif
static inline const QString &debugLog() { return instance()->_debugLogBuffer; }
+ void displayChannelList(NetworkId networkId) {
+ emit showChannelList(networkId);
+ }
+
signals:
void requestNetworkStates();
void showConfigWizard(const QVariantMap &coredata);
+ void showChannelList(NetworkId networkId);
+ void showIgnoreList(QString ignoreRule);
void connected();
void disconnected();
ClientUserInputHandler *_inputHandler;
NetworkConfig *_networkConfig;
ClientIgnoreListManager *_ignoreListManager;
+ HighlightRuleManager *_highlightRuleManager;
ClientTransferManager *_transferManager;
TransferModel *_transferModel;
QHash<IdentityId, Identity *> _identities;
bool _connected;
- static Quassel::Features _coreFeatures;
QString _debugLogBuffer;
QTextStream _debugLog;
friend class CoreConnection;
};
-
-
-#endif