Attica

remoteaccount.cpp
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2010 Sebastian K├╝gler <[email protected]>
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 
11 using namespace Attica;
12 
13 class RemoteAccount::Private : public QSharedData
14 {
15 public:
16  QString id;
17  QString type;
18  QString remoteServiceId;
19  QString data;
20  QString login;
21  QString password;
22 
23  Private()
24  {
25  }
26 };
27 
28 RemoteAccount::RemoteAccount()
29  : d(new Private)
30 {
31 }
32 
33 RemoteAccount::RemoteAccount(const RemoteAccount &other)
34  : d(other.d)
35 {
36 }
37 
38 RemoteAccount &RemoteAccount::operator=(const Attica::RemoteAccount &other)
39 {
40  d = other.d;
41  return *this;
42 }
43 
44 RemoteAccount::~RemoteAccount()
45 {
46 }
47 
48 void RemoteAccount::setId(const QString &u)
49 {
50  d->id = u;
51 }
52 
53 QString RemoteAccount::id() const
54 {
55  return d->id;
56 }
57 
58 void RemoteAccount::setType(const QString &arg)
59 {
60  d->type = arg;
61 }
62 
63 QString RemoteAccount::type() const
64 {
65  return d->type;
66 }
67 
68 void RemoteAccount::setRemoteServiceId(const QString &arg)
69 {
70  d->remoteServiceId = arg;
71 }
72 
73 QString RemoteAccount::remoteServiceId() const
74 {
75  return d->remoteServiceId;
76 }
77 
78 void RemoteAccount::setData(const QString &arg)
79 {
80  d->data = arg;
81 }
82 
83 QString RemoteAccount::data() const
84 {
85  return d->data;
86 }
87 
88 void RemoteAccount::setLogin(const QString &arg)
89 {
90  d->login = arg;
91 }
92 
93 QString RemoteAccount::login() const
94 {
95  return d->login;
96 }
97 
98 void RemoteAccount::setPassword(const QString &arg)
99 {
100  d->password = arg;
101 }
102 
103 QString RemoteAccount::password() const
104 {
105  return d->password;
106 }
107 
108 bool RemoteAccount::isValid() const
109 {
110  return !(d->id.isEmpty());
111 }
Type type(const QSqlDatabase &db)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.