File indexing completed on 2024-05-12 04:57:45

0001 /*
0002     This file is part of Choqok, the KDE micro-blogging client
0003 
0004     SPDX-FileCopyrightText: 2010-2012 Andrey Esin <gmlastik@gmail.com>
0005 
0006     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0007 
0008 */
0009 
0010 #ifndef TWITGOO_H
0011 #define TWITGOO_H
0012 
0013 #include "uploader.h"
0014 
0015 #include <QMap>
0016 
0017 class KJob;
0018 
0019 class Twitgoo : public Choqok::Uploader
0020 {
0021     Q_OBJECT
0022 public:
0023     Twitgoo(QObject *parent, const QList< QVariant > &args);
0024     ~Twitgoo();
0025 
0026     virtual void upload(const QUrl &localUrl, const QByteArray &medium, const QByteArray &mediumType) override;
0027 
0028 protected Q_SLOTS:
0029     void slotUpload(KJob *job);
0030 
0031 private:
0032     QMap<KJob *, QUrl> mUrlMap;
0033 };
0034 
0035 #endif // TWITGOO_H