File indexing completed on 2024-04-28 04:55:38

0001 /*
0002     This file is part of Choqok, the KDE micro-blogging client
0003 
0004     SPDX-FileCopyrightText: 2008-2012 Mehrdad Momeny <mehrdad.momeny@gmail.com>
0005 
0006     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0007 */
0008 
0009 #ifndef TWITTERAPISHOWTHREAD_H
0010 #define TWITTERAPISHOWTHREAD_H
0011 
0012 #include <QWidget>
0013 
0014 #include "twitterapihelper_export.h"
0015 
0016 #include "choqoktypes.h"
0017 
0018 namespace Choqok
0019 {
0020 class Account;
0021 namespace UI
0022 {
0023 class PostWidget;
0024 }
0025 }
0026 
0027 class TWITTERAPIHELPER_EXPORT TwitterApiShowThread : public QWidget
0028 {
0029     Q_OBJECT
0030 public:
0031     TwitterApiShowThread(Choqok::Account *account, Choqok::Post *finalPost, QWidget *parent = nullptr);
0032     ~TwitterApiShowThread();
0033 
0034 protected Q_SLOTS:
0035     void slotAddNewPost(Choqok::Account *theAccount, Choqok::Post *post);
0036     void raiseMainWindow();
0037 
0038 Q_SIGNALS:
0039     void forwardResendPost(const QString &post);
0040     void forwardReply(const QString &txt, const QString &replyToId, const QString &replyToUsername);
0041 
0042 protected:
0043     void addPostWidgetToUi(Choqok::UI::PostWidget *widget);
0044 private:
0045     void setupUi();
0046 
0047     class Private;
0048     Private *const d;
0049 };
0050 
0051 #endif // TWITTERAPISHOWTHREAD_H