File indexing completed on 2023-09-24 07:57:29

0001 /*
0002     This file is part of KDE.
0003 
0004     SPDX-FileCopyrightText: 2010 Sebastian K├╝gler <sebas@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #include "remoteaccount.h"
0010 
0011 using namespace Attica;
0012 
0013 class Q_DECL_HIDDEN RemoteAccount::Private : public QSharedData
0014 {
0015 public:
0016     QString id;
0017     QString type;
0018     QString remoteServiceId;
0019     QString data;
0020     QString login;
0021     QString password;
0022 
0023     Private()
0024     {
0025     }
0026 };
0027 
0028 RemoteAccount::RemoteAccount()
0029     : d(new Private)
0030 {
0031 }
0032 
0033 RemoteAccount::RemoteAccount(const RemoteAccount &other)
0034     : d(other.d)
0035 {
0036 }
0037 
0038 RemoteAccount &RemoteAccount::operator=(const Attica::RemoteAccount &other)
0039 {
0040     d = other.d;
0041     return *this;
0042 }
0043 
0044 RemoteAccount::~RemoteAccount()
0045 {
0046 }
0047 
0048 void RemoteAccount::setId(const QString &u)
0049 {
0050     d->id = u;
0051 }
0052 
0053 QString RemoteAccount::id() const
0054 {
0055     return d->id;
0056 }
0057 
0058 void RemoteAccount::setType(const QString &arg)
0059 {
0060     d->type = arg;
0061 }
0062 
0063 QString RemoteAccount::type() const
0064 {
0065     return d->type;
0066 }
0067 
0068 void RemoteAccount::setRemoteServiceId(const QString &arg)
0069 {
0070     d->remoteServiceId = arg;
0071 }
0072 
0073 QString RemoteAccount::remoteServiceId() const
0074 {
0075     return d->remoteServiceId;
0076 }
0077 
0078 void RemoteAccount::setData(const QString &arg)
0079 {
0080     d->data = arg;
0081 }
0082 
0083 QString RemoteAccount::data() const
0084 {
0085     return d->data;
0086 }
0087 
0088 void RemoteAccount::setLogin(const QString &arg)
0089 {
0090     d->login = arg;
0091 }
0092 
0093 QString RemoteAccount::login() const
0094 {
0095     return d->login;
0096 }
0097 
0098 void RemoteAccount::setPassword(const QString &arg)
0099 {
0100     d->password = arg;
0101 }
0102 
0103 QString RemoteAccount::password() const
0104 {
0105     return d->password;
0106 }
0107 
0108 bool RemoteAccount::isValid() const
0109 {
0110     return !(d->id.isEmpty());
0111 }