File indexing completed on 2025-01-26 05:08:06

0001 /*
0002  * This file was generated by qdbusxml2cpp version 0.8
0003  * Command line was: qdbusxml2cpp -m -p FontinstIface org.kde.fontinst.xml -i Family.h
0004  *
0005  * qdbusxml2cpp is Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
0006  *
0007  * This is an auto-generated file.
0008  * Do not edit! All changes made to it will be lost.
0009  */
0010 
0011 #pragma once
0012 
0013 #include "Family.h"
0014 #include <QByteArray>
0015 #include <QDBusAbstractInterface>
0016 #include <QDBusConnectionInterface>
0017 #include <QDBusMetaType>
0018 #include <QDBusPendingReply>
0019 #include <QDBusReply>
0020 #include <QList>
0021 #include <QMap>
0022 #include <QObject>
0023 #include <QString>
0024 #include <QStringList>
0025 #include <QVariant>
0026 
0027 /*
0028  * Proxy class for interface org.kde.fontinst
0029  */
0030 class OrgKdeFontinstInterface : public QDBusAbstractInterface
0031 {
0032     Q_OBJECT
0033 public:
0034     static inline const char *staticInterfaceName()
0035     {
0036         return "org.kde.fontinst";
0037     }
0038 
0039 public:
0040     OrgKdeFontinstInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
0041 
0042     ~OrgKdeFontinstInterface() override;
0043 
0044 public Q_SLOTS: // METHODS
0045     inline Q_NOREPLY void disable(const QString &family, uint style, bool inSystem, int pid, bool checkConfig)
0046     {
0047         QList<QVariant> argumentList;
0048         argumentList << QVariant::fromValue(family) << QVariant::fromValue(style) << QVariant::fromValue(inSystem) << QVariant::fromValue(pid)
0049                      << QVariant::fromValue(checkConfig);
0050         callWithArgumentList(QDBus::NoBlock, QLatin1String("disable"), argumentList);
0051     }
0052 
0053     inline Q_NOREPLY void enable(const QString &family, uint style, bool inSystem, int pid, bool checkConfig)
0054     {
0055         QList<QVariant> argumentList;
0056         argumentList << QVariant::fromValue(family) << QVariant::fromValue(style) << QVariant::fromValue(inSystem) << QVariant::fromValue(pid)
0057                      << QVariant::fromValue(checkConfig);
0058         callWithArgumentList(QDBus::NoBlock, QLatin1String("enable"), argumentList);
0059     }
0060 
0061     inline QDBusPendingReply<QString> folderName(bool sys)
0062     {
0063         QList<QVariant> argumentList;
0064         argumentList << QVariant::fromValue(sys);
0065         return asyncCallWithArgumentList(QLatin1String("folderName"), argumentList);
0066     }
0067 
0068     inline Q_NOREPLY void install(const QString &file, bool createAfm, bool toSystem, int pid, bool checkConfig)
0069     {
0070         QList<QVariant> argumentList;
0071         argumentList << QVariant::fromValue(file) << QVariant::fromValue(createAfm) << QVariant::fromValue(toSystem) << QVariant::fromValue(pid)
0072                      << QVariant::fromValue(checkConfig);
0073         callWithArgumentList(QDBus::NoBlock, QLatin1String("install"), argumentList);
0074     }
0075 
0076     inline Q_NOREPLY void list(int folders, int pid)
0077     {
0078         QList<QVariant> argumentList;
0079         argumentList << QVariant::fromValue(folders) << QVariant::fromValue(pid);
0080         callWithArgumentList(QDBus::NoBlock, QLatin1String("list"), argumentList);
0081     }
0082 
0083     inline Q_NOREPLY void move(const QString &family, uint style, bool toSystem, int pid, bool checkConfig)
0084     {
0085         QList<QVariant> argumentList;
0086         argumentList << QVariant::fromValue(family) << QVariant::fromValue(style) << QVariant::fromValue(toSystem) << QVariant::fromValue(pid)
0087                      << QVariant::fromValue(checkConfig);
0088         callWithArgumentList(QDBus::NoBlock, QLatin1String("move"), argumentList);
0089     }
0090 
0091     inline Q_NOREPLY void reconfigure(int pid, bool force)
0092     {
0093         QList<QVariant> argumentList;
0094         argumentList << QVariant::fromValue(pid) << QVariant::fromValue(force);
0095         callWithArgumentList(QDBus::NoBlock, QLatin1String("reconfigure"), argumentList);
0096     }
0097 
0098     inline Q_NOREPLY void removeFile(const QString &family, uint style, const QString &file, bool fromSystem, int pid, bool checkConfig)
0099     {
0100         QList<QVariant> argumentList;
0101         argumentList << QVariant::fromValue(family) << QVariant::fromValue(style) << QVariant::fromValue(file) << QVariant::fromValue(fromSystem)
0102                      << QVariant::fromValue(pid) << QVariant::fromValue(checkConfig);
0103         callWithArgumentList(QDBus::NoBlock, QLatin1String("removeFile"), argumentList);
0104     }
0105 
0106     inline QDBusPendingReply<> saveDisabled()
0107     {
0108         QList<QVariant> argumentList;
0109         return asyncCallWithArgumentList(QLatin1String("saveDisabled"), argumentList);
0110     }
0111 
0112     inline Q_NOREPLY void statFont(const QString &name, int folders, int pid)
0113     {
0114         QList<QVariant> argumentList;
0115         argumentList << QVariant::fromValue(name) << QVariant::fromValue(folders) << QVariant::fromValue(pid);
0116         callWithArgumentList(QDBus::NoBlock, QLatin1String("statFont"), argumentList);
0117     }
0118 
0119     inline Q_NOREPLY void uninstall(const QString &name, bool fromSystem, int pid, bool checkConfig)
0120     {
0121         QList<QVariant> argumentList;
0122         argumentList << QVariant::fromValue(name) << QVariant::fromValue(fromSystem) << QVariant::fromValue(pid) << QVariant::fromValue(checkConfig);
0123         callWithArgumentList(QDBus::NoBlock, QLatin1String("uninstall"), argumentList);
0124     }
0125 
0126     inline Q_NOREPLY void uninstall(const QString &family, uint style, bool fromSystem, int pid, bool checkConfig)
0127     {
0128         QList<QVariant> argumentList;
0129         argumentList << QVariant::fromValue(family) << QVariant::fromValue(style) << QVariant::fromValue(fromSystem) << QVariant::fromValue(pid)
0130                      << QVariant::fromValue(checkConfig);
0131         callWithArgumentList(QDBus::NoBlock, QLatin1String("uninstall"), argumentList);
0132     }
0133 
0134 Q_SIGNALS: // SIGNALS
0135     void fontList(int pid, const QList<KFI::Families> &families);
0136     void fontStat(int pid, const KFI::Family &family);
0137     void fontsAdded(const KFI::Families &families);
0138     void fontsRemoved(const KFI::Families &families);
0139     void status(int pid, int value);
0140 };
0141 
0142 namespace org
0143 {
0144 namespace kde
0145 {
0146 typedef ::OrgKdeFontinstInterface fontinst;
0147 }
0148 }