/* This file is part of the KDE project Copyright (C) 2022 Ivailo Monev This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2, as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef KDIRSHARE_KDED_H #define KDIRSHARE_KDED_H #include "kdirshareimpl.h" #include #include #include class KDirShareThread; class KDirShareModule: public KDEDModule { Q_OBJECT Q_CLASSINFO("D-Bus Interface", "org.kde.kdirshare") public: KDirShareModule(QObject *parent, const QList&); ~KDirShareModule(); public Q_SLOTS: Q_SCRIPTABLE QString share(const QString &dirpath, const uint portmin, const uint portmax, const QString &username, const QString &password); Q_SCRIPTABLE QString unshare(const QString &dirpath); Q_SCRIPTABLE bool isShared(const QString &dirpath) const; Q_SCRIPTABLE quint16 getPortMin(const QString &dirpath) const; Q_SCRIPTABLE quint16 getPortMax(const QString &dirpath) const; Q_SCRIPTABLE QString getUser(const QString &dirpath) const; Q_SCRIPTABLE QString getPassword(const QString &dirpath) const; private Q_SLOTS: void slotDelayedRestore(); private: QList m_dirshares; KPasswdStore m_passwdstore; }; #endif // KDIRSHARE_KDED_H