Attica

remoteaccount.cpp
1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2010 Sebastian Kügler <sebas@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8
9#include "remoteaccount.h"
10
11using namespace Attica;
12
13class Q_DECL_HIDDEN RemoteAccount::Private : public QSharedData
14{
15public:
16 QString id;
18 QString remoteServiceId;
19 QString data;
20 QString login;
21 QString password;
22
23 Private()
24 {
25 }
26};
27
28RemoteAccount::RemoteAccount()
29 : d(new Private)
30{
31}
32
33RemoteAccount::RemoteAccount(const RemoteAccount &other)
34 : d(other.d)
35{
36}
37
38RemoteAccount &RemoteAccount::operator=(const Attica::RemoteAccount &other)
39{
40 d = other.d;
41 return *this;
42}
43
44RemoteAccount::~RemoteAccount()
45{
46}
47
48void RemoteAccount::setId(const QString &u)
49{
50 d->id = u;
51}
52
53QString RemoteAccount::id() const
54{
55 return d->id;
56}
57
58void RemoteAccount::setType(const QString &arg)
59{
60 d->type = arg;
61}
62
63QString RemoteAccount::type() const
64{
65 return d->type;
66}
67
68void RemoteAccount::setRemoteServiceId(const QString &arg)
69{
70 d->remoteServiceId = arg;
71}
72
73QString RemoteAccount::remoteServiceId() const
74{
75 return d->remoteServiceId;
76}
77
78void RemoteAccount::setData(const QString &arg)
79{
80 d->data = arg;
81}
82
83QString RemoteAccount::data() const
84{
85 return d->data;
86}
87
88void RemoteAccount::setLogin(const QString &arg)
89{
90 d->login = arg;
91}
92
93QString RemoteAccount::login() const
94{
95 return d->login;
96}
97
98void RemoteAccount::setPassword(const QString &arg)
99{
100 d->password = arg;
101}
102
103QString RemoteAccount::password() const
104{
105 return d->password;
106}
107
108bool RemoteAccount::isValid() const
109{
110 return !(d->id.isEmpty());
111}
Represents a remote account.
The Attica namespace,.
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.