slot/primitive considerations from #103

This commit is contained in:
John Gibbon 2020-10-24 19:28:20 +02:00
parent 924ff9deda
commit d3324bfab2
3 changed files with 3 additions and 9 deletions

View file

@ -80,7 +80,7 @@ signals:
void userProfilePhotos(const QString &extra, const QVariantList &photos, const int &totalPhotos);
void chatPermissionsUpdated(const QString &chatId, const QVariantMap &chatPermissions);
void chatTitleUpdated(const QString &chatId, const QString &title);
void usersReceived(const QString &extra, const QVariantList &userIds, const int &totalUsers);
void usersReceived(const QString &extra, const QVariantList &userIds, int totalUsers);
private:
typedef void (TDLibReceiver::*Handler)(const QVariantMap &);

View file

@ -105,7 +105,7 @@ TDLibWrapper::TDLibWrapper(QObject *parent) : QObject(parent)
connect(this->tdLibReceiver, SIGNAL(userProfilePhotos(QString, QVariantList, int)), this, SLOT(handleUserProfilePhotos(QString, QVariantList, int)));
connect(this->tdLibReceiver, SIGNAL(chatPermissionsUpdated(QString, QVariantMap)), this, SLOT(handleChatPermissionsUpdated(QString, QVariantMap)));
connect(this->tdLibReceiver, SIGNAL(chatTitleUpdated(QString, QString)), this, SLOT(handleChatTitleUpdated(QString, QString)));
connect(this->tdLibReceiver, SIGNAL(usersReceived(QString, QVariantList, int)), this, SLOT(handleUsersReceived(QString, QVariantList, int)));
connect(this->tdLibReceiver, SIGNAL(usersReceived(QString, QVariantList, int)), this, SIGNAL(usersReceived(QString, QVariantList, int)));
connect(&emojiSearchWorker, SIGNAL(searchCompleted(QString, QVariantList)), this, SLOT(handleEmojiSearchCompleted(QString, QVariantList)));
@ -1124,11 +1124,6 @@ void TDLibWrapper::handleChatTitleUpdated(const QString &chatId, const QString &
emit this->chatTitleUpdated(chatId, title);
}
void TDLibWrapper::handleUsersReceived(const QString &extra, const QVariantList &userIds, const int &totalUsers)
{
emit this->usersReceived(extra, userIds, totalUsers);
}
void TDLibWrapper::setInitialParameters()
{
LOG("Sending initial parameters to TD Lib");

View file

@ -202,7 +202,7 @@ signals:
void userProfilePhotosReceived(const QString &extra, const QVariantList &photos, const int &totalPhotos);
void chatPermissionsUpdated(const QString &chatId, const QVariantMap &permissions);
void chatTitleUpdated(const QString &chatId, const QString &title);
void usersReceived(const QString &extra, const QVariantList &userIds, const int &totalUsers);
void usersReceived(const QString &extra, const QVariantList &userIds, int totalUsers);
public slots:
void handleVersionDetected(const QString &version);
@ -250,7 +250,6 @@ public slots:
void handleUserProfilePhotos(const QString &extra, const QVariantList &photos, const int &totalPhotos);
void handleChatPermissionsUpdated(const QString &chatId, const QVariantMap &permissions);
void handleChatTitleUpdated(const QString &chatId, const QString &title);
void handleUsersReceived(const QString &extra, const QVariantList &userIds, const int &totalUsers);