File indexing completed on 2025-01-05 05:09:30
0001 /* 0002 SPDX-FileCopyrightText: 2010-2012 Daniel Nicoletti <dantti12@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KCUPSSERVER_H 0008 #define KCUPSSERVER_H 0009 0010 #include <KCupsConnection.h> 0011 #include <QString> 0012 #include <kcupslib_export.h> 0013 0014 class KCUPSLIB_EXPORT KCupsServer 0015 { 0016 public: 0017 KCupsServer(); 0018 0019 bool allowRemoteAdmin() const; 0020 void setAllowRemoteAdmin(bool allow); 0021 0022 bool allowUserCancelAnyJobs() const; 0023 void setAllowUserCancelAnyJobs(bool allow); 0024 0025 bool showSharedPrinters() const; 0026 void setShowSharedPrinters(bool show); 0027 0028 bool sharePrinters() const; 0029 void setSharePrinters(bool share); 0030 0031 bool allowPrintingFromInternet() const; 0032 void setAllowPrintingFromInternet(bool allow); 0033 0034 QVariantMap arguments() const; 0035 0036 protected: 0037 KCupsServer(const QVariantMap &arguments); 0038 0039 private: 0040 friend class KCupsRequest; 0041 0042 QVariantMap m_arguments; 0043 }; 0044 0045 Q_DECLARE_METATYPE(KCupsServer) 0046 0047 #endif // KCUPSSERVER_H