File indexing completed on 2024-03-24 15:23:53

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 #ifndef ATTICA_REMOTEACCOUNT_H
0010 #define ATTICA_REMOTEACCOUNT_H
0011 
0012 #include <QDate>
0013 #include <QList>
0014 #include <QMap>
0015 #include <QSharedDataPointer>
0016 #include <QStringList>
0017 #include <QUrl>
0018 
0019 #include "attica_export.h"
0020 
0021 namespace Attica
0022 {
0023 
0024 /**
0025  * @class RemoteAccount remoteaccount.h <Attica/RemoteAccount>
0026  *
0027  * Represents a remote account.
0028  */
0029 class ATTICA_EXPORT RemoteAccount
0030 {
0031 public:
0032     typedef QList<RemoteAccount> List;
0033     class Parser;
0034 
0035     RemoteAccount();
0036     RemoteAccount(const RemoteAccount &other);
0037     RemoteAccount &operator=(const RemoteAccount &other);
0038     ~RemoteAccount();
0039 
0040     void setId(const QString &);
0041     QString id() const;
0042 
0043     void setType(const QString &);
0044     QString type() const;
0045 
0046     void setRemoteServiceId(const QString &);
0047     QString remoteServiceId() const;
0048 
0049     void setData(const QString &);
0050     QString data() const;
0051 
0052     void setLogin(const QString &);
0053     QString login() const;
0054 
0055     void setPassword(const QString &);
0056     QString password() const;
0057 
0058     bool isValid() const;
0059 
0060 private:
0061     class Private;
0062     QSharedDataPointer<Private> d;
0063 };
0064 
0065 }
0066 
0067 #endif