File indexing completed on 2024-04-28 04:55:46
0001 /* 0002 This file is part of Choqok, the KDE micro-blogging client 0003 0004 SPDX-FileCopyrightText: 2013 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 PUMPIOACCOUNT_H 0010 #define PUMPIOACCOUNT_H 0011 0012 #include "account.h" 0013 #include "choqoktypes.h" 0014 0015 #include "pumpiooauth.h" 0016 0017 class PumpIOMicroBlog; 0018 0019 class PumpIOAccount : public Choqok::Account 0020 { 0021 Q_OBJECT 0022 public: 0023 explicit PumpIOAccount(PumpIOMicroBlog *parent, const QString &alias); 0024 ~PumpIOAccount(); 0025 0026 virtual QStringList timelineNames() const override; 0027 0028 virtual void writeConfig() override; 0029 0030 QString host(); 0031 void setHost(const QString &host); 0032 0033 QString consumerKey(); 0034 void setConsumerKey(const QString &consumerKey); 0035 0036 QString consumerSecret(); 0037 void setConsumerSecret(const QString &consumerSecret); 0038 0039 QString token(); 0040 void setToken(const QString &token); 0041 0042 QString tokenSecret(); 0043 void setTokenSecret(const QString &tokenSecret); 0044 0045 QStringList following(); 0046 void setFollowing(const QStringList following); 0047 0048 QVariantList lists(); 0049 void setLists(const QVariantList lists); 0050 0051 void setTimelineNames(const QStringList &list); 0052 0053 QString webfingerID(); 0054 PumpIOOAuth *oAuth(); 0055 0056 private: 0057 class Private; 0058 Private *d; 0059 0060 }; 0061 0062 #endif // PUMPIOACCOUNT_H