| 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 | #ifndef ATTICA_REMOTEACCOUNT_H |
| 10 | #define ATTICA_REMOTEACCOUNT_H |
| 11 | |
| 12 | #include <QDate> |
| 13 | #include <QList> |
| 14 | #include <QMap> |
| 15 | #include <QSharedDataPointer> |
| 16 | #include <QStringList> |
| 17 | #include <QUrl> |
| 18 | |
| 19 | #include "attica_export.h" |
| 20 | |
| 21 | namespace Attica |
| 22 | { |
| 23 | |
| 24 | /*! |
| 25 | * \class Attica::RemoteAccount |
| 26 | * \inheaderfile Attica/RemoteAccount |
| 27 | * \inmodule Attica |
| 28 | * |
| 29 | * \brief Represents a remote account. |
| 30 | */ |
| 31 | class ATTICA_EXPORT RemoteAccount |
| 32 | { |
| 33 | public: |
| 34 | /*! |
| 35 | * |
| 36 | */ |
| 37 | typedef QList<RemoteAccount> List; |
| 38 | class Parser; |
| 39 | |
| 40 | /*! |
| 41 | * |
| 42 | */ |
| 43 | RemoteAccount(); |
| 44 | RemoteAccount(const RemoteAccount &other); |
| 45 | RemoteAccount &operator=(const RemoteAccount &other); |
| 46 | ~RemoteAccount(); |
| 47 | |
| 48 | /*! |
| 49 | * |
| 50 | */ |
| 51 | void setId(const QString &); |
| 52 | |
| 53 | /*! |
| 54 | * |
| 55 | */ |
| 56 | QString id() const; |
| 57 | |
| 58 | /*! |
| 59 | * |
| 60 | */ |
| 61 | void setType(const QString &); |
| 62 | |
| 63 | /*! |
| 64 | * |
| 65 | */ |
| 66 | QString type() const; |
| 67 | |
| 68 | /*! |
| 69 | * |
| 70 | */ |
| 71 | void setRemoteServiceId(const QString &); |
| 72 | |
| 73 | /*! |
| 74 | * |
| 75 | */ |
| 76 | QString remoteServiceId() const; |
| 77 | |
| 78 | /*! |
| 79 | * |
| 80 | */ |
| 81 | void setData(const QString &); |
| 82 | |
| 83 | /*! |
| 84 | * |
| 85 | */ |
| 86 | QString data() const; |
| 87 | |
| 88 | /*! |
| 89 | * |
| 90 | */ |
| 91 | void setLogin(const QString &); |
| 92 | |
| 93 | /*! |
| 94 | * |
| 95 | */ |
| 96 | QString login() const; |
| 97 | |
| 98 | /*! |
| 99 | * |
| 100 | */ |
| 101 | void setPassword(const QString &); |
| 102 | |
| 103 | /*! |
| 104 | * |
| 105 | */ |
| 106 | QString password() const; |
| 107 | |
| 108 | /*! |
| 109 | * |
| 110 | */ |
| 111 | bool isValid() const; |
| 112 | |
| 113 | private: |
| 114 | class Private; |
| 115 | QSharedDataPointer<Private> d; |
| 116 | }; |
| 117 | |
| 118 | } |
| 119 | |
| 120 | #endif |
| 121 | |