File indexing completed on 2024-05-05 04:57:27
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 TWITTERACCOUNT_H 0010 #define TWITTERACCOUNT_H 0011 0012 #include <QUrl> 0013 0014 #include "account.h" 0015 0016 #include "twitterapiaccount.h" 0017 0018 class TwitterMicroBlog; 0019 /** 0020 0021 @author Mehrdad Momeny \<mehrdad.momeny@gmail.com\> 0022 */ 0023 class TwitterAccount : public TwitterApiAccount 0024 { 0025 Q_OBJECT 0026 public: 0027 TwitterAccount(TwitterMicroBlog *parent, const QString &alias); 0028 ~TwitterAccount(); 0029 0030 virtual void setApi(const QString &api) override; 0031 0032 QUrl uploadUrl() const; 0033 0034 QString uploadHost() const; 0035 void setUploadHost(const QString &uploadHost); 0036 0037 protected: 0038 void setUploadUrl(const QUrl &url); 0039 void generateUploadUrl(); 0040 0041 private: 0042 class Private; 0043 Private *d; 0044 }; 0045 0046 #endif // TWITTERACCOUNT_H