You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
#pragma once |
|
|
|
/* |
|
* SPDX-FileCopyrightText: 2003-2009 Craig Drummond <craig@kde.org> |
|
* SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#include "Family.h" |
|
#include <QEventLoop> |
|
#include <QObject> |
|
|
|
class OrgKdeFontinstInterface; |
|
|
|
namespace KFI |
|
{ |
|
class FontInstInterface : public QObject |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
FontInstInterface(); |
|
~FontInstInterface() override; |
|
|
|
int install(const QString &file, bool toSystem); |
|
int uninstall(const QString &name, bool fromSystem); |
|
int reconfigure(); |
|
Families list(bool system); |
|
Family statFont(const QString &file, bool system); |
|
QString folderName(bool sys); |
|
|
|
private: |
|
int waitForResponse(); |
|
|
|
private Q_SLOTS: |
|
|
|
void dbusServiceOwnerChanged(const QString &name, const QString &from, const QString &to); |
|
void status(int pid, int value); |
|
void fontList(int pid, const QList<KFI::Families> &families); |
|
void fontStat(int pid, const KFI::Family &font); |
|
|
|
private: |
|
OrgKdeFontinstInterface *m_interface; |
|
bool m_active; |
|
int m_status; |
|
Families m_families; |
|
QEventLoop m_eventLoop; |
|
}; |
|
|
|
}
|
|
|