File indexing completed on 2024-05-12 04:57:44
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 #ifndef FLICKR_H 0010 #define FLICKR_H 0011 0012 #include "uploader.h" 0013 0014 #include <QMap> 0015 0016 /** 0017 @author Andrey Esin \<gmlastik@gmail.com\> 0018 */ 0019 0020 class KJob; 0021 0022 class Flickr : public Choqok::Uploader 0023 { 0024 Q_OBJECT 0025 public: 0026 Flickr(QObject *parent, const QList< QVariant > &args); 0027 ~Flickr(); 0028 0029 virtual void upload(const QUrl &localUrl, const QByteArray &medium, const QByteArray &mediumType) override; 0030 QString base58encode(quint64); 0031 QByteArray createSign(QByteArray); 0032 0033 protected Q_SLOTS: 0034 void slotUpload(KJob *job); 0035 0036 private: 0037 QMap<KJob *, QUrl> mUrlMap; 0038 }; 0039 0040 #endif //FLICKR_H