File indexing completed on 2024-05-05 04:57:29

0001 /*
0002     This file is part of Choqok, the KDE micro-blogging client
0003 
0004     SPDX-FileCopyrightText: 2017 Andrea Scarpino <scarpino@kde.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0007 */
0008 
0009 #ifndef TWITTERTEXTEDIT_H
0010 #define TWITTERTEXTEDIT_H
0011 
0012 #include "twitterapitextedit.h"
0013 
0014 class TwitterTextEdit : public TwitterApiTextEdit
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     explicit TwitterTextEdit(Choqok::Account *theAccount, QWidget *parent = nullptr);
0020     ~TwitterTextEdit();
0021 
0022 protected Q_SLOTS:
0023     virtual void updateRemainingCharsCount() override;
0024 
0025 private Q_SLOTS:
0026     void slotTCoMaximumLength(KJob *job);
0027 
0028 private:
0029     void fetchTCoMaximumLength();
0030 
0031     class Private;
0032     Private *const d;
0033 };
0034 
0035 #endif // TWITTERTEXTEDIT_H