File indexing completed on 2024-04-28 04:55:45
0001 /* 0002 This file is part of Choqok, the KDE micro-blogging client 0003 0004 SPDX-FileCopyrightText: 2010-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 OCSACCOUNT_H 0010 #define OCSACCOUNT_H 0011 0012 #include "account.h" 0013 0014 #include <Attica/Provider> 0015 0016 class OCSMicroblog; 0017 0018 class OCSAccount : public Choqok::Account 0019 { 0020 Q_OBJECT 0021 public: 0022 OCSAccount(OCSMicroblog *parent, const QString &alias); 0023 ~OCSAccount(); 0024 0025 QUrl providerUrl() const; 0026 void setProviderUrl(const QUrl &url); 0027 0028 Attica::Provider provider(); 0029 0030 virtual void writeConfig() override; 0031 0032 protected Q_SLOTS: 0033 void slotDefaultProvidersLoaded(); 0034 0035 private: 0036 class Private; 0037 Private *const d; 0038 }; 0039 0040 #endif // OCSACCOUNT_H