File indexing completed on 2024-04-28 04:55:44
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 MASTODONCOMPOSERWIDGET_H 0010 #define MASTODONCOMPOSERWIDGET_H 0011 0012 #include "composerwidget.h" 0013 0014 class MastodonComposerWidget : public Choqok::UI::ComposerWidget 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit MastodonComposerWidget(Choqok::Account *account, QWidget *parent = nullptr); 0019 ~MastodonComposerWidget(); 0020 0021 protected Q_SLOTS: 0022 virtual void submitPost(const QString &text) override; 0023 virtual void slotPostSubmited(Choqok::Account *theAccount, Choqok::Post *post) override; 0024 0025 void cancelAttach(); 0026 void attachMedia(); 0027 0028 private: 0029 class Private; 0030 Private *const d; 0031 0032 }; 0033 0034 #endif // MASTODONCOMPOSERWIDGET_H